Function at 0x14003e830
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 [0x140092100]
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 [0x140094030], 0
je 0x14003e923
lea rdx, [0x140094030]
lea rcx, [0x140094038]
call fcn.14000b900
mov rdx, qword [rax]
cmp qword [rdx + 8], 0
je 0x14003e923
test esi, esi
jne 0x14003eaf9
lea rax, [rbp - 0x60]
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.1400035b0
mov rsi, rax
cmp dword [0x140094030], 0
jne 0x14003e8d4
xor ebx, ebx
jmp 0x14003e8ee
lea rdx, [0x140094030]
lea rcx, [0x140094038]
call fcn.14000b900
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.14003f3b0
movzx ebx, al
mov rcx, rdi
call fcn.140001ff0
movzx eax, bl
jmp 0x14003ec06
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 0x14003e9ef
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 0x14003eaf9
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 0x14003eaf9
xor r8d, r8d
lea edx, [rbx + 1]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14003eaf9
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 0x14003eb08
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 0x14003eaf9
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 0x14003eaed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003eaed
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 0x14003eaed
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 0x14003eab1
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 0x14003ec06
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 0x14003ea81
mov dword [rbp - 0x40], 0x70
bts r15d, 0x13
jmp 0x14003eb0f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140001ff0
xor al, al
jmp 0x14003ec06
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.14004ff80
mov rsi, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14003eb41
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea r8, [r8*2 + 2]
mov rcx, rsi
call fcn.140074c10
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.14003a7d0
mov rcx, rsi
test eax, eax
jne 0x14003eba7
call fcn.14004fdb0
nop
mov rcx, rdi
call fcn.140001ff0
xor al, al
jmp 0x14003ec06
call fcn.14004fdb0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003ebbf
mov rax, qword [rbp - 0x78]
mov qword [rcx], rax
jmp 0x14003ebc9
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x14003ebd8
mov rax, qword [rbp - 0x70]
mov qword [r13], rax
jmp 0x14003ebe2
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x14003ebef
mov rax, qword [rsp + 0x68]
mov qword [r14], rax
test r12, r12
je 0x14003ebfc
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.14004fe50
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret