Function at 0x100070e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008fc10
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1048
call fcn.10055c30
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1050], 0x22
mov byte [ebp - 0x1040], 0
push 0xfff
push 0
lea eax, [ebp - 0x103f]
push eax
call fcn.10055aa0
add esp, 0xc
mov byte [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3f], eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov byte [ebp - 0x1f], al
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x104c], 0xffffffff
mov dword [ebp - 4], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x100074f5
cmp word [esi], ax
je 0x100074f5
push eax
push 0x8000000
push 3
push eax
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x104c], ebx
cmp ebx, 0xffffffff
jne 0x100071ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [esi + 0x1e]
jmp 0x10007675
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100072c1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x1000724a
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100072a6
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10007285
mov byte [esi + 0xffff], 0
push esi
push str.GetFileMD5
push 1
mov edx, 0x1d3
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000729d
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
jmp 0x10007675
lea eax, [ebp - 0x1044]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1048]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10007349
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10007230
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10007285
mov byte [esi + 0xffff], 0
push esi
push str.GetFileMD5
push 1
mov edx, 0x1d6
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000729d
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop
push 0
lea eax, [ebp - 0x1054]
push eax
push 0x1000
lea eax, [ebp - 0x1040]
push eax
push ebx
call esi
test eax, eax
je 0x10007404
mov ecx, dword [ebp - 0x1054]
test ecx, ecx
je 0x10007400
push 0
push ecx
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10007350
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10007230
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10007285
mov byte [esi + 0xffff], 0
push esi
push str.GetFileMD5
push 1
mov edx, 0x1de
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000729d
test eax, eax
jne 0x1000746c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10007230
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10007285
mov byte [esi + 0xffff], 0
push esi
push str.GetFileMD5
push 1
mov edx, 0x1e1
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1000729d
push 0
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
push dword [ebp - 0x1044]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100074db
xor esi, esi
mov dword [ebp - 0x1058], esi
cmp esi, 0x22
jae 0x100074db
cmp esi, dword [ebp - 0x1050]
jae 0x100074db
movzx eax, byte [ebp + esi - 0x40]
push eax
push str._02X
push edi
call fcn.10001ba0
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100074c0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
mov dword [ebp - 0x105c], edi
inc esi
jmp 0x1000748d
mov dword [ebp - 4], 0
call fcn.100075a2
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10007675
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10007522
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000757f
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 8
test eax, eax
jle 0x1000755e
mov byte [esi + 0xffff], 0
push esi
push str.GetFileMD5
push 1
mov edx, 0x1ca
mov ecx, str...ApiAuxNA.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10007576
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 8
jmp 0x10007675
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret