Function at 0x140050b30
Capabilities:
Create pipe
Create two anonymous pipes
Spoof parent pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [0x1400ab100]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r13, r9
mov qword [rsp + 0x50], r8
mov r15d, edx
mov rdi, rcx
mov qword [rbp + 0x30], rcx
mov r14, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
mov esi, dword [rbp + 0xc0]
cmp dword [0x1400ad030], 0
je 0x140050c23
lea rdx, [0x1400ad030]
lea rcx, [0x1400ad038]
call fcn.140009f30
mov rdx, qword [rax]
cmp qword [rdx + 8], 0
je 0x140050c23
test esi, esi
jne 0x140050df9
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.1400035b0
mov rsi, rax
cmp dword [0x1400ad030], 0
jne 0x140050bd4
xor ebx, ebx
jmp 0x140050bee
lea rdx, [0x1400ad030]
lea rcx, [0x1400ad038]
call fcn.140009f30
mov rcx, qword [rax]
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x50]
mov r8d, r15d
mov rdx, rsi
mov rcx, rbx
call fcn.1400516b0
movzx ebx, al
mov rcx, rdi
call fcn.140001ff0
movzx eax, bl
jmp 0x140050f06
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
test r14, r14
je 0x140050cef
mov dword [rbp - 0x60], 0x18
mov dword [rbp - 0x50], 1
mov qword [rbp - 0x58], rbx
xor r9d, r9d
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140050df9
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 0x140050df9
xor r8d, r8d
lea edx, [rbx + 1]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140050df9
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rax
mov rax, qword [rsp + 0x78]
mov qword [rbp + 0x10], rax
or dword [rbp - 4], 0x100
test esi, esi
je 0x140050e08
mov r8d, esi
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140050df9
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x140050ded
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140050ded
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x28], rax
test rax, rax
je 0x140050ded
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x140050db1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, rdi
call fcn.140001ff0
xor al, al
jmp 0x140050f06
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x58]
xor edx, edx
mov r8d, 0x20000
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140050d81
mov dword [rbp - 0x40], 0x70
bts r15d, 0x13
jmp 0x140050e0f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140001ff0
xor al, al
jmp 0x140050f06
mov dword [rbp - 0x40], 0x68
mov rcx, qword [rdi + 0x10]
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140069230
mov rsi, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140050e41
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea r8, [r8*2 + 2]
mov rcx, rsi
call fcn.14008dec0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call fcn.14004cad0
mov rcx, rsi
test eax, eax
jne 0x140050ea7
call fcn.14006905c
nop
mov rcx, rdi
call fcn.140001ff0
xor al, al
jmp 0x140050f06
call fcn.14006905c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140050ebf
mov rax, qword [rbp - 0x78]
mov qword [rcx], rax
jmp 0x140050ec9
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x140050ed8
mov rax, qword [rbp - 0x70]
mov qword [r13], rax
jmp 0x140050ee2
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x140050eef
mov rax, qword [rsp + 0x68]
mov qword [r14], rax
test r12, r12
je 0x140050efc
mov rax, qword [rbp - 0x80]
mov qword [r12], rax
mov rcx, rdi
call fcn.140001ff0
mov al, 1
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140069100
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret