Function at 0x140029160
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 - 0x11a0]
mov eax, 0x12a0
call fcn.14004a560
sub rsp, rax
mov rax, qword [0x14006c040]
xor rax, rsp
mov qword [rbp + 0x1190], rax
xor r15d, r15d
mov dword [rsp + 0x50], r15d
call fcn.140028e40
test eax, eax
jne 0x1400291da
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]
nop dword [rax]
call fcn.14000b980
lea rdx, [0x1400107c0]
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 0x140029bb2
mov edx, eax
lea rcx, [rbp + 0x170]
call fcn.1400117c0
nop
mov r9d, 0xe
lea r8, str.memory.exe__p
mov rcx, rax
call fcn.1400127e0
xorps xmm0, xmm0
movups xmmword [rbp + 0x150], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x160], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x150], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x160], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov r14d, 2
mov rdx, qword [rbp + 0x188]
cmp rdx, 7
jbe 0x14002928c
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword [rbp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029287
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029287
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400499d0
movdqa xmm0, xmmword [0x14005d490]
movdqu xmmword [rbp + 0x180], xmm0
mov word [rbp + 0x170], r15w
mov qword [rbp - 0x80], 0x18
mov qword [rbp - 0x70], 1
mov qword [rbp - 0x78], r15
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140029b67
mov dword [rbp + 0xa0], 0x68
xorps xmm0, 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
movups xmmword [rbp + 0xf8], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0xf8], rax
psrldq xmm0, 4
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0xdc], eax
mov word [rbp + 0xe0], r15w
lea rdx, [rbp + 0x150]
cmp qword [rbp + 0x168], 7
cmova rdx, qword [rbp + 0x150]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xa0]
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 0x1400293a5
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword ds:[rsp + 0x70]
jmp 0x140029b5f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140029b35
lea r12, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rsi, [0x140059080]
mov ecx, 0x16
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140029b35
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
cmp rax, 0xf
ja 0x140029472
mov qword [rbp + 0x140], rax
mov qword [rbp + 0x148], 0xf
mov r8d, eax
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x130]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rbx + 0x130], 0
mov rdi, qword [rbp + 0x148]
mov qword [rsp + 0x78], rdi
mov rbx, qword [rbp + 0x140]
mov r13, qword [rbp + 0x130]
jmp 0x1400294be
mov rdi, rbx
or rdi, 0xf
cmp rdi, 0x16
cmovb rdi, rcx
mov qword [rsp + 0x78], rdi
lea rcx, [rdi + 1]
call fcn.140006f80
mov r13, rax
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x140], rbx
mov qword [rbp + 0x148], rdi
mov r8, rbx
lea rdx, [rbp + 0x190]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r13], 0
mov qword [rbp - 0x50], rsi
lea rcx, [rbp + 0x40]
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 + 0x58], r14d
mov dword [rsp + 0x50], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
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 - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r12
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x54], edx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x40], rax
lea rsi, [rbp + 0x130]
cmp rdi, 0xf
cmova rsi, r13
mov eax, 2
cmp rbx, 0x7fffffff
ja 0x140029b2e
test rbx, rbx
je 0x1400295bb
lfence
mov rbx, qword [rbp + 0x140]
mov rcx, rbx
call fcn.140006f80
mov rdi, rax
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbx + rdi]
mov qword [rbp + 0x28], rdx
mov rcx, qword [rbp - 0x28]
mov qword [rcx], rdi
mov rcx, qword [rbp - 8]
mov qword [rcx], rdi
sub edx, edi
mov rax, qword [rbp + 0x10]
mov dword [rax], edx
mov eax, 3
mov rcx, qword [rbp + 0x148]
mov qword [rsp + 0x78], rcx
mov r13, qword [rbp + 0x130]
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x58], ecx
jmp 0x1400295bf
mov qword [rbp + 0x28], r15
mov dword [rbp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
mov qword [rbp + 0x120], r15
mov qword [rbp + 0x128], 0xf
mov byte [rbp + 0x110], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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 + 0x110]
lea rcx, [rbp - 0x50]
call fcn.14002da40
mov rcx, qword ds:[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 0x14002978f
nop
lea rdi, [rbp + 0x110]
cmp qword [rbp + 0x128], 0xf
seta r12b
mov r15, qword [rbp + 0x110]
cmova rdi, r15
mov r14, qword [rbp + 0x120]
cmp r14, 0x29
jb 0x1400296c9
lea rsi, [r14 + rdi]
lea r8, [rsi - 0x28]
sub r8, rdi
mov edx, 0x54
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400296c9
nop dword [rax + rax]
mov r8d, 0x29
lea rdx, str.TRACE_0000_0000_PcaClient_MonitorProcess_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400296ba
inc rbx
lea r8, [rsi - 0x28]
sub r8, rbx
mov edx, 0x54
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140029680
jmp 0x1400296c9
nop word [rax + rax]
sub rbx, rdi
je 0x1400298af
lea rdi, [rbp + 0x110]
test r12b, r12b
cmovne rdi, r15
cmp r14, 8
jb 0x14002973c
lea rsi, [r14 + rdi]
lea r8, [rsi - 7]
sub r8, rdi
mov edx, 0x66
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14002973c
nop dword [rax]
mov r8d, 8
lea rdx, str.file:___
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400298a6
inc rbx
lea r8, [rsi - 7]
sub r8, rbx
mov edx, 0x66
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140029700
xor r15d, r15d
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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 + 0x110]
lea rcx, [rbp - 0x50]
call fcn.14002da40
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]
nop word [rax + rax]
test al, al
jne 0x140029630
lea r12, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x1400297d0
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400297cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029b1b
call fcn.1400499d0
mov qword [rbp + 0x120], r15
mov qword [rbp + 0x128], 0xf
mov byte [rbp + 0x110], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r12
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x40]
call fcn.14002cfa0
lea rcx, [rbp - 0x38]
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 + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rsp + 0x78]
cmp rax, 0xf
jbe 0x140029872
lea rdx, ds:[rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x14002986a
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029b27
mov rcx, r13
call fcn.1400499d0
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140029b35
mov r14d, dword [rsp + 0x58]
jmp 0x1400293f6
sub rbx, rdi
jne 0x14002973c
lea rbx, ds:[rbp + 0x110]
test r12b, r12b
cmovne rbx, r15
cmp r14, 4
jb 0x14002973c
lea rdi, ds:[r14 + rbx]
lea r8, [rdi - 3]
sub r8, rbx
mov edx, 0x2e
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14002973c
nop
xor edx, edx
lea r8, [0x140058bdc]
nop dword [rax]
movzx ecx, byte [rax + rdx]
inc rdx
cmp cl, byte [r8 + rdx - 1]
jne 0x140029918
cmp rdx, 4
jne 0x140029900
xor ecx, ecx
jmp 0x14002991d
sbb ecx, ecx
or ecx, 1
nop dword [rax]
test ecx, ecx
je 0x14002994a
inc rax
lea r8, [rdi - 3]
sub r8, rax
mov edx, 0x2e
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
nop dword [rax + rax]
test rax, rax
jne 0x1400298f0
jmp 0x14002973c
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x14002973c
lea rdi, [rbp + 0x110]
test r12b, r12b
cmovne rdi, r15
cmp r14, 0x29
jb 0x1400299d8
lea rsi, ds:[r14 + rdi]
lea r8, [rsi - 0x28]
sub r8, rdi
mov edx, 0x54
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400299d8
nop dword [rax]
mov r8d, 0x29
lea rdx, str.TRACE_0000_0000_PcaClient_MonitorProcess_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400299cf
inc rbx
lea r8, [rsi - 0x28]
sub r8, rbx
mov edx, 0x54
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140029990
jmp 0x1400299d8
sub rbx, rdi
je 0x140029a69
lea rdi, [rbp + 0x110]
test r12b, r12b
cmovne rdi, r15
cmp r14, 8
jb 0x14002973c
lea rsi, [r14 + rdi]
lea r8, [rsi - 7]
sub r8, rdi
mov edx, 0x66
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14002973c
nop dword [rax]
nop dword [rax + rax]
mov r8d, 8
lea rdx, str.file:___
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140029a5d
inc rbx
lea r8, [rsi - 7]
sub r8, rbx
mov edx, 0x66
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140029a20
jmp 0x14002973c
nop dword [rax]
sub rbx, rdi
jne 0x14002973c
lea rdi, [rbp + 0x110]
test r12b, r12b
cmovne rdi, r15
lea rbx, [r14 + rdi]
lea r8, [rbx - 3]
sub r8, rdi
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
xor r15d, r15d
test rax, rax
je 0x14002973f
nop dword [rax + rax]
mov rcx, r15
lea r8, [0x140058bdc]
nop word [rax + rax]
movzx edx, byte [rax + rcx]
inc rcx
cmp dl, byte [r8 + rcx - 1]
jne 0x140029acb
nop
cmp rcx, 4
jne 0x140029ab0
mov ecx, r15d
jmp 0x140029ad0
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140029af5
inc rax
lea r8, [rbx - 3]
sub r8, rax
mov edx, 0x2e
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140029aa0
jmp 0x14002973f
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x14002973f
lea rcx, [rbp + 0x110]
call fcn.140028640
jmp 0x14002973f
nop dword [rax + rax]
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
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
nop
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x168]
cmp rdx, 7
jbe 0x140029bb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029bad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029bad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400499d0
mov rcx, qword ds:[rbp + 0x1190]
xor rcx, rsp
call fcn.1400499b0
lea r11, [rsp + 0x12a0]
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