Function at 0x14009e8b0
Capabilities:
Create pipe

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x5f]
sub rsp, 0xb8
mov rax, qword [0x140214ec8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [r11 + 0x20], rsi
mov rbx, rcx
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov r12d, edx
mov qword [r11 - 0x28], r13
mov r13d, r8d
mov qword [r11 - 0x30], r14
xor r14d, r14d
cmp qword [rcx + 0x208], 0xffffffffffffffff
mov edi, r14d
mov qword [rbp - 0x21], r14
mov esi, r14d
mov qword [rbp - 0x19], r14
mov qword [rbp - 9], r14
je 0x14009e90f
call fcn.14009e770
cmp dword [rbx + 0x218], 1
mov qword [rsp + 0x90], r15
jne 0x14009e93a
cmp qword [rbx + 0x220], rsi
je 0x14009ebfa
cmp qword [rbx + 0x248], rsi
je 0x14009ebfa
cmp dword [rbx + 0x214], esi
jne 0x14009eb70
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, [rbp - 0x21]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_OpenProcessToken]
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x14009ebfa
mov r14d, dword [rbp - 0x29]
mov ecx, r14d
call fcn.1400bb268
mov rdi, rax
test rax, rax
je 0x14009e9ab
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1400ad590
test rdi, rdi
je 0x14009ebfa
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x29]
mov rcx, qword [rbp - 0x21]
mov r8, rdi
mov edx, 6
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
test eax, eax
je 0x14009ebfa
mov ecx, 0x28
call fcn.14009e730
mov edx, 1
mov qword [rbp - 9], rax
mov rcx, rax
mov dword [rbp - 0x11], 0x18
mov dword [rbp - 1], 1
call qword [sym.imp.ADVAPI32.DLL_InitializeSecurityDescriptor]
test eax, eax
je 0x14009ebfa
mov rcx, qword [rdi]
lea rdx, [rbp + 0xf]
mov r9d, 2
lea r8d, [r9 + 0xa]
call qword [sym.imp.ADVAPI32.DLL_GetAclInformation]
test eax, eax
je 0x14009ebfa
mov rcx, qword [rdi]
lea rdx, [rbp + 7]
mov r9d, 1
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.DLL_GetAclInformation]
test eax, eax
je 0x14009ebfa
cmp dword [rbx + 0x21c], 1
lea rax, str.S_1_2_0
lea rcx, str.S_1_5_32_544
cmovne rcx, rax
lea rdx, [rbp - 0x19]
call sub.ADVAPI32.DLL_ConvertStringSidToSidW
test eax, eax
je 0x14009ebfa
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.DLL_GetLengthSid]
mov r14d, dword [rbp + 0x13]
add eax, 8
add r14d, eax
mov ecx, r14d
mov r15d, r14d
call fcn.14009e730
mov rsi, rax
test rax, rax
je 0x14009ebfa
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.1400ad590
mov r8d, dword [rbp + 7]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_InitializeAcl]
test eax, eax
je 0x14009ebfa
mov r9, qword [rbp - 0x19]
mov r8d, 0x10000000
mov edx, dword [rbp + 7]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_AddAccessAllowedAce]
test eax, eax
je 0x14009ebfa
mov eax, dword [rbp + 0x13]
mov r8d, 0xffffffff
mov r9, qword [rdi]
add eax, 0xfffffff8
mov edx, dword [rbp + 7]
add r9, 8
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.DLL_AddAce]
test eax, eax
je 0x14009ebfa
mov rcx, qword [rbp - 9]
xor r9d, r9d
mov r8, rsi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.DLL_SetSecurityDescriptorDacl]
cmp dword [rbx + 0x218], 0
mov edx, 0x40080003
mov eax, 0x80003
mov r9d, 1
cmove edx, eax
mov rcx, rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
lea r8d, [r9 + 0xd]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov qword [rbx + 0x208], rax
jmp 0x14009ebfa
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
test eax, eax
je 0x14009ebfa
mov eax, dword [rbx + 0x218]
mov edx, 0xc0000000
neg eax
mov qword [rsp + 0x30], r14
sbb ecx, ecx
xor r9d, r9d
and ecx, 0x40000000
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [rbx + 0x208], rax
cmp rax, 0xffffffffffffffff
je 0x14009ebfa
xor r9d, r9d
mov dword [rbp + 0xb], 2
xor r8d, r8d
lea rdx, [rbp + 0xb]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetNamedPipeHandleState]
test eax, eax
jne 0x14009ebfa
mov rcx, qword [rbx + 0x208]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x208], 0xffffffffffffffff
mov rcx, qword [rbp - 0x21]
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
test rcx, rcx
je 0x14009ec29
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14009ec37
call fcn.1400bb254
test rsi, rsi
je 0x14009ec44
mov rcx, rsi
call fcn.1400bb254
mov rsi, qword [rsp + 0xe8]
test rdi, rdi
je 0x14009ec59
mov rcx, rdi
call fcn.1400bb254
mov rcx, qword [rbp - 0x19]
mov rdi, qword [rsp + 0xb0]
test rcx, rcx
je 0x14009ec70
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rax, qword [rbx + 0x208]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400abc80
add rsp, 0xb8
pop rbx
pop rbp
ret