Function at 0x418b30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x61de38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x418fea
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push ebx
call esi
test eax, eax
jne 0x418fea
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x418fea
mov eax, dword [ebx + 0x3c]
add eax, ebx
push 0xf8
push eax
mov dword [ebp - 0x14c], eax
call esi
test eax, eax
jne 0x418fea
mov eax, dword [ebp - 0x14c]
cmp dword [eax], 0x4550
jne 0x418fea
mov esi, dword [eax + 0x80]
add esi, ebx
cmp esi, eax
je 0x418fea
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x418fea
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418c00
sub ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
mov edi, eax
dec eax
cmp byte [eax], 0x5c
je 0x418c27
lea ecx, [ebp - 0x108]
cmp eax, ecx
jne 0x418c11
mov edi, ecx
jmp 0x418c2f
test edi, edi
je 0x418fea
mov eax, dword [esi + 0xc]
test eax, eax
je 0x418c50
add eax, ebx
push edi
push eax
call fcn.0057503d
add esp, 8
test eax, eax
je 0x418c50
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x418c36
cmp dword [esi + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
je 0x418d12
mov esi, dword [esi + 0x10]
add esi, ebx
mov eax, dword [esi]
test eax, eax
je 0x418d12
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
je 0x418c85
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x418c72
jmp 0x418d12
push 0x1c
lea eax, [ebp - 0x148]
push eax
push esi
call edi
mov edi, dword [ebp - 0x13c]
lea eax, [ebp - 0x134]
mov ebx, dword [ebp - 0x148]
push eax
push 0x40
push edi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x418ccf
lea eax, [ebp - 0x134]
or ecx, 0xffffffff
push eax
push 0x40
push edi
push ebx
call fcn.004183b0
test eax, eax
je 0x418fea
mov eax, dword [ebp - 0x128]
push 0
mov dword [esi], eax
mov esi, dword [ebp - 0x134]
mov edi, dword [ebp - 0x13c]
mov ebx, dword [ebp - 0x148]
push esi
push edi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x418d06
push eax
push esi
push edi
push ebx
or ecx, 0xffffffff
call fcn.004183b0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ebx, dword [ebp - 0x12c]
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x164]
jae 0x418fc9
push 0x1c
lea ecx, [ebp - 0x148]
push ecx
push eax
call edi
mov ecx, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x148]
mov eax, dword [ecx + 0x50]
add eax, ebx
cmp edi, eax
ja 0x418fa6
cmp dword [ebp - 0x138], 0x1000
jne 0x418fa6
mov esi, dword [ebp - 0x13c]
test esi, esi
je 0x418fac
test dword [ebp - 0x134], 0x100
jne 0x418fac
lea eax, [ebp - 0x134]
push eax
push 0x40
push esi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x418db6
lea eax, [ebp - 0x134]
or ecx, 0xffffffff
push eax
push 0x40
push esi
push edi
call fcn.004183b0
test eax, eax
je 0x418fa0
mov ebx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x110], 0
lea eax, [ebx - 5]
mov dword [ebp - 0x10c], ebx
test eax, eax
je 0x418f78
mov eax, dword [ebp - 0x128]
mov edi, edx
mov esi, dword [ebp + 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x110]
sub eax, 5
sub esi, dword [ebp - 0x128]
mov ebx, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x120], esi
nop dword [eax]
mov al, byte [edi]
cmp al, 0xe8
je 0x418eb1
cmp al, 0xe9
je 0x418eb1
mov eax, dword [ebp + 0x10]
cmp dword [edi], eax
jne 0x418f46
lea eax, [ebp + 0x10]
cmp edi, eax
je 0x418f46
mov eax, dword [ebp - 0x124]
mov esi, dword [eax + 8]
mov eax, dword [esi]
cmp eax, esi
je 0x418e52
cmp dword [eax + 8], edi
je 0x418e52
mov eax, dword [eax]
cmp eax, esi
jne 0x418e47
xor edx, edx
lea ecx, [eax + 8]
cmp eax, esi
cmovne edx, ecx
test edx, edx
jne 0x418f34
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x418e7f
cmp ecx, eax
jae 0x418f34
mov eax, dword [ebp - 0x128]
inc ecx
mov edx, dword [ebp - 0x118]
mov esi, dword [ebp - 0x120]
mov dword [edi], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], eax
jmp 0x418f4c
mov ebx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x114]
inc ebx
add ebx, edx
add eax, esi
cmp dword [ebx], eax
jne 0x418fdf
mov eax, dword [ebp - 0x124]
mov esi, dword [eax + 8]
mov eax, dword [esi]
cmp eax, esi
je 0x418eeb
nop dword [eax]
cmp dword [eax + 8], ebx
je 0x418eeb
mov eax, dword [eax]
cmp eax, esi
jne 0x418ee0
xor edx, edx
lea ecx, [eax + 8]
cmp eax, esi
cmovne edx, ecx
test edx, edx
jne 0x418f2e
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x418f10
cmp ecx, eax
jae 0x418f2e
mov eax, dword [ebp - 0x114]
inc ecx
mov byte [edi], 0xe9
mov dword [ebx], eax
mov ebx, dword [ebp - 0x13c]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x10c], ebx
mov ebx, dword [ebp - 0x114]
mov esi, dword [ebp - 0x120]
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
inc ecx
dec ebx
add eax, 0xfffffffb
mov dword [ebp - 0x110], ecx
inc edi
mov dword [ebp - 0x114], ebx
cmp ecx, eax
jb 0x418e10
mov edx, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x10c]
mov dword [ebp - 0x118], edx
mov esi, dword [ebp - 0x134]
push 0
push esi
push ebx
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x418fa0
push eax
push esi
push ebx
push dword [ebp - 0x118]
or ecx, 0xffffffff
call fcn.004183b0
mov edi, dword [ebp - 0x148]
mov esi, dword [ebp - 0x13c]
mov ebx, dword [ebp - 0x12c]
lea eax, [edi + 1]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
add eax, esi
cmp eax, dword [ebp - 0x164]
jb 0x418d31
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x114]
jmp 0x418f40
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret 0x10