Function at 0x437378
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0042e8c0
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x101c], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x1008], ebx
mov dword [ebp - 0x100c], ebx
call fcn.00427e30
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x1024]
stosd dword es:[edi], eax
push 0xf0000040
push dword [ebp + 0xc]
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x437428
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x437412
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x43741d
mov ebx, 0x80004005
push ebx
push 0x91
jmp 0x4375a5
lea eax, [ebp - 0x1008]
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x43746e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x437458
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x437463
mov ebx, 0x80004005
push ebx
push 0x97
jmp 0x4375a5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4374a5
xor eax, eax
push eax
cmp dword [ebp - 0x100c], eax
je 0x4374ea
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x437580
push 0
lea eax, [ebp - 0x100c]
push eax
push esi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call edi
test eax, eax
jne 0x437477
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4374d4
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x4374df
mov ebx, 0x80004005
push ebx
push 0x9f
jmp 0x4375a5
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x101c]
push 2
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x43752d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43751a
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x437525
mov ebx, 0x80004005
push ebx
push 0xb1
jmp 0x4375a5
cmp dword [ebp - 0x1018], ebx
je 0x4375af
push 1
push dword [ebp - 0x1018]
push dword [ebp - 0x1020]
push dword [ebp - 0x1024]
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4375af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43756d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x437578
mov ebx, 0x80004005
push ebx
push 0xb8
jmp 0x4375a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437594
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x43759f
mov ebx, 0x80004005
push ebx
push 0xaa
push str.cryputil.cpp
call fcn.0043294e
xor esi, esi
cmp dword [ebp - 0x1008], esi
je 0x4375c5
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1010], esi
je 0x4375da
push esi
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret 0x18