Function at 0x1000579b
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, 0x49c
mov eax, dword [0x1003c398]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov esi, str.0123456789abcdef
push edi
lea edi, [ebp - 0x18]
mov dword [ebp - 0x490], eax
mov ecx, edx
mov dword [ebp - 0x494], eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x49c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100057e3
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.1000feeb
add esp, 0xc
lea eax, [ebp - 0x8c]
push 0
push 0x8000000
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005846
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8c]
push eax
push str.Error_opening_file__s_nError:__d_n
call fcn.10004765
add esp, 0xc
jmp 0x1000594b
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1000587a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.10004765
pop ecx
pop ecx
jmp 0x10005944
lea eax, [ebp - 0x494]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100058c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.10004765
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1000594b
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x100058fb
cmp dword [ebp - 0x498], 0
je 0x10005968
push 0
push dword [ebp - 0x498]
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x494]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000595a
push 0
lea eax, [ebp - 0x498]
push eax
push 0x400
lea eax, [ebp - 0x48c]
push eax
push esi
call edi
test eax, eax
jne 0x100058cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed:__d_n
call fcn.10004765
pop ecx
pop ecx
push 0
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x494]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000741e
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptHashData_failed:__d_n
jmp 0x10005923
test eax, eax
je 0x10005917
push 0
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x494]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100059cd
xor edi, edi
cmp dword [ebp - 0x49c], edi
jbe 0x100059c7
mov edx, ebx
movzx ecx, byte [ebp + edi - 0x28]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc edi
mov al, byte [ebp + eax - 0x18]
mov byte [edx], al
lea edx, [edx + 2]
mov al, byte [ebp + ecx - 0x18]
mov byte [edx - 1], al
cmp edi, dword [ebp - 0x49c]
jb 0x100059a1
mov byte [ebx + 0x20], 0
jmp 0x100059e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptGetHashParam_failed:__d_n
call fcn.10004765
pop ecx
pop ecx
push dword [ebp - 0x494]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x10005944