Function at 0x401580
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, 0x1050
call fcn.004158a0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x1050], ecx
mov esi, ebx
mov dword [ebp - 0x1048], 0
push edi
mov dword [ebp - 0x1040], 0
or edi, 0xffffffff
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x103c], 0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4015d2
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
add esi, 0x106
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00401a20
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x104c], eax
push 0
push eax
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
call fcn.00402970
push dword [ebp - 0x1050]
push ebx
push str._s_s
push esi
mov esi, dword [ebp - 0x104c]
push esi
call fcn.00401010
add esp, 0x24
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401729
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401729
lea eax, [ebp - 0x1040]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401729
push 0x1000
lea eax, [ebp - 0x1038]
push 0
push eax
call fcn.00402970
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1044]
add esp, 0xc
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1038]
push eax
push ebx
call esi
test eax, eax
je 0x401723
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
mov eax, dword [ebp - 0x1044]
push 0
test eax, eax
je 0x401774
push eax
lea eax, [ebp - 0x1038]
push eax
push dword [ebp - 0x1040]
call edi
test eax, eax
je 0x401720
push 0
lea eax, [ebp - 0x1044]
push eax
push 0x1000
lea eax, [ebp - 0x1038]
push eax
push ebx
call esi
test eax, eax
jne 0x4016e0
or edi, 0xffffffff
mov esi, dword [ebp - 0x104c]
mov eax, dword [ebp - 0x1040]
test eax, eax
je 0x40173a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x1048]
test eax, eax
je 0x40174d
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x401758
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040181e
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401810
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], 0x10
push eax
lea eax, [ebp - 0x38]
push eax
push 2
push dword [ebp - 0x1040]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401720
xor esi, esi
cmp dword [ebp - 0x103c], esi
jbe 0x4017e9
lea edi, [ebp - 0x28]
nop dword [eax + eax]
movzx ecx, byte [ebp + esi - 0x38]
mov eax, ecx
shr ecx, 4
and eax, 0xf
movsx eax, byte [eax + str.0123456789abcdef]
push eax
movsx eax, byte [ecx + str.0123456789abcdef]
push eax
push str._c_c
push 3
push edi
call fcn.00401040
inc esi
add esp, 0x14
add edi, 2
cmp esi, dword [ebp - 0x103c]
jb 0x4017b0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
mov esi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401720
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4017f4
xor edi, edi
jmp 0x401723