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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x40e040]
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 0x405fa8
xor eax, eax
jmp 0x4061a2
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.00401f80
mov ecx, eax
call fcn.004059d0
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.00401860
mov ecx, eax
call fcn.00405af0
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.00401580
mov ecx, eax
call fcn.00405b80
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 0x406091
cmp dword [ebp - 0x2c], 0
jne 0x406091
xor eax, eax
jmp 0x4061a2
cmp dword [ebp - 0xc], 0
jne 0x4060ce
cmp dword [ebp - 0x2c], 0
je 0x4060ce
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 0x4060ce
xor eax, eax
jmp 0x4061a2
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.00405ca0
mov edx, dword [ebp - 0x14]
add edx, 0xf8
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], 0
jmp 0x40610c
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 0x40614c
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.00405ca0
jmp 0x406103
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 0x406193
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.00406e90
mov esp, ebp
pop ebp
ret 4