Function at 0x140028520
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.140049430
sub rsp, rax
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rbp + 0x1190], rax
xor r15d, r15d
mov dword [rsp + 0x50], r15d
call fcn.140028200
test eax, eax
jne 0x14002859a
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.14000b5c0
lea rdx, [0x140010640]
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 0x140028f72
mov edx, eax
lea rcx, [rbp + 0x170]
call fcn.140011520
nop
mov r9d, 0xe
lea r8, str.memory.exe__p
mov rcx, rax
call fcn.1400125a0
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, 8
jb 0x14002864c
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword [rbp + 0x170]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028647
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048710
movdqa xmm0, xmmword [0x14005c320]
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 0x140028f27
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], 8
cmovae 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 0x140028765
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword ds:[rsp + 0x70]
jmp 0x140028f1f
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 0x140028ef5
lea r12, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rsi, [0x1400580e8]
mov ecx, 0x16
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140028ef5
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
cmp rax, 0x10
jae 0x140028832
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 r13, qword [rbp + 0x148]
mov rbx, qword [rbp + 0x140]
mov rdi, qword [rbp + 0x130]
mov qword [rsp + 0x78], rdi
jmp 0x14002887d
mov r13, rbx
or r13, 0xf
cmp r13, 0x16
cmovb r13, rcx
lea rcx, [r13 + 1]
call fcn.140006ee0
mov rdi, rax
mov qword [rsp + 0x78], rax
mov qword [rbp + 0x130], rax
mov qword [rbp + 0x140], rbx
mov qword [rbp + 0x148], r13
mov r8, rbx
lea rdx, [rbp + 0x190]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 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 r13, 0x10
cmovae rsi, rdi
mov eax, 2
cmp rbx, 0x7fffffff
ja 0x140028eee
test rbx, rbx
je 0x14002897b
lfence
mov rbx, qword [rbp + 0x140]
mov rcx, rbx
call fcn.140006ee0
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 r13, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x130]
mov qword [rsp + 0x78], rcx
mov edx, dword [rsp + 0x50]
mov dword [rsp + 0x58], edx
jmp 0x14002897f
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.14002ce80
mov rcx, qword ds:[rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x140028b43
nop word [rax + rax]
lea rdi, [rbp + 0x110]
cmp qword [rbp + 0x128], 0x10
setae r12b
mov r15, qword [rbp + 0x110]
cmovae rdi, r15
mov r14, qword [rbp + 0x120]
cmp r14, 0x29
jb 0x140028a89
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 0x140028a89
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 0x140028a7a
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 0x140028a40
jmp 0x140028a89
nop word [rax + rax]
sub rbx, rdi
je 0x140028c6e
lea rdi, [rbp + 0x110]
test r12b, r12b
cmovne rdi, r15
cmp r14, 8
jb 0x140028afc
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 0x140028afc
nop dword [rax]
mov r8d, 8
lea rdx, str.file:___
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140028c65
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 0x140028ac0
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.14002ce80
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x1400289f0
lea r12, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rdx, qword [rbp + 0x128]
cmp rdx, 0x10
jb 0x140028b8f
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028b8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028edb
call fcn.140048710
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.14002c4e0
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
cmp r13, 0x10
jb 0x140028c2f
lea rdx, ds:[r13 + 1]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028c2a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028ee7
call fcn.140048710
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 0x140028ef5
mov r14d, dword ds:[rsp + 0x58]
jmp 0x1400287b6
sub rbx, rdi
jne 0x140028afc
lea rbx, ds:[rbp + 0x110]
test r12b, r12b
cmovne rbx, r15
cmp r14, 4
jb 0x140028afc
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 0x140028afc
nop
xor edx, edx
lea r8, [0x140057c44]
nop dword [rax]
movzx ecx, byte [rax + rdx]
inc rdx
cmp cl, byte [r8 + rdx - 1]
jne 0x140028cd8
cmp rdx, 4
jne 0x140028cc0
xor ecx, ecx
jmp 0x140028cdd
sbb ecx, ecx
or ecx, 1
nop dword [rax]
test ecx, ecx
je 0x140028d0a
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 0x140028cb0
jmp 0x140028afc
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x140028afc
lea rdi, [rbp + 0x110]
test r12b, r12b
cmovne rdi, r15
cmp r14, 0x29
jb 0x140028d98
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 0x140028d98
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 0x140028d8f
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 0x140028d50
jmp 0x140028d98
sub rbx, rdi
je 0x140028e29
lea rdi, [rbp + 0x110]
test r12b, r12b
cmovne rdi, r15
cmp r14, 8
jb 0x140028afc
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 0x140028afc
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 0x140028e1d
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 0x140028de0
jmp 0x140028afc
nop dword [rax]
sub rbx, rdi
jne 0x140028afc
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 0x140028aff
nop dword [rax + rax]
mov rcx, r15
lea r8, [0x140057c44]
nop word [rax + rax]
movzx edx, byte [rax + rcx]
inc rcx
cmp dl, byte [r8 + rcx - 1]
jne 0x140028e8b
nop
cmp rcx, 4
jne 0x140028e70
mov ecx, r15d
jmp 0x140028e90
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x140028eb5
inc rax
lea r8, [rbx - 3]
sub r8, rax
mov edx, 0x2e
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x140028e60
jmp 0x140028aff
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x140028aff
lea rcx, [rbp + 0x110]
call fcn.1400279c0
jmp 0x140028aff
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, 8
jb 0x140028f72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028f6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028f6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048710
mov rcx, qword ds:[rbp + 0x1190]
xor rcx, rsp
call fcn.1400486f0
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