Function at 0x408260
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 0x414ca3
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x41b3dc]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
mov eax, dword [0x415970]
mov ecx, dword [str.0123456789abcdef]
mov edx, dword [0x41596c]
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x415974]
mov dword [ebp - 0x20], edx
mov dl, byte [0x415978]
push 0x80000000
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], dl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or esi, 0xffffffff
cmp edi, esi
jne 0x408346
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
mov dword [ebp - 4], esi
cmp ecx, dword [0x41b020]
je 0x40833f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40833f
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.00409b02
add esp, 4
mov eax, edi
jmp 0x4085d4
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4083a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
mov dword [ebp - 4], esi
cmp ecx, dword [0x41b020]
je 0x40839d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40839d
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.00409b02
add esp, 4
mov eax, ebx
jmp 0x4085d4
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x438]
push eax
push ebx
push ebx
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4083e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x43c]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x4085a0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x448]
push eax
push 0x400
lea ecx, [ebp - 0x434]
push ecx
push edi
call esi
cmp eax, ebx
je 0x408493
lea ebx, [ebx]
mov ecx, dword [ebp - 0x448]
cmp ecx, ebx
je 0x40848f
mov eax, dword [ebp - 0x438]
push ebx
push ecx
lea edx, [ebp - 0x434]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408451
push ebx
lea ecx, [ebp - 0x448]
push ecx
push 0x400
lea edx, [ebp - 0x434]
push edx
push edi
call esi
cmp eax, ebx
jne 0x408410
jmp 0x408493
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x43c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401350
jmp 0x4085d2
cmp eax, ebx
jne 0x4084d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x43c]
push ebx
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401350
jmp 0x4085d2
mov eax, dword [ebp - 0x438]
push ebx
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x34]
push edx
push 2
push eax
mov dword [ebp - 0x440], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x408576
mov ecx, dword [0x41b024]
mov dword [ebp - 0x444], ecx
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x440], ebx
jbe 0x408560
movzx eax, byte [ebp + esi - 0x34]
mov edx, eax
and edx, 0xf
movsx ecx, byte [ebp + edx - 0x24]
shr eax, 4
movsx edx, byte [ebp + eax - 0x24]
push ecx
push edx
lea eax, [ebp - 0x444]
push str._c_c
push eax
call fcn.004081c0
mov eax, dword [ebp - 0x444]
mov ecx, dword [eax - 8]
add esp, 0x10
push eax
push ecx
mov ecx, dword [ebp - 0x44c]
call fcn.00406f40
inc esi
cmp esi, dword [ebp - 0x440]
jb 0x408514
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], bl
call fcn.00401350
mov esi, dword [ebp - 0x450]
jmp 0x40857e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x43c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, dword [0x41b020]
je 0x4085d2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4085d2
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.00409b02
add esp, 4
mov eax, esi
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.00409af3
mov esp, ebp
pop ebp
ret 8