Function at 0x1400051c0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x10b0]
mov eax, 0x11b0
call fcn.140034990
sub rsp, rax
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rbp + 0x10a0], rax
mov rbx, rdx
mov qword [rbp - 0x80], rdx
xor edi, edi
mov rdx, qword [r9]
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x70], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x140005213
lea rcx, [rbp + 0x58]
call fcn.140002670
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x68]
sub rax, rcx
cmp rax, 0x19
jb 0x14000568d
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x70], 0xf
cmova rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x19
lea r9, str.powershell.exe__Command__
lea rcx, [rsp + 0x58]
call fcn.140005a80
nop
mov r8d, 1
lea rdx, [0x140038c28]
lea rcx, [rsp + 0x58]
call fcn.1400056a0
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400052f8
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033b8c
movdqa xmm0, xmmword [0x14003b760]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov dword [rbp - 0x78], 0x18
mov dword [rbp - 0x68], 1
mov qword [rbp - 0x70], rdi
xor r9d, r9d
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14000540e
lea r8d, [rax + 0x13]
lea rdx, str.Error_creating_pipe
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140002670
mov byte [rbx + 0x20], 0
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x14000539b
inc rdx
mov rcx, qword [rbp + 0x38]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140005396
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005625
call fcn.140033b8c
movdqa xmm0, xmmword [0x14003b760]
movdqu xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x1400053e7
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005680
call fcn.140033b8c
mov rax, rbx
mov rcx, qword [rbp + 0x10a0]
xor rcx, rsp
call fcn.1400338f0
lea r11, [rsp + 0x11b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rdx, qword [rbp + 0x38]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
mov dword [rbp + 0x14], eax
mov dword [rbp - 0x40], 0x68
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rax
psrldq xmm0, 8
movd eax, xmm0
bts eax, 8
mov dword [rbp - 4], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
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 0x1400054bb
lea r8d, [rax + 0x16]
lea rdx, str.Error_creating_process
jmp 0x140005346
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
movdqa xmm1, xmmword [0x14003b760]
movdqu xmmword [rbp + 0x88], xmm1
mov byte [rbp + 0x78], 0
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x30]
mov r8d, 0xfff
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000556f
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x14000556f
cmp rax, 0x1000
jae 0x140005687
mov byte [rbp + rax + 0xa0], 0
lea rax, [rbp + 0xa0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140005530
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x78]
call fcn.1400056a0
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x30]
mov r8d, 0xfff
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140005505
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x78]
mov rcx, rbx
call fcn.140001fa0
mov byte [rbx + 0x20], 1
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x1400055df
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400055da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033b8c
movdqa xmm0, xmmword [0x14003b760]
movdqu xmmword [rbp + 0x88], xmm0
mov byte [rbp + 0x78], 0
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x140005631
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000562c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000562c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033b8c
movdqa xmm0, xmmword [0x14003b760]
movdqu xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x1400053e7
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140033cc8
nop
call fcn.140001350
int3