Function at 0x140002cf0
Capabilities:
Create process on windows
Create process suspended
Inject apc
Resume thread
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xdf0
mov rax, qword [0x140065840]
xor rax, rsp
mov qword [rsp + 0xde0], rax
xor eax, eax
mov word [rsp + 0x9a0], ax
lea rdi, [rsp + 0x9a2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0xf0], ax
lea rdi, [rsp + 0xf2]
xor eax, eax
mov ecx, 0x7e
rep stosb byte [rdi], al
mov r8, qword [rsp + 0xe00]
mov edx, 0x104
lea rcx, [rsp + 0x9a0]
call fcn.140003f30
lea rcx, [rsp + 0x9a0]
call fcn.140011f40
mov qword [rsp + 0x990], rax
cmp qword [rsp + 0x990], 0
jne 0x140002da3
mov rax, qword [rsp + 0xe18]
mov dword [rax], 0xffffffff
xor eax, eax
jmp 0x1400030bc
mov r8, qword [rsp + 0x990]
mov edx, 0x40
lea rcx, [rsp + 0xf0]
call fcn.140003f30
xor edx, edx
mov rax, qword [rsp + 0x990]
mov word [rax], dx
lea rdi, [rsp + 0x170]
xor eax, eax
mov ecx, 0x820
rep stosb byte [rdi], al
cmp qword [rsp + 0xe08], 0
je 0x140002e16
mov rax, qword [rsp + 0xe08]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xe00]
lea r8, [0x140058ac0]
mov edx, 0x410
lea rcx, [rsp + 0x170]
call fcn.140004020
jmp 0x140002e37
mov r9, qword [rsp + 0xe00]
lea r8, [0x140058ad0]
mov edx, 0x410
lea rcx, [rsp + 0x170]
call fcn.140004020
xor eax, eax
mov word [rsp + 0xbc0], ax
lea rdi, [rsp + 0xbc2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
cmp qword [rsp + 0xe10], 0
jne 0x140002e92
lea r8, [rsp + 0x9a0]
mov edx, 0x104
lea rcx, [rsp + 0xbc0]
call fcn.140003f30
lea r8, [0x140058ae0]
mov edx, 0x104
lea rcx, [rsp + 0xbc0]
call fcn.140003fa0
jmp 0x140002eac
mov r8, qword [rsp + 0xe10]
mov edx, 0x104
lea rcx, [rsp + 0xbc0]
call fcn.140003f30
mov dword [rsp + 0x60], 0
lea rdi, [rsp + 0x68]
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x68
mov qword [rsp + 0xd0], 0
lea rdi, [rsp + 0xd8]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
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
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0xe00]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x998], eax
cmp dword [rsp + 0x998], 0
jne 0x140002f5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [rsp + 0x998]
jmp 0x1400030bc
lea rcx, [rsp + 0xbc0]
call fcn.140043938
lea rax, [rax + rax + 2]
mov dword [rsp + 0x99c], eax
movsxd r8, dword [rsp + 0x99c]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0xbb0], rax
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0xbb0], 0
je 0x14000305f
mov qword [rsp + 0xdd0], 0
movsxd r9, dword [rsp + 0x99c]
lea rax, [rsp + 0xdd0]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0xbc0]
mov rdx, qword [rsp + 0xbb0]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x998], eax
cmp dword [rsp + 0x998], 0
jne 0x140003015
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000305d
mov r8, qword [rsp + 0xbb0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov dword [rsp + 0xdd8], eax
cmp dword [rsp + 0xdd8], 0
jne 0x14000304b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000305d
mov dword [rsp + 0x50], 1
xor eax, eax
test eax, eax
jne 0x140002fbd
jmp 0x140003065
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x50], 1
jne 0x14000307c
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14000309c
mov dword [rsp + 0xddc], 0
mov edx, dword [rsp + 0xddc]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xde0]
xor rcx, rsp
call fcn.140043800
add rsp, 0xdf0
pop rdi
ret