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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0x430], 0x10
and dword [ebp - 8], 0
and dword [ebp - 4], 0
and dword [ebp - 0x454], 0
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x42c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40154e
or eax, 0xffffffff
jmp 0x4016eb
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401578
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4016eb
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4015ae
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4016eb
push 0
lea eax, [ebp - 0x468]
push eax
push 0x400
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x468], 0
jne 0x4015d7
jmp 0x40161a
push 0
push dword [ebp - 0x468]
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x401618
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4016eb
jmp 0x4015ae
mov dword [ebp - 0x454], 0x10
push 0
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x464]
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4016b3
and dword [ebp - 0x46c], 0
jmp 0x401659
mov eax, dword [ebp - 0x46c]
inc eax
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
cmp eax, dword [ebp - 0x454]
jae 0x4016b3
mov eax, dword [ebp - 0x46c]
movzx eax, byte [ebp + eax - 0x464]
sar eax, 4
mov ecx, dword [ebp - 0x46c]
mov al, byte [ebp + eax - 0x42c]
mov byte [ebp + ecx*2 - 0x450], al
mov eax, dword [ebp - 0x46c]
movzx eax, byte [ebp + eax - 0x464]
and eax, 0xf
mov ecx, dword [ebp - 0x46c]
mov al, byte [ebp + eax - 0x42c]
mov byte [ebp + ecx*2 - 0x44f], al
jmp 0x40164c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x20
push str.1f5db3cde5da7ffac16f85a5c5fef074
lea eax, [ebp - 0x450]
push eax
call fcn.00401e58
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00401ced
leave
ret