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

Disassembly:
push rbp
push rdi
sub rsp, 0x508
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov ebp, dword [rcx + 0x3c]
lea rdx, [rsp + 0xe0]
add ebp, ecx
mov rdi, rcx
xor ecx, ecx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [rbp], 0x4550
jne 0x1400023ad
xorps xmm1, xmm1
mov qword [rsp + 0x500], r12
xor eax, eax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
xor r12d, r12d
mov qword [rsp + 0xd0], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm1
movups xmmword [rsp + 0xa0], xmm1
movups xmmword [rsp + 0xb0], xmm1
movups xmmword [rsp + 0xc0], xmm1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400023a9
lea edx, [r12 + 8]
mov qword [rsp + 0x4f8], r14
xor ecx, ecx
lea r9d, [r12 + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, rax
mov r14, rax
mov dword [rax + 0x30], 0x10000b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400023a5
mov rdx, qword [r14 + 0x90]
lea r9d, [r12 + 4]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x528], rbx
add rdx, 8
mov qword [rsp + 0x530], rsi
mov qword [rsp + 0x4f0], r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r8d, dword [rbp + 0x50]
mov r9d, 0x3000
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [rbp + 0x54]
mov r8, rdi
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov rsi, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, r12d
cmp r12w, word [rbp + 6]
jae 0x14000231a
nop word [rax + rax]
mov eax, dword [rdi + 0x3c]
lea ecx, [rbx + rbx*4]
mov qword [rsp + 0x20], r12
lea eax, [rax + rcx*8]
mov rcx, qword [rsp + 0x50]
add eax, 0xf8
add eax, edi
mov r8d, dword [rax + 0x14]
mov edx, dword [rax + 0xc]
add r8d, edi
mov r9d, dword [rax + 0x10]
add edx, esi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbp + 6]
inc ebx
cmp ebx, eax
jl 0x1400022e0
mov rdx, qword [r14 + 0x90]
lea r8, [rbp + 0x30]
mov rcx, qword [rsp + 0x50]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rbp + 0x28]
mov rdx, r14
add eax, esi
mov qword [r14 + 0x78], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov r15, qword [rsp + 0x4f0]
xor eax, eax
mov rsi, qword [rsp + 0x530]
mov rbx, qword [rsp + 0x528]
mov r14, qword [rsp + 0x4f8]
mov r12, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140003c10
add rsp, 0x508
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x14000237b
xor eax, eax
jmp 0x140002383
xor eax, eax
jmp 0x14000238b