Function at 0x58f010
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 0x61e581
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.005b2440
mov eax, dword [0x6ba394]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x2060]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push eax
mov dword [ebp - 0x2068], esi
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
cmp dword [ebx + 0x14], 8
jb 0x58f067
mov eax, dword [ebx]
jmp 0x58f069
mov eax, ebx
push esi
push 0x8000000
push 3
push esi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x206c], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x2060]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp esi, 0xffffffff
jne 0x58f0d2
cmp dword [ebx + 0x14], 8
jb 0x58f0a6
mov ebx, dword [ebx]
push ebx
push str.Error_opening_file__ws
push str.EFRUtils::GetMD5
push 1
call fcn.00587c13
and dword [edi + 0x10], 0
add esp, 0x10
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0xffffffffffffffff
jmp 0x58f1f7
push 0xf0000000
xor eax, eax
push 1
push eax
push eax
mov dword [ebp - 0x2058], eax
lea eax, [ebp - 0x2058]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x58f10d
push str.Failed_get_hashHandler
push str.EFRUtils::GetMD5
push 1
call fcn.00587c13
add esp, 0xc
jmp 0x58f1e2
xor ecx, ecx
lea eax, [ebp - 0x2054]
push eax
push ecx
push ecx
push 0x8003
push dword [ebp - 0x2058]
mov dword [ebp - 0x2054], ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x58f14c
push str.Failed_Create_hashHandler
push str.EFRUtils::GetMD5
push 1
call fcn.00587c13
add esp, 0xc
jmp 0x58f1d4
and dword [ebp - 0x205c], 0
push 0
lea eax, [ebp - 0x205c]
push eax
push 0x2000
lea eax, [ebp - 0x2020]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58f1ab
cmp dword [ebp - 0x205c], 0
je 0x58f21b
push 0
push dword [ebp - 0x205c]
lea eax, [ebp - 0x2020]
push eax
push dword [ebp - 0x2054]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x58f153
push dword [ebp - 0x2054]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebx + 0x14], 8
jb 0x58f1b3
mov ebx, dword [ebx]
push ebx
push str.Failed_read_from_file__ws
push str.EFRUtils::GetMD5
push 1
call fcn.00587c13
add esp, 0x10
push dword [ebp - 0x2054]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x2058]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
test esi, esi
je 0x58f1fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.005b168a
mov esp, ebp
pop ebp
ret
and dword [ebp - 0x2028], 0
xor eax, eax
mov dword [ebp - 0x2024], 7
mov word [ebp - 0x2038], ax
push eax
lea eax, [ebp - 0x2064]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2064], 0x10
push eax
push 2
push dword [ebp - 0x2054]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x58f290
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2050]
push eax
call fcn.00591507
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2038]
call fcn.0041aab0
push 0
push 1
lea ecx, [ebp - 0x2050]
call fcn.00434c40
jmp 0x58f2ad
cmp dword [ebx + 0x14], 8
jb 0x58f298
mov ebx, dword [ebx]
push ebx
push str.Failed_create_MD5_for_file__ws
push str.EFRUtils::GetMD5
push 1
call fcn.00587c13
add esp, 0x10
push 0
push dword [ebp - 0x2058]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x2054]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea eax, [ebp - 0x2038]
mov ecx, edi
push eax
call fcn.004344c0
push 0
push 1
lea ecx, [ebp - 0x2038]
call fcn.00434c40
jmp 0x58f1f2