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

Disassembly:
jmp 0x14008e810
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1958
call fcn.140074d84
sub rsp, rax
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x4c2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1978]
mov rax, qword [0x1401b3080]
xor rax, rbp
mov qword [rbp + 0x18f8], rax
mov dword [rbp + 0x18d4], 0
lea rcx, [0x1401d1228]
call fcn.140078d5d
xor eax, eax
test eax, eax
je 0x14008e8a7
mov rax, qword [rbp + 0x1938]
add rax, 8
mov qword [rbp + 0x1938], rax
mov rax, qword [rbp + 0x1938]
mov rax, qword [rax - 8]
mov rax, qword [rax]
mov qword [rbp + 0x18e8], rax
jmp 0x14008e8cb
mov rax, qword [rbp + 0x1938]
add rax, 8
mov qword [rbp + 0x1938], rax
mov rax, qword [rbp + 0x1938]
mov rax, qword [rax - 8]
mov qword [rbp + 0x18e8], rax
mov rdx, qword [rbp + 0x18e8]
lea rcx, [rbp + 8]
call fcn.14007622e
nop
lea r8, [rbp + 8]
lea rdx, str.powershell.exe__Command__
lea rcx, [rbp + 0x1878]
call fcn.1400742e4
mov qword [rbp + 0x18e8], rax
mov rax, qword [rbp + 0x18e8]
mov qword [rbp + 0x18f0], rax
lea r8, [0x140173198]
mov rdx, qword [rbp + 0x18f0]
lea rcx, [rbp + 0x48]
call fcn.1400786a5
nop
lea rcx, [rbp + 0x1878]
call fcn.140074dc0
mov dword [rbp + 0xc8], 0x18
mov dword [rbp + 0xd8], 1
mov qword [rbp + 0xd0], 0
xor r9d, r9d
lea r8, [rbp + 0xc8]
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14008e9bc
mov rax, qword [rbp + 0x1928]
lea rdx, str.Error_creating_pipe
mov rcx, rax
call fcn.14007622e
mov rax, qword [rbp + 0x1928]
mov byte [rax + 0x28], 0
mov eax, dword [rbp + 0x18d4]
or eax, 1
mov dword [rbp + 0x18d4], eax
lea rcx, [rbp + 0x48]
call fcn.140074dc0
nop
lea rcx, [rbp + 8]
call fcn.140074dc0
mov rax, qword [rbp + 0x1928]
jmp 0x14008ec1c
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea rcx, [rbp + 0x48]
call fcn.14007465e
mov qword [rbp + 0xf8], rax
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x120]
call fcn.140077976
mov dword [rbp + 0x120], WSAGetLastError
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x178], rax
mov eax, dword [rbp + 0x15c]
bts eax, 8
mov dword [rbp + 0x15c], eax
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x120]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0xf8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14008eacd
mov rax, qword [rbp + 0x1928]
lea rdx, str.Error_creating_process
mov rcx, rax
call fcn.14007622e
mov rax, qword [rbp + 0x1928]
mov byte [rax + 0x28], 0
mov eax, dword [rbp + 0x18d4]
or eax, 1
mov dword [rbp + 0x18d4], eax
lea rcx, [rbp + 0x48]
call fcn.140074dc0
nop
lea rcx, [rbp + 8]
call fcn.140074dc0
mov rax, qword [rbp + 0x1928]
jmp 0x14008ec1c
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x1f4], 0x1000
lea rcx, [rbp + 0x1238]
call fcn.140078cf4
nop
xor eax, eax
cmp eax, 1
je 0x14008eb7d
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x1d4]
mov r8d, 0xfff
lea rdx, [rbp + 0x220]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008eb33
cmp dword [rbp + 0x1d4], 0
jne 0x14008eb35
jmp 0x14008eb7d
mov eax, dword [rbp + 0x1d4]
mov qword [rbp + 0x18b8], rax
cmp qword [rbp + 0x18b8], 0x1000
jae 0x14008eb51
jmp 0x14008eb56
call fcn.140077732
mov rax, qword [rbp + 0x18b8]
mov byte [rbp + rax + 0x220], 0
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x1238]
call fcn.140074550
jmp 0x14008eaf1
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x1928]
lea rdx, [rbp + 0x1238]
mov rcx, rax
call fcn.1400749e7
mov rax, qword [rbp + 0x1928]
mov byte [rax + 0x28], 1
mov eax, dword [rbp + 0x18d4]
or eax, 1
mov dword [rbp + 0x18d4], eax
lea rcx, [rbp + 0x1238]
call fcn.140074dc0
nop
lea rcx, [rbp + 0x48]
call fcn.140074dc0
nop
lea rcx, [rbp + 8]
call fcn.140074dc0
mov rax, qword [rbp + 0x1928]
jmp 0x14008ec1c
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.140077f61
mov rax, rdi
mov rcx, qword [rbp + 0x18f8]
xor rcx, rbp
call fcn.140076477
lea rsp, [rbp + 0x1908]
pop rdi
pop rbp
ret