Function at 0x10006650
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, 0x4a4
movups xmm0, xmmword [str.0123456789abcdef]
mov al, byte [0x10014844]
push ebx
push esi
mov dword [ebp - 0x14], edx
mov esi, ecx
push edi
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x18], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006693
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0xa0]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
add esp, 0xc
lea eax, [ebp - 0xa0]
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100066f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa0]
push eax
push str.Error_opening_file__s_nError:__d_n
call fcn.10006610
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10006734
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.10006610
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000677b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptAcquireContext_failed:__d_n
call fcn.10006610
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 0x400
lea eax, [ebp - 0x4a0]
push eax
push esi
call edi
test eax, eax
je 0x100067d3
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 0xc]
push 0
test eax, eax
je 0x10006817
push eax
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x10006809
push 0
lea eax, [ebp - 0xc]
push eax
push 0x400
lea eax, [ebp - 0x4a0]
push eax
push esi
call edi
test eax, eax
jne 0x100067a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed:__d_n
call fcn.10006610
add esp, 8
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptHashData_failed:__d_n
jmp 0x100067df
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x10
push eax
lea eax, [ebp - 0x38]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000686f
mov ebx, dword [ebp - 0x10]
xor edi, edi
test ebx, ebx
je 0x10006866
mov edx, dword [ebp - 0x14]
movzx ecx, byte [ebp + edi - 0x38]
lea edx, [edx + 2]
mov eax, ecx
inc edi
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x28]
mov byte [edx - 2], al
movzx eax, byte [ebp + ecx - 0x28]
mov byte [edx - 1], al
cmp edi, ebx
jb 0x10006841
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x20], 0
jmp 0x10006883
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CryptGetHashParam_failed:__d_n
call fcn.10006610
add esp, 8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret