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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x80], rcx
xor esi, esi
cmp qword [rdx + 0x18], 7
jbe 0x14002581e
mov rdx, qword [rdx]
lea rcx, str.____Run_sync_command:__s_n
call fcn.14001da70
mov dword [rbp - 0x60], 0x18
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x50], 1
mov qword [rbp - 0x58], rsi
xor r9d, r9d
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140025908
mov dword [rbp - 0x40], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
mov dword [rbp - 4], 0x101
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov word [rbp], si
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400258b1
mov rdx, qword [rbx]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400259c4
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140024930
cmp qword [rax + 0x18], 7
jbe 0x14002591c
mov rax, qword [rax]
cmp qword [rbx + 0x18], 7
jbe 0x140025926
mov rbx, qword [rbx]
mov r8, rax
mov rdx, rbx
lea rcx, str.____Failed_to_run_sync_command:__s._Error:__s_n
call fcn.14001da70
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14002597a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025975
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025bce
call fcn.140036bb4
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x140093290]
mov byte [rsp + 0x50], sil
mov byte [rdi], sil
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi + 0x18], xmm1
mov rax, rdi
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.140036840
mov rbx, qword [rsp + 0x5a0]
add rsp, 0x570
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rbp - 0x78]
mov rcx, qword [0x1400a67c8]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140025a3e
lea rcx, [rsp + 0x50]
call fcn.140024930
cmp qword [rax + 0x18], 7
jbe 0x1400259ed
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.____AssignProcessToJobObject_failed._Error:__s_n
call fcn.14001da70
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140025a3e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025a39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025bd4
call fcn.140036bb4
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
movdqa xmm1, xmmword [0x140093290]
movdqu xmmword [rbp + 0x48], xmm1
mov byte [rbp + 0x38], sil
nop word [rax + rax]
mov edx, 1
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov dword [rbp + 0x34], esi
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140025b46
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140025b46
cmp eax, 0x3ff
mov r8d, 0x3ff
ja 0x140025abb
mov r8d, eax
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x34]
lea rdx, [rbp + 0x60]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025b46
mov eax, dword [rbp + 0x34]
test eax, eax
je 0x140025b46
cmp rax, 0x400
jae 0x140025bc8
mov byte [rbp + rax + 0x60], 0
lea rax, [rbp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140025b00
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x38]
call fcn.1400086d0
mov dword [rbp + 0x34], esi
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x28], rsi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x140025aa0
test ebx, ebx
jne 0x140025a60
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rdi], 1
lea rcx, [rdi + 8]
lea rdx, [rbp + 0x38]
call fcn.140007900
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x14002599f
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025bbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025bda
call fcn.140036bb4
jmp 0x14002599f
call fcn.140036cf0
nop
call fcn.140046420
int3
call fcn.140046420
int3
call fcn.140046420
int3