Function at 0x409de0
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427325
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x434040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test dl, dl
jne 0x409e20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x8000000
push 3
push 0
mov ebx, 0x64
movzx eax, dl
push 7
cmp dl, bl
push 0x80000000
cmovbe ebx, eax
push ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
cmp eax, 0xffffffff
cmovne esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x409e73
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0x400
call fcn.0040a630
mov edi, dword [ebp - 0x2c]
mov edx, edi
mov ebx, dword [ebp - 0x30]
sub edx, ebx
mov dword [ebp - 0x1c], edx
cmp edx, 0x400
jae 0x409f30
mov eax, dword [ebp - 0x28]
mov ecx, 0x400
sub ecx, edx
sub eax, ebx
mov dword [ebp - 0x14], ecx
push ecx
cmp eax, 0x400
jae 0x409ee3
push 0x400
lea ecx, [ebp - 0x30]
call fcn.0040a6f0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
jmp 0x409ef6
push 0
push edi
call fcn.00411010
mov eax, dword [ebp - 0x14]
add esp, 0xc
add edi, eax
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp - 0x1c]
sub edi, ebx
cmp edi, ecx
jbe 0x40a163
push 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push edx
push eax
lea eax, [ebx + ecx]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a116
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jne 0x40a116
mov edi, dword [ebx + 0x3c]
lea edx, [ebp - 0x30]
mov ecx, esi
lea eax, [edi + 0xf8]
push eax
call fcn.00409d40
add esp, 4
test al, al
je 0x40a113
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x30]
mov ecx, esi
push dword [eax + edi + 0x54]
call fcn.00409d40
add esp, 4
test al, al
je 0x40a113
mov ebx, dword [ebp - 0x30]
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x40a116
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
jne 0x40a116
mov ecx, 0xe0
cmp word [eax + ebx + 0x14], cx
jne 0x40a116
mov ecx, 0x10b
cmp word [eax + ebx + 0x18], cx
jne 0x40a116
push 4
push 0x1000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x40a0fb
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp - 0x1c], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x40a0e4
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add eax, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
je 0x40a0e4
lea eax, [ecx + 0x28]
cmp eax, dword [ebp - 0x2c]
ja 0x40a0fb
mov edx, dword [ecx + 0x10]
cmp dword [ecx + 8], edx
cmovb edx, dword [ecx + 8]
test edx, edx
je 0x40a0d7
mov eax, dword [ebp - 0x20]
movzx ecx, al
mov eax, 0x51eb851f
imul ecx, edx
mul ecx
mov eax, 1
mov ebx, edx
shr ebx, 5
cmp ebx, 1
cmovb ebx, eax
test ebx, ebx
je 0x40a0d4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
cmp eax, 0x7fffffff
ja 0x40a0f8
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40a0f8
cmp ebx, 0x100000
jbe 0x40a0a5
lea esp, [esp]
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x100000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a0f8
cmp dword [ebp - 0x18], 0x100000
jne 0x40a0f8
sub ebx, 0x100000
cmp ebx, 0x100000
ja 0x40a070
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a0f8
cmp dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x30]
jne 0x40a0fb
mov edx, dword [ebp - 0x1c]
inc edx
add dword [ebp - 0x14], 0x28
jmp 0x409fcf
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
inc edx
add dword [ebp - 0x14], 0x28
jmp 0x409fcf
push 0x8000
push 0
push edi
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40a11a
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 0xd], 0
test edi, edi
je 0x40a11a
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40a11a
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x40a147
mov ecx, dword [ebp - 0x28]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x40a13d
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a168
push ecx
push ebx
call fcn.0040f14c
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040a620
call fcn.00417f31
int3