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

Disassembly:
sub esp, 0x43c
mov eax, dword [0x421020]
xor eax, esp
mov dword [esp + 0x438], eax
mov edx, dword [str.0123456789abcdef]
mov ecx, dword [esp + 0x444]
mov eax, dword [esp + 0x440]
push ebx
push esi
xor esi, esi
push esi
push 0x8000000
push 3
push esi
mov dword [esp + 0x28], ecx
mov ecx, dword [0x41d244]
mov dword [esp + 0x2c], edx
mov edx, dword [0x41d248]
push 1
mov dword [esp + 0x34], ecx
mov ecx, dword [0x41d24c]
mov dword [esp + 0x38], edx
mov dl, byte [0x41d250]
push SysReAllocString
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], ecx
mov byte [esp + 0x48], dl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0040faab
add esp, 0x43c
ret
push 0xf0000000
push 1
push esi
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4010e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0040faab
add esp, 0x43c
ret
mov edx, dword [esp + 8]
push edi
lea ecx, [esp + 0x10]
push ecx
push esi
push esi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x401138
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.0040faab
add esp, 0x43c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [esp + 0x20]
push ecx
push 0x400
lea edx, [esp + 0x54]
push edx
push ebx
call ebp
cmp eax, esi
je 0x4011c4
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x4011c0
push esi
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
push ecx
call edi
test eax, eax
je 0x401193
push esi
lea edx, [esp + 0x20]
push edx
push 0x400
lea eax, [esp + 0x54]
push eax
push ebx
call ebp
cmp eax, esi
jne 0x401160
jmp 0x4011c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push esi
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40127d
cmp eax, esi
jne 0x4011f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40127d
mov ecx, dword [esp + 0x14]
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
push 2
push ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401277
cmp dword [esp + 0x18], esi
jbe 0x401255
mov edi, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, byte [esp + esi + 0x38]
mov edx, eax
and edx, 0xf
movsx ecx, byte [esp + edx + 0x24]
shr eax, 4
movsx edx, byte [esp + eax + 0x24]
push ecx
push edx
push str._c_c
push edi
call ebp
inc esi
add esp, 0x10
add edi, 2
cmp esi, dword [esp + 0x18]
jb 0x401225
xor esi, esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40127d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x448]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040faab
add esp, 0x43c
ret