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

Disassembly:
push rdi
sub rsp, 0xa10
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov qword [rsp + 0xa30], rbx
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0xa00], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x18012eb74]
mov rcx, rbx
call fcn.180007d10
mov r8, rdi
lea rdx, str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exe__nologo
lea rcx, [rsp + 0x1b0]
call fcn.18000d0f0
nop
lea r8, [0x1801325b4]
mov rdx, rax
lea rcx, [rsp + 0x1d8]
call fcn.1800086e0
nop
lea rcx, [rsp + 0x1b0]
call fcn.180002b10
mov byte [rsp + 0x200], 0
xor edx, edx
mov r8d, 0x7ff
lea rcx, [rsp + 0x201]
call fcn.1800cc600
xor edx, edx
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], rdx
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x140]
call fcn.1800cc600
mov dword [rsp + 0xb8], 1
xor edi, edi
mov qword [rsp + 0xb0], rdi
mov dword [rsp + 0xa8], Ordinal_32
mov dword [rsp + 0x140], WSAGetLastError
mov dword [rsp + 0x17c], 0x101
mov word [rsp + 0x180], di
xor r9d, r9d
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x180035ec2
lea rcx, str.cmd:_CreatePipe_failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rsp + 0x1d8]
call fcn.180002b10
xor eax, eax
jmp 0x18003627b
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x1a0], rax
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180035f01
lea rcx, [rsp + 0x1d8]
call fcn.180002b10
xor eax, eax
jmp 0x18003627b
lea rcx, [rsp + 0x1d8]
call fcn.180002b30
lea rcx, [rsp + 0x1d8]
call fcn.180002b30
mov rdx, rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
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 0x180035f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.cmd:_CreateProcess_failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rsp + 0x1d8]
call fcn.180002b10
xor eax, eax
jmp 0x18003627b
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x54], 0x103
jne 0x180035fcd
nop word [rax + rax]
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x54], 0x103
je 0x180035fb0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x180035fe9
lea rcx, str.cmd:_CloseHandle_writeHandle__failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, 0x800
lea rdx, [rsp + 0x200]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
test al, al
jne 0x18003603d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.cmd:_ReadFile_failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rsp + 0x1d8]
call fcn.180002b10
xor eax, eax
jmp 0x18003627b
mov eax, dword [rsp + 0x58]
mov byte [rsp + rax + 0x200], dil
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x180036065
lea rcx, str.cmd:_CloseHandle_readHandle__failed__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x200]
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
lea r8, [rsp + 0x200]
xor edx, edx
mov rcx, rbx
call fcn.18003b7c0
mov byte [rsp + 0x50], 0xa
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.180007e10
lea rdx, [rsp + 0x80]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call fcn.180007e10
lea rdx, [rsp + 0xc0]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea rdx, [rsp + 0x100]
mov rcx, rbx
call fcn.1800082c0
lea rdx, [rsp + 0x70]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x110]
call fcn.18003f340
movaps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [rsp + 0xd0]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.1800081a0
mov byte [rsp + 0x50], reloc.WS2_32.dll_listen
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.180007e10
lea rdx, [rsp + 0x70]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea rdx, [rsp + 0x110]
mov rcx, rbx
call fcn.180007e10
lea rdx, [rsp + 0xd0]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea rdx, [rsp + 0x100]
mov rcx, rbx
call fcn.1800082c0
lea rdx, [rsp + 0x80]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xf0]
call fcn.18003f340
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0xc0]
mov rdx, qword [rax]
mov qword [rcx], rdx
mov rdx, qword [rax + 8]
mov qword [rcx + 8], rdx
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.1800081a0
mov rcx, rbx
call fcn.180002b30
mov rcx, rbx
call fcn.180035570
nop
lea rcx, [rsp + 0x1d8]
call fcn.180002b10
mov eax, 1
mov rcx, qword [rsp + 0xa00]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0xa30]
add rsp, 0xa10
pop rdi
ret