Function at 0x410dde
Capabilities:
Get file size
Hash data via wincrypt
Read file on windows

Disassembly:
push 0x558
mov eax, 0x42a25e
call fcn.00415576
mov eax, dword [ebp + 8]
mov esi, str.0123456789abcdef
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x548], ecx
mov ecx, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x558], ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x538], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x53c], eax
mov dword [ebp - 0x534], ecx
mov dword [ebp - 0x540], ebx
mov byte [ebp - 0x52d], 1
mov dword [ebp - 0x544], ebx
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x564], ebx
mov dword [ebp - 0x560], ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 8], ebx
jne 0x410e79
push 0xc
call fcn.00413395
pop ecx
cmp eax, ebx
je 0x410e63
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x410e65
xor eax, eax
mov ecx, dword [ebp - 0x53c]
mov dword [ecx + 8], eax
call fcn.00410bc4
mov eax, dword [ebp - 0x53c]
cmp dword [eax + 4], ebx
jne 0x410ec5
push 0x14
call fcn.00413395
pop ecx
cmp eax, ebx
je 0x410e9a
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
jmp 0x410e9c
xor eax, eax
mov ecx, dword [ebp - 0x53c]
mov dword [ecx + 4], eax
call fcn.00410b55
test al, al
jne 0x410ebf
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x45f
jmp 0x411150
mov eax, dword [ebp - 0x53c]
mov eax, dword [eax + 4]
push 0xf0000000
push 0x18
push ebx
push ebx
lea ecx, [ebp - 0x540]
push ecx
call dword [eax + 4]
cmp eax, 0x80090016
jne 0x410f10
mov eax, dword [ebp - 0x53c]
mov eax, dword [eax + 4]
push 8
push 0x18
push ebx
push ebx
lea ecx, [ebp - 0x540]
push ecx
call dword [eax + 4]
test eax, eax
jne 0x410f10
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47c
jmp 0x411150
mov esi, dword [ebp - 0x53c]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x544]
push ecx
push ebx
push ebx
push 0x800c
push dword [ebp - 0x540]
call dword [eax + 8]
test eax, eax
je 0x411144
mov eax, dword [esi + 8]
mov dword [ebp - 0x554], ebx
cmp eax, ebx
je 0x410f69
cmp byte [ebp + 0x18], bl
je 0x410f69
lea ecx, [ebp - 0x554]
push ecx
call dword [eax + 4]
test eax, eax
jne 0x410f69
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x485
jmp 0x411150
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x548]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x548], edi
cmp eax, ebx
je 0x410fb7
cmp byte [ebp + 0x18], bl
je 0x410fb7
push dword [ebp - 0x554]
call dword [eax + 8]
test eax, eax
jne 0x410fb7
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x486
jmp 0x411150
cmp edi, 0xffffffff
jne 0x410fcd
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47f
jmp 0x411150
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x410ff3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x480
jmp 0x411150
push esi
call fcn.00413395
pop ecx
cmp eax, ebx
jne 0x41101d
push ebx
call fcn.00412f94
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x481
jmp 0x411150
xor edi, edi
cmp esi, ebx
jbe 0x411075
push ebx
lea eax, [ebp - 0x550]
push eax
push 0x400
lea eax, [ebp - 0x52c]
push eax
push dword [ebp - 0x548]
mov dword [ebp - 0x550], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411075
add edi, dword [ebp - 0x550]
push ebx
push dword [ebp - 0x550]
lea eax, [ebp - 0x52c]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4110b1
cmp edi, esi
jb 0x411023
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 0x55c]
push ecx
lea ecx, [ebp - 0x54c]
push ecx
push eax
push dword [ebp - 0x544]
mov dword [ebp - 0x55c], eax
call esi
test eax, eax
jne 0x4110c2
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x482
jmp 0x411150
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47e
jmp 0x411150
push ebx
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x12c]
push eax
push 2
push dword [ebp - 0x544]
call esi
test eax, eax
jne 0x4110ed
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x483
jmp 0x411150
xor esi, esi
xor ecx, ecx
cmp dword [ebp - 0x54c], ebx
jbe 0x41112d
cmp esi, 0x40
jae 0x411124
movzx eax, byte [ebp + ecx - 0x12c]
mov edi, dword [ebp - 0x558]
mov edx, eax
shr edx, 4
mov dl, byte [ebp + edx - 0x28]
mov byte [edi + esi], dl
and eax, 0xf
mov al, byte [ebp + eax - 0x28]
inc esi
mov byte [edi + esi], al
inc esi
inc ecx
cmp ecx, dword [ebp - 0x54c]
jb 0x4110f9
mov eax, dword [ebp - 0x558]
push dword [ebp - 0x548]
mov byte [eax + esi], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411164
mov eax, dword [ebp - 0x538]
mov dword [eax], 0x47d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x534]
mov dword [ecx], eax
mov byte [ebp - 0x52d], bl
cmp dword [ebp - 0x540], ebx
je 0x411179
push ebx
push dword [ebp - 0x540]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x53c]
mov esi, dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
je 0x4111a2
push dword [esi]
call edi
push esi
mov dword [esi], ebx
call fcn.00412f94
mov eax, dword [ebp - 0x53c]
pop ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x53c]
mov esi, dword [eax + 8]
cmp esi, ebx
je 0x4111c5
push dword [esi]
call edi
push esi
mov dword [esi], ebx
call fcn.00412f94
mov eax, dword [ebp - 0x53c]
pop ecx
mov dword [eax + 8], ebx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x564]
call fcn.00410785
mov al, byte [ebp - 0x52d]
call fcn.004155f9
ret 0x14