Function at 0x417430
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 0x50ed80
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.004a4c10
mov eax, dword [0x5524b4]
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, ecx
mov dword [ebp - 0x104c], edi
mov dword [ebp - 0x1044], edi
mov dword [ebp - 0x1050], edi
mov dword [ebp - 0x1048], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4174ad
mov eax, dword [edi]
jmp 0x4174af
mov eax, edi
xor ecx, ecx
mov word [eax], cx
push 0x1000
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1048], 1
push eax
mov dword [ebp - 0x1040], ecx
mov dword [ebp - 0x103c], ecx
call fcn.004ab2f0
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x1040]
add esp, 0xc
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push eax
call esi
test eax, eax
jne 0x41751a
push eax
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x1040]
push eax
call esi
test eax, eax
je 0x417696
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x53ff68
cmovae eax, dword [ebp + 8]
push eax
call fcn.004b2923
mov esi, eax
add esp, 8
test esi, esi
je 0x417688
lea eax, [ebp - 0x103c]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1040]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, 0x100
push esi
call fcn.004b2740
add esp, 4
test eax, eax
jne 0x4175bd
push 0x1000
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.004ab2f0
add esp, 0xc
lea eax, [ebp - 0x1020]
push esi
push 0x1000
push 1
push eax
call fcn.004b2b6f
add esp, 0x10
push 0
push eax
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x103c]
call ebx
push esi
call fcn.004b2740
add esp, 4
test eax, eax
je 0x417571
sub edi, 1
jne 0x417564
push esi
call fcn.004b26c0
add esp, 4
mov dword [ebp - 0x1044], 0x10
lea eax, [ebp - 0x1044]
mov byte [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x17], edi
movq qword [ebp - 0x1f], xmm0
push edi
push eax
lea eax, [ebp - 0x20]
mov word [ebp - 0x13], di
push eax
push 2
push dword [ebp - 0x103c]
mov byte [ebp - 0x11], 0
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x103c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1038]
call fcn.00417240
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x104c]
cmp edi, esi
je 0x41766a
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x417643
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00408870
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x41765b
mov eax, dword [edi]
jmp 0x41765d
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.00417340
mov eax, dword [ebp - 0x1024]
cmp eax, 8
jb 0x417688
inc eax
lea ecx, [ebp - 0x1038]
push eax
push dword [ebp - 0x1038]
call fcn.00408870
push 0
push dword [ebp - 0x1040]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x4176ee
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x7fffffff
jbe 0x4176ae
call fcn.004af061
add eax, eax
cmp eax, 0x1000
jb 0x4176e5
test cl, 0x1f
je 0x4176c1
call fcn.004af061
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4176cd
call fcn.004af061
sub ecx, eax
cmp ecx, 4
jae 0x4176d9
call fcn.004af061
cmp ecx, 0x23
jbe 0x4176e3
call fcn.004af061
mov ecx, eax
push ecx
call fcn.0048114c
add esp, 4
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.004a4bd0
mov esp, ebp
pop ebp
ret