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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1260]
mov eax, 0x1360
call fcn.1400de310
sub rsp, rax
mov rbx, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rsp + 0x70], r13d
mov dword [rbp - 0x28], Ordinal_27
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x18], 1
xor r9d, r9d
lea r8, [rbp - 0x28]
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x12a8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xorps xmm0, xmm0
test eax, eax
jne 0x14008e5ac
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14008f478
mov qword [rdi], rax
mov qword [rdi + 0x10], reloc.WS2_32.dll_recvfrom
mov qword [rdi + 0x18], Ordinal_32
movups xmm0, xmmword [str.DISABLED_OR_ERROR]
movups xmmword [rax], xmm0
movzx ecx, byte [0x140104398]
mov byte [rax + 0x10], cl
mov byte [rax + 0x11], r13b
jmp 0x14008e790
mov dword [rbp - 0x10], 0x68
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm0
movups xmmword [rbp + 0x48], xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
mov dword [rbp + 0x2c], 0x101
mov rax, qword [rsp + 0x78]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov word [rbp + 0x30], r13w
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0x19
jb 0x14008ec30
cmp qword [rbx + 0x18], 0xf
jbe 0x14008e613
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], Ordinal_32
lea r9, str.powershell.exe__Command__
lea rcx, [rbp - 0x60]
call fcn.140078db0
nop
mov r8d, 1
lea rdx, [0x14010439c]
lea rcx, [rbp - 0x60]
call fcn.14003af20
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14008e6b8
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e6b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008e6b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008f7c4
movdqa xmm0, xmmword [0x140104660]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14008e7af
mov rcx, qword [rbp + 0x12a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 8
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
movabs rax, 0x44454c4241534944
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14008e790
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e78b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008ec23
call fcn.14008f7c4
mov rax, rdi
lea r11, [rsp + 0x1360]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x60]
call fcn.140071a30
nop
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x12a0]
mov r8d, 0xfff
lea rdx, [rbp + 0x260]
mov rcx, qword [rbp + 0x12a8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008e83c
nop
mov eax, dword [rbp + 0x12a0]
test eax, eax
je 0x14008e83c
mov byte [rbp + rax + 0x260], 0
lea rdx, [rbp + 0x260]
lea rcx, [rbp + 0x70]
call fcn.1400765e0
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x12a0]
mov r8d, 0xfff
lea rdx, [rbp + 0x260]
mov rcx, qword [rbp + 0x12a8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14008e7f0
mov rcx, qword [rbp + 0x12a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r14, r13
mov qword [rsp + 0x60], r13
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x50], r14b
mov dword [rsp + 0x70], reloc.WLDAP32.dll_Ordinal_22
movups xmmword [rbp - 0x60], xmm0
mov rcx, qword [rbp + 0xe8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14008e8c6
mov rax, qword [rbp + 0xb8]
mov r8, qword [rax]
test r8, r8
je 0x14008e8c6
mov rax, qword [rbp + 0x98]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xe0]
cmovb r8, qword [rbp + 0xe0]
sub r8, rdx
jmp 0x14008e8fe
test cl, 4
jne 0x14008e8f6
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008e8f6
mov rax, qword [rbp + 0x90]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xc8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x14008e8fe
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
test rdx, rdx
je 0x14008e917
lea rcx, [rsp + 0x50]
call fcn.140038110
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
lea rsi, [rsp + 0x50]
cmp r15, 0xf
cmova rsi, qword [rsp + 0x50]
lea rbx, str.__t_n_r
test r14, r14
je 0x14008e99f
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
lea rdx, [0x1401043c0]
movzx eax, byte [rcx]
mov byte [rbp + rax + 0x160], 1
inc rcx
cmp rcx, rdx
jne 0x14008e950
lea rax, [r14 - 1]
mov rcx, 0xffffffffffffffff
cmp rax, rcx
cmovb rcx, rax
add rcx, rsi
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0x160], 0
je 0x14008e99a
cmp rcx, rsi
je 0x14008e99f
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0x160], 0
jne 0x14008e985
sub rcx, rsi
jmp 0x14008e9a6
mov rcx, 0xffffffffffffffff
inc rcx
cmp r14, rcx
jb 0x14008ec2a
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x50]
cmp r15, 0xf
cmova rax, qword [rsp + 0x50]
mov byte [rax + rcx], 0
lea rsi, [rsp + 0x50]
mov r15, qword [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rsi, r15
mov r14, qword [rsp + 0x60]
test r14, r14
je 0x14008ea4e
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
lea r13, [0x1401043c0]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rbp + rax + 0x160], 1
inc rbx
cmp rbx, r13
jne 0x14008ea10
lea rcx, [r14 + rsi]
mov rdx, rsi
cmp rsi, rcx
mov r13d, 0
jae 0x14008ea4e
movzx eax, byte [rdx]
cmp byte [rbp + rax + 0x160], r13b
je 0x14008eb09
inc rdx
cmp rdx, rcx
jb 0x14008ea35
mov rdx, 0xffffffffffffffff
cmp r14, rdx
cmovb rdx, r14
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, r15
sub r14, rdx
lea r8, [r14 + 1]
add rdx, rcx
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], r14
test r14, r14
jne 0x14008eb77
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14008f478
mov qword [rdi], rax
mov qword [rdi + 0x10], Ordinal_27
mov qword [rdi + 0x18], Ordinal_32
movups xmm0, xmmword [str.LIKELY_DISABLED_OR_ERROR]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1401043d8]
movsd qword [rax + 0x10], xmm0
mov byte [rax + 0x18], r14b
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14008eb16
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008eb11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008eb11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rdx, rsi
jmp 0x14008ea55
call fcn.14008f7c4
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov rax, qword [rbp + 0x60]
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 + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x78]
call fcn.140072890
lea rcx, [rbp + 0x80]
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 + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14008e755
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov rax, qword [rbp + 0x60]
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 + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x78]
call fcn.140072890
lea rcx, [rbp + 0x80]
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 + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14008e790
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e78b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008e78b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14003afe0
nop
call fcn.1400377e0
int3