Function at 0x140007860
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x10b0]
mov eax, 0x11b0
call fcn.140029490
sub rsp, rax
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rbp + 0x10a0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov dword [rsp + 0x78], 0x18
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x80], rsi
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400078ef
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x1400393f3]
mov rcx, rbx
call fcn.140001b70
jmp 0x140007d1f
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400078ca
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400078ca
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400078ca
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 7
jb 0x140007d4a
cmp qword [rdi + 0x18], 8
jb 0x14000795c
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 7
lea r9, str.cmd__c
lea rcx, [rbp + 0x80]
call fcn.140001d10
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
movups xmmword [rbp - 0x1c], xmm1
movups xmmword [rbp - 0xc], xmm1
mov dword [rbp + 4], eax
mov dword [rbp - 0x50], 0x68
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x68]
mov qword [rbp + 8], rax
psrldq xmm1, 8
movd eax, xmm1
bts eax, 8
mov dword [rbp - 0x14], eax
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rdx, qword [rbp + 0x80]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
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_CreateProcessW]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
xor r8d, r8d
lea rdx, [0x1400393f3]
lea rcx, [rbp + 0x40]
call fcn.140001b70
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
xor r8d, r8d
lea rdx, [0x1400393f3]
lea rcx, [rbp + 0x60]
call fcn.140001b70
nop
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007b70
nop
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140007b70
mov r8d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rsi
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x20]
call fcn.140001b70
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.140005290
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140007b46
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007b41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d50
call fcn.140009654
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140007ac0
mov dword [rsp + 0x54], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x54]
mov r8d, 0x1000
lea rdx, [rbp + 0xa0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007c25
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140007c25
mov r8d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rsi
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x20]
call fcn.140001b70
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140005290
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140007b74
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007c1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d50
call fcn.140009654
jmp 0x140007b74
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x50]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x140039740]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
mov rdx, qword [rbp + 0x78]
cmp rdx, 0x10
jb 0x140007c80
inc rdx
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007c7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d56
call fcn.140009654
movdqa xmm0, xmmword [0x140039740]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140007ccc
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007cc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d5c
call fcn.140009654
movdqa xmm0, xmmword [0x140039740]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140007d1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007d1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d44
call fcn.140009654
mov rax, rbx
mov rcx, qword [rbp + 0x10a0]
xor rcx, rsp
call fcn.1400093a0
mov rbx, qword [rsp + 0x11e0]
add rsp, 0x11b0
pop rdi
pop rsi
pop rbp
ret
call fcn.140010c78
int3
call fcn.140001230
nop
call fcn.140010c78
nop
call fcn.140010c78
nop
call fcn.140010c78
int3