Function at 0x408640
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov dword [ebp - 0x120], 0x8003
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov byte [ebp + eax - 0x10c], al
add eax, 1
cmp eax, 0x100
jne 0x408680
mov ecx, 0x38
lea edx, [ebp - 0x12c]
mov eax, 0x6602
call fcn.00407220
test eax, eax
jne 0x4086b2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x128]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], 0x8009
mov dword [esp + 8], eax
mov eax, dword [0x42b014]
mov esi, dword fs:[0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_CryptCreateHash]
mov dword [ebp - 0x130], eax
call eax
sub esp, 0x14
mov ebx, eax
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x71f
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str._08lx_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00401ac0
test ebx, ebx
je 0x4086aa
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptSetHashParam]
sub esp, 0x10
mov ebx, eax
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x723
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str._08lx_n
call fcn.00401ac0
lea eax, [ebp - 0x10c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptHashData]
sub esp, 0x10
mov ebx, eax
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x726
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str._08lx_n
call fcn.00401ac0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x100
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
sub esp, 0x14
mov ebx, eax
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x72a
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str._08lx_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00401ac0
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x72c
cmp dword [ebp - 0x10c], 0xc5497d1a
je 0x40897f
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.HMAC_failed__n
mov dword [esp], eax
mov ebx, dword fs:[0x18]
call fcn.00401ac0
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
sub esp, 4
mov dword [ebp - 0x134], eax
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x72f
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str._08lx_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x134]
mov dword [esp], edx
call fcn.00401ac0
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptDestroyKey]
sub esp, 4
mov dword [ebp - 0x134], eax
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x732
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str._08lx_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x134]
mov dword [esp], edx
call fcn.00401ac0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8009
mov eax, dword [0x42b014]
mov dword [esp], eax
mov eax, dword [ebp - 0x130]
call eax
sub esp, 0x14
mov esi, eax
call fcn.00412e10
mov dword [eax], 0x41605d
mov dword [eax + 4], 0x736
xor eax, eax
mov edx, dword [ebx + 0x34]
test esi, esi
jne 0x408963
xor eax, eax
cmp edx, 0x80090003
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str._08lx_n
mov dword [esp], eax
call fcn.00401ac0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x108], 0x9c0b2d9b
jne 0x40885f
cmp dword [ebp - 0x104], 0xb66b10cf
jne 0x40885f
xor eax, eax
cmp dword [ebp - 0x100], 0x32130f7d
jne 0x40885f
jmp 0x408864