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

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0xfa4]
mov eax, 0x1024
call fcn.0040b8e0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0xfa0], eax
mov eax, dword [ebp + 0xfac]
push ebx
push esi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xfb8]
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xfc0]
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00408740
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
push 0xf0000040
push dword [ebp + 0xfb0]
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4367ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x436795
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x4367a0
mov ebx, 0x80004005
push ebx
push 0x91
jmp 0x4368fe
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push dword [ebp + 0xfb4]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4367ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4367d8
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x4367e3
mov ebx, 0x80004005
push ebx
push 0x97
jmp 0x4368fe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x436819
xor eax, eax
push eax
cmp dword [ebp - 0x68], eax
je 0x436855
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4368d9
push 0
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x4367f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43683f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x43684a
mov ebx, 0x80004005
push ebx
push 0x9f
jmp 0x4368fe
lea eax, [ebp + 0xfbc]
push eax
push dword [ebp - 0x78]
push 2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x436895
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436882
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x43688d
mov ebx, 0x80004005
push ebx
push 0xb1
jmp 0x4368fe
cmp dword [ebp - 0x74], ebx
je 0x436908
push 1
push dword [ebp - 0x74]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x436908
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4368c6
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x4368d1
mov ebx, 0x80004005
push ebx
push 0xb8
jmp 0x4368fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4368ed
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x4368f8
mov ebx, 0x80004005
push ebx
push 0xaa
push 0x44cf06
call fcn.004315ca
xor esi, esi
cmp dword [ebp - 0x64], esi
je 0x436918
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x6c], esi
je 0x436927
push esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 0xfa0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004084b8
add ebp, 0xfa4
leave
ret 0x18