Function at 0x4085c0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0
push 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x4c]
push str.SHA256
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x40864c
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push str.HashDigestLength
push dword [ebp - 0x4c]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jns 0x408653
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xor al, al
jmp 0x4087ad
push dword [ebp - 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x60], esi
push 0
test esi, esi
je 0x408643
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jns 0x4086b0
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x4087ad
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x4086d1
mov ebx, dword [ebx]
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.0040cf70
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push 0
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push 0
test eax, eax
js 0x40870e
push dword [ebp - 0x50]
push esi
push dword [ebp - 0x54]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x40872f
push 0
push dword [ebp - 0x4c]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x30]
call fcn.00408870
xor al, al
jmp 0x4087ad
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push dword [ebp - 0x50]
push esi
push eax
call fcn.00409a90
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0x10
cmovae ecx, dword [ebp - 0x48]
call fcn.0040d020
lea ecx, [ebp - 0x48]
mov bl, 1
call fcn.00408870
jmp 0x408779
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x408789
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x408797
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x30]
call fcn.00408870
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0xc