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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
mov qword [rcx], r14
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], r14
mov byte [rcx], r14b
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x78], 0x18
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x80], r14
mov qword [rbp + 0xe8], r14
mov qword [rsp + 0x58], r14
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
je 0x7ff7ec566dc0
xor r8d, r8d
lea edx, [r14 + 1]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.kernel32.dll_SetHandleInformation]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
mov dword [rbp - 0x50], 0x68
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rax
psrldq xmm1, 0xc
movd eax, xmm1
or eax, 0x101
mov dword [rbp - 0x14], eax
mov word [rbp - 0x10], r14w
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x7ff7ec566d9f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0xe0]
mov r8d, 0x80
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x7ff7ec566d6b
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbp + 0xe0]
test eax, eax
je 0x7ff7ec566d6b
mov byte [rbp + rax + 0x20], 0
lea rax, [rbp + 0x20]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x7ff7ec566ce0
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x7ff7ec566d29
lea rax, [rcx + rbx]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0x10
jb 0x7ff7ec566d10
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbx
lea rdx, [rbp + 0x20]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy_1
mov byte [rdi + rbx], 0
jmp 0x7ff7ec566d40
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.7ff7ec5636c0
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0xe0]
mov r8d, 0x80
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x7ff7ec566cc0
mov rcx, qword [rbp + 0xe8]
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]
mov rax, rsi
add rsp, 0x1a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [0x7ff7ec66a490]
lea rcx, [rbp - 0x70]
call fcn.7ff7ec564110
lea rdx, [0x7ff7ec6ef748]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x7ff7ec66a478]
lea rcx, [rbp - 0x70]
call fcn.7ff7ec564110
lea rdx, [0x7ff7ec6ef748]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3