Function at 0x140001b80
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140076700]
xor rax, rsp
mov qword [rbp + 0x18], rax
xor esi, esi
mov dword [rsp + 0x70], Ordinal_27
mov ecx, 0xf4240
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140001d11
xor edx, edx
mov r8d, 0xf4240
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140001d11
mov rcx, qword [rsp + 0x50]
lea edx, [rsi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140001d11
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140001d11
mov rcx, qword [rsp + 0x58]
lea edx, [rsi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140001d11
xor eax, eax
lea rdx, str.powershell.exe__Command__
mov qword [rbp], rax
xorps xmm1, xmm1
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
mov rax, qword [rsp + 0x60]
xor r9d, r9d
movups xmmword [rbp - 0x10], xmm1
mov qword [rbp - 8], rax
xor r8d, r8d
mov rax, qword [rsp + 0x68]
xor ecx, ecx
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x60], xmm1
mov dword [rbp - 0x60], 0x68
movaps xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
psrldq xmm1, 0xc
movd eax, xmm1
movups xmmword [rbp - 0x78], xmm0
or eax, 0x101
mov dword [rbp - 0x24], eax
mov eax, 6
mov word [rbp - 0x20], ax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001d34
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.14005d140
lea r11, [rsp + 0x120]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x130], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140076fa0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x140001d74
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 0x10]
mov r8d, 0xf4240
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001df1
nop
add ebx, dword [rbp + 0x10]
cmp ebx, 0xf4240
jae 0x140001df1
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 0x10]
mov r8d, 0xf4240
mov edx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], rsi
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001dc0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x130]
mov rax, rdi
jmp 0x140001d13