Function at 0x140001000
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x1978
call fcn.140002570
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
jne 0x140001053
mov rax, 0xffffffffffffffff
jmp 0x1400013b5
xor edx, edx
mov qword [rsp + 0x1970], r13
mov r8d, 0x1208
lea rcx, [rsp + 0x740]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x530]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140001080
add rbx, rbx
lea rdx, [rsp + 0x530]
mov r8, rbx
lea rcx, [rsp + 0x740]
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x20
lea r13, [0x140005080]
mov word [rsp + rbx + 0x740], ax
movzx eax, word [rsi]
movsxd rsi, dword [0x1400050bc]
add rsi, r13
mov word [rsp + rbx + 0x742], ax
cmp dword [rsi], 0x4550
je 0x1400010e0
mov eax, 0xfffffffe
jmp 0x1400013ad
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x740]
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x19b0], r12
xor r8d, r8d
xor r12d, r12d
xor ecx, ecx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140001133
mov eax, 0xfffffffd
jmp 0x1400013a5
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]
test eax, eax
jne 0x14000117b
mov rcx, qword [rdi]
mov edx, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffc
jmp 0x1400013a5
lea rcx, str.kernel32.dll
mov qword [rsp + 0x1968], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
jne 0x1400011a1
lea rdx, str.Failed_to_get_handle_to_kernel32.dll
jmp 0x1400011c1
lea rdx, [0x140003358]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [sym.imp.KERNEL32.dll_VirtualAllocEx], r12
jne 0x1400011f4
lea rdx, str.Failed_to_get_VirtualAllocEx_address
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001520
mov rcx, rax
lea rdx, [0x140001700]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov eax, 1
jmp 0x14000139d
mov r8d, dword [rsi + 0x50]
mov r9d, 0x3000
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdi]
mov dword [rsp + 0x20], 0x40
call rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140001231
mov rcx, qword [rdi]
mov edx, 0xfffffffb
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffb
jmp 0x14000139d
lea rdx, [0x140003390]
mov qword [rsp + 0x1960], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, dword [rsi + 0x54]
mov r8, r13
mov rdx, qword [rsp + 0x50]
mov r15, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x20], r12
call r15
test eax, eax
jne 0x14000127f
mov rcx, qword [rdi]
mov edx, 0xfffffffa
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffffa
jmp 0x140001395
mov rbx, r12
cmp r12w, word [rsi + 6]
jae 0x1400012d9
mov rbp, r12
nop dword [rax]
movsxd rcx, dword [0x1400050bc]
add rcx, rbp
mov qword [rsp + 0x20], r12
mov r8d, dword [rcx + r13 + 0x11c]
mov edx, dword [rcx + r13 + 0x114]
add r8, r13
mov r9d, dword [rcx + r13 + 0x118]
add rdx, qword [rsp + 0x50]
mov rcx, qword [rdi]
call r15
test eax, eax
je 0x140001317
movzx eax, word [rsi + 6]
inc rbx
add rbp, 0x28
cmp rbx, rax
jb 0x140001290
mov rdx, qword [rsp + 0xe8]
lea r8, [rsp + 0x50]
mov rcx, qword [rdi]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000132c
mov rcx, qword [rdi]
mov edx, 0xfffffff8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff8
jmp 0x140001395
mov rcx, qword [rdi]
mov edx, 0xfffffff9
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff9
jmp 0x140001395
lea rdx, str.SetThreadContext
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [rsi + 0x28]
lea rdx, [rsp + 0x60]
add rcx, qword [rsp + 0x50]
mov qword [rsp + 0xe0], rcx
mov rcx, qword [rdi + 8]
call rax
test eax, eax
jne 0x140001370
mov rcx, qword [rdi]
mov edx, 0xfffffff7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff7
jmp 0x140001395
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x140001393
mov rcx, qword [rdi]
mov edx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0xfffffff6
jmp 0x140001395
xor eax, eax
mov r15, qword [rsp + 0x1960]
mov r14, qword [rsp + 0x1968]
mov r12, qword [rsp + 0x19b0]
mov r13, qword [rsp + 0x1970]
mov rcx, qword [rsp + 0x1950]
xor rcx, rsp
call fcn.140001750
add rsp, 0x1978
pop rdi
pop rsi
pop rbp
pop rbx
ret