Go through the following link may help.

http://oaklandsoftware.com/papers/ntlm.html