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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e548
mov eax, dword fs:[0]
push eax
sub esp, 0x758
mov eax, dword [0x1009a774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, 0x10a921a1
call fcn.1004081d
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x43c], 0
mov eax, dword [0x10082ed4]
mov dword [ebp - 0x450], eax
mov ecx, dword [0x10082ed8]
mov dword [ebp - 0x44c], ecx
mov edx, dword [0x10082edc]
mov dword [ebp - 0x448], edx
mov eax, dword [0x10082ee0]
mov dword [ebp - 0x444], eax
mov cl, byte [0x10082ee4]
mov byte [ebp - 0x440], cl
lea ecx, [ebp + 8]
call fcn.10002f30
push eax
call fcn.1005c080
add esp, 4
add eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.10002f30
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.10067f1f
add esp, 0xc
lea eax, [ebp - 0x658]
mov dword [ebp - 0x65c], eax
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp - 0x65c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x1003c734
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push 0x100824ac
push 0x10082010
mov eax, dword [ebp + 0x20]
push eax
call fcn.1003c470
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002360
jmp 0x1003ca75
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003c79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.1003c420
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100824ac
push 0x10082010
mov eax, dword [ebp + 0x20]
push eax
call fcn.1003c470
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002360
jmp 0x1003ca75
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1003c810
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.1003c420
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x100824ac
push 0x10082010
mov eax, dword [ebp + 0x20]
push eax
call fcn.1003c470
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002360
jmp 0x1003ca75
push 0
lea eax, [ebp - 0x428]
push eax
push 0x400
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003c8d1
cmp dword [ebp - 0x428], 0
jne 0x1003c84a
jmp 0x1003c8d1
push 0
mov eax, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1003c8cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.CryptHashData_failed:__d_n
call fcn.1003c420
add esp, 8
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100824ac
push 0x10082010
mov eax, dword [ebp + 0x20]
push eax
call fcn.1003c470
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002360
jmp 0x1003ca75
jmp 0x1003c810
cmp dword [ebp - 0x18], 0
jne 0x1003c93b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.ReadFile_failed:__d_n
call fcn.1003c420
add esp, 8
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100824ac
push 0x10082010
mov eax, dword [ebp + 0x20]
push eax
call fcn.1003c470
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002360
jmp 0x1003ca75
mov dword [ebp - 0x43c], 0x10
push 0
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x438]
push ecx
push 2
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1003ca16
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x664], 0
jmp 0x1003c98e
mov eax, dword [ebp - 0x664]
add eax, 1
mov dword [ebp - 0x664], eax
mov eax, dword [ebp - 0x664]
cmp eax, dword [ebp - 0x43c]
jae 0x1003ca05
mov eax, dword [ebp - 0x664]
movzx ecx, byte [ebp + eax - 0x438]
sar ecx, 4
mov edx, dword [ebp + 0x20]
add edx, dword [ebp - 0x660]
mov al, byte [ebp + ecx - 0x450]
mov byte [edx], al
mov ecx, dword [ebp - 0x660]
add ecx, 1
mov dword [ebp - 0x660], ecx
mov eax, dword [ebp - 0x664]
movzx ecx, byte [ebp + eax - 0x438]
and ecx, 0xf
mov edx, dword [ebp + 0x20]
add edx, dword [ebp - 0x660]
mov al, byte [ebp + ecx - 0x450]
mov byte [edx], al
mov ecx, dword [ebp - 0x660]
add ecx, 1
mov dword [ebp - 0x660], ecx
jmp 0x1003c97f
mov eax, 1
shl eax, 5
mov ecx, dword [ebp + 0x20]
mov byte [ecx + eax], 0
jmp 0x1003ca46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.CryptGetHashParam_failed:__d_n
call fcn.1003c420
add esp, 8
push 0x100824ac
push 0x10082010
mov eax, dword [ebp + 0x20]
push eax
call fcn.1003c470
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004084f
mov esp, ebp
pop ebp
ret