Function at 0x403700
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2848
call fcn.005357a0
mov eax, dword [0x5b4e20]
xor eax, ebp
mov dword [ebp - 4], eax
movq xmm0, qword [str.0123456789abcdef]
mov al, byte [0x58e75c]
push edi
push 0
push 0x8000000
push 3
push 0
push 1
movq qword [ebp - 0x18], xmm0
movq xmm0, qword [0x58e754]
push SysReAllocStringLen
push ecx
mov dword [ebp - 0x2840], 0
mov dword [ebp - 0x283c], 0
mov dword [ebp - 0x2848], 0
mov dword [ebp - 0x2844], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 8], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403799
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005308a3
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x2840]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4037d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005308a3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x283c]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x2840]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40381f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 0x2840]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005308a3
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push 0
lea eax, [ebp - 0x2848]
push eax
push 0x2710
lea eax, [ebp - 0x2838]
push eax
push edi
call ebx
mov esi, eax
test esi, esi
je 0x403989
lea esp, [esp]
mov ecx, dword [ebp - 0x2848]
test ecx, ecx
je 0x4038d1
push 0
push ecx
lea eax, [ebp - 0x2838]
push eax
push dword [ebp - 0x283c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403897
push 0
lea eax, [ebp - 0x2848]
push eax
push 0x2710
lea eax, [ebp - 0x2838]
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x403850
jmp 0x403989
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x283c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x2840]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005308a3
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x403989
push 0
lea eax, [ebp - 0x2844]
push eax
lea eax, [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x283c]
mov dword [ebp - 0x2844], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x403987
push 0xff
lea eax, [ebp - 0x127]
push 0
push eax
mov byte [ebp - 0x128], 0
call fcn.00533910
mov ebx, dword [ebp - 0x2844]
add esp, 0xc
xor edx, edx
test ebx, ebx
je 0x40395a
nop
movzx ecx, byte [ebp + edx - 0x28]
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x18]
mov byte [ebp + edx*2 - 0x128], al
movzx eax, byte [ebp + ecx - 0x18]
mov byte [ebp + edx*2 - 0x127], al
inc edx
cmp edx, ebx
jb 0x403930
add edx, edx
cmp edx, 0x100
jae 0x4039c3
lea eax, [ebp - 0x128]
push eax
push 0x400
push 0x5d79f0
mov byte [ebp + edx - 0x128], 0
call fcn.0053170f
add esp, 0xc
jmp 0x40398f
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x283c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x2840]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.005308a3
mov esp, ebp
pop ebp
ret
call fcn.005319b5
int3