Function at 0x140068210
Capabilities:
Create pipe

Disassembly:
jmp 0x140068210
mov r11, rsp
push rbp
push rbx
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400fae80]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov rbx, rcx
mov rcx, qword [rcx + 0x208]
mov qword [r11 - 0x30], r14
xor r14d, r14d
mov r13d, r8d
mov r12d, edx
mov qword [rbp - 0x19], r14
mov edi, r14d
mov qword [rbp - 0x21], r14
mov esi, r14d
mov qword [rbp - 1], r14
cmp rcx, 0xffffffffffffffff
je 0x1400682a4
cmp dword [rbx + 0x214], esi
jne 0x140068285
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbx + 0x208]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbx + 0x208]
mov dword [rbx + 0x210], r14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x208], 0xffffffffffffffff
cmp dword [rbx + 0x218], 1
mov qword [rsp + 0x90], r15
jne 0x1400682cf
cmp qword [rbx + 0x220], rsi
je 0x140068593
cmp qword [rbx + 0x248], rsi
je 0x140068593
cmp dword [rbx + 0x214], esi
jne 0x140068508
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x19]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rbp - 0x19]
xor r9d, r9d
lea rax, [rbp - 0x29]
lea edx, [r9 + 6]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140068593
mov r14d, dword [rbp - 0x29]
mov ecx, r14d
call fcn.14006c500
mov rdi, rax
test rax, rax
je 0x140068344
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.14006c5d0
mov r14d, dword [rbp - 0x29]
test rdi, rdi
je 0x140068593
mov rcx, qword [rbp - 0x19]
lea rax, [rbp - 0x29]
mov r9d, r14d
mov r8, rdi
mov edx, 6
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140068593
mov ecx, 0x28
call fcn.140068020
mov edx, 1
mov dword [rbp - 9], 0x18
mov rcx, rax
mov qword [rbp - 1], rax
mov dword [rbp + 7], 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140068593
mov rcx, qword [rdi]
mov r9d, 2
lea rdx, [rbp + 0xf]
lea r8d, [r9 + 0xa]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x140068593
mov rcx, qword [rdi]
mov r9d, 1
lea rdx, [rbp - 0x25]
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x140068593
cmp dword [rbx + 0x21c], 1
lea rdx, [rbp - 0x21]
lea rcx, [0x1400d85d0]
je 0x1400683fe
lea rcx, [0x1400d85f0]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x140068593
mov rcx, qword [rbp - 0x21]
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.140068020
mov rsi, rax
test rax, rax
je 0x140068593
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.14006c5d0
mov r8d, dword [rbp - 0x25]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x140068593
mov r9, qword [rbp - 0x21]
mov edx, dword [rbp - 0x25]
mov r8d, 0x10000000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x140068593
mov eax, dword [rbp + 0x13]
mov r9, qword [rdi]
mov edx, dword [rbp - 0x25]
add eax, 0xfffffff8
add r9, 8
or r8d, 0xffffffff
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
je 0x140068593
mov rcx, qword [rbp - 1]
xor r9d, r9d
mov r8, rsi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [rbx + 0x218], 0
mov edx, 0x40000003
mov eax, 3
mov r9d, 1
mov rcx, rbx
cmove edx, eax
lea rax, [rbp - 9]
lea r8d, [r9 + 0xd]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
bts edx, 0x13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x208], rax
jmp 0x140068593
mov edx, 0x3e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140068593
mov eax, dword [rbx + 0x218]
mov qword [rsp + 0x30], r14
mov edx, 0xc0000000
neg eax
mov eax, 3
sbb ecx, ecx
xor r9d, r9d
xor r8d, r8d
and ecx, 0x40000000
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x208], rax
cmp rax, 0xffffffffffffffff
je 0x140068593
lea rdx, [rbp - 0x11]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov dword [rbp - 0x11], 2
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x140068593
mov rcx, qword [rbx + 0x208]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x208], 0xffffffffffffffff
mov rcx, qword [rbp - 0x19]
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400685c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1400685d0
call fcn.14006c470
test rsi, rsi
je 0x1400685dd
mov rcx, rsi
call fcn.14006c470
mov rsi, qword [rsp + 0xe8]
test rdi, rdi
je 0x1400685f2
mov rcx, rdi
call fcn.14006c470
mov rax, qword [rbx + 0x208]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14006cfe0
add rsp, 0xb0
pop rdi
pop rbx
pop rbp
ret