Function at 0x14002a340
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11c0]
mov eax, 0x12c0
call fcn.140048fb0
sub rsp, rax
mov rax, qword [0x140071040]
xor rax, rsp
mov qword [rbp + 0x11b0], rax
xor r15d, r15d
mov dword [rsp + 0x50], r15d
call fcn.14002a0a0
mov r8d, eax
test eax, eax
jne 0x14002a3ba
lea rdx, str.Failed_to_find_explorer.exe_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ad40
lea rdx, [0x14000dc80]
mov rcx, rax
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]
jmp 0x14002ab85
lea r9, [rbp + 0x1aa]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x14002a3c1
xorps xmm0, xmm0
movups xmmword [rbp + 0x140], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x150], xmm1
lea rax, [rbp + 0x1aa]
cmp r9, rax
jne 0x14002a42c
movdqa xmm0, xmmword [0x140060dd0]
movdqu xmmword [rbp + 0x150], xmm0
mov word [rbp + 0x140], r15w
jmp 0x14002a448
lea r8, [rbp + 0x1aa]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp + 0x140]
call fcn.1400066a0
mov dword [rsp + 0x50], 6
mov r14d, 0xe
mov r9d, r14d
lea r8, str.memory.exe__p
lea rcx, [rbp + 0x140]
call fcn.140015540
xorps xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x170], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x160], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x170], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp + 0x158]
cmp rdx, 7
jbe 0x14002a4f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a4ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002a4ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048300
movdqa xmm0, xmmword [0x140060dd0]
movdqu xmmword [rbp + 0x150], xmm0
mov word [rbp + 0x140], r15w
mov qword [rsp + 0x68], 0x18
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x70], r15
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
nop dword [rax]
test eax, eax
je 0x14002ab1d
mov dword [rbp + 0x90], 0x68
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
movups xmmword [rbp + 0xa8], xmm0
movups xmmword [rbp + 0xb8], xmm0
movups xmmword [rbp + 0xc8], xmm0
movups xmmword [rbp + 0xd8], xmm0
movups xmmword [rbp + 0xe8], xmm0
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0xe8], rax
psrldq xmm0, 4
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0xcc], eax
mov word [rbp + 0xd0], r15w
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 7
cmova rdx, qword [rbp + 0x160]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14002a614
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
jmp 0x14002ab16
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002aaee
lea r13, [0x14005b680]
lea r12, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rbx, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x14002aaee
mov r8d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
mov qword [rbp + 0x130], r15
mov qword [rbp + 0x138], r15
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x120]
call fcn.1400067a0
nop
mov qword [rbp - 0x60], r13
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r14d, 1
mov dword [rsp + 0x50], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r12
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x64], edx
lea rax, [rbp - 0x50]
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov qword [rbp - 0x50], rbx
lea rsi, [rbp + 0x120]
mov rbx, qword [rbp + 0x120]
mov rdi, qword [rbp + 0x138]
cmp rdi, 0xf
cmova rsi, rbx
mov ecx, 2
mov rax, qword [rbp + 0x130]
cmp rax, 0x7fffffff
ja 0x14002ab75
test rax, rax
je 0x14002a7ae
lfence
mov rbx, qword [rbp + 0x130]
mov rcx, rbx
call fcn.1400069a0
mov rdi, rax
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbx + rdi]
mov qword [rbp + 0x18], rdx
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rdi
mov rcx, qword [rbp - 0x18]
mov qword [rcx], rdi
sub edx, edi
mov rax, qword [rbp]
mov dword [rax], edx
mov ecx, 3
mov rdi, qword [rbp + 0x138]
mov rbx, qword [rbp + 0x120]
mov r14d, dword [rsp + 0x50]
jmp 0x14002a7b2
mov qword [rbp + 0x18], r15
mov dword [rbp + 0x20], ecx
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov qword [rbp + 0x110], r15
mov qword [rbp + 0x118], 0xf
mov byte [rbp + 0x100], 0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x60]
call fcn.14000df20
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x14002a9dd
nop dword [rax]
lea rcx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rcx, qword [rbp + 0x100]
mov qword [rsp + 0x20], 0x29
lea r9, str.TRACE_0000_0000_PcaClient_MonitorProcess_
xor r8d, r8d
mov rdx, qword [rbp + 0x110]
call fcn.140018600
test rax, rax
je 0x14002a89a
lea rcx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rcx, qword [rbp + 0x100]
mov qword [rsp + 0x20], 8
lea r9, str.file:___
xor r8d, r8d
mov rdx, qword [rbp + 0x110]
call fcn.140018600
test rax, rax
jne 0x14002a998
lea rcx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rcx, qword [rbp + 0x100]
mov qword [rsp + 0x20], 4
lea r9, [0x14005b798]
xor r8d, r8d
mov rdx, qword [rbp + 0x110]
call fcn.140018600
cmp rax, 0xffffffffffffffff
je 0x14002a998
lea rcx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rcx, qword [rbp + 0x100]
mov qword [rsp + 0x20], 0x29
lea r9, str.TRACE_0000_0000_PcaClient_MonitorProcess_
xor r8d, r8d
mov rdx, qword [rbp + 0x110]
call fcn.140018600
test rax, rax
je 0x14002a950
lea rcx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rcx, qword [rbp + 0x100]
mov qword [rsp + 0x20], 8
lea r9, str.file:___
xor r8d, r8d
mov rdx, qword [rbp + 0x110]
call fcn.140018600
test rax, rax
jne 0x14002a998
lea rcx, [rbp + 0x100]
cmp qword [rbp + 0x118], 0xf
cmova rcx, qword [rbp + 0x100]
mov qword [rsp + 0x20], 4
lea r9, [0x14005b798]
xor r8d, r8d
mov rdx, qword [rbp + 0x110]
call fcn.140018600
cmp rax, 0xffffffffffffffff
je 0x14002a998
lea rcx, [rbp + 0x100]
call fcn.140029b80
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x100]
lea rcx, [rbp - 0x60]
call fcn.14000df20
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x14002a820
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x14002aa2f
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aa2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ab67
call fcn.140048300
mov qword [rbp + 0x110], r15
mov qword [rbp + 0x118], 0xf
mov byte [rbp + 0x100], 0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r12
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call fcn.14002d840
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, ds:[rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
cmp rdi, 0xf
jbe 0x14002aabe
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14002aab6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ab6e
mov rcx, rbx
call fcn.140048300
mov qword ss:[rsp + 0x20], r15
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002a66b
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x178]
cmp rdx, 7
jbe 0x14002ab85
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ab7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002ab7c
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
nop
nop dword [rax]
call fcn.140048300
mov rcx, qword [rbp + 0x11b0]
xor rcx, rsp
call fcn.1400482e0
lea r11, [rsp + 0x12c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret