Function at 0x180079a40
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x938]
sub rsp, 0xa10
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180116250]
xor rax, rsp
mov qword [rbp + 0x900], rax
mov r12, rcx
mov qword [rsp + 0x68], rcx
xor edi, edi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x48]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180079b34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.180070d74
mov r13d, 1
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 8]
call fcn.1800258dc
nop
lea rbx, [rax + 0x10]
lea rdx, str.OpenProcessToken_failed_with
mov rcx, rbx
call fcn.1800267a0
mov edx, edi
mov rcx, rbx
call fcn.1800172cc
nop
lea rcx, [rbp + 0xb0]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xb0], rax
lea rcx, [rbp + 0xb0]
call fcn.180080104
nop
lea r8, str.OpenProcessToken_failed
mov edx, r13d
mov rcx, qword [r12 - 0x70]
call fcn.180074014
xor al, al
jmp 0x18007a2ba
mov rbx, qword [rsp + 0x48]
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea r13d, [r9 + 1]
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x18007a28d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18007a28d
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x44]
lea rcx, [rbp - 0x78]
call fcn.18005188c
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r15, qword [rbp - 0x78]
mov r8, r15
mov edx, r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x180079c28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.180070d74
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 0x110]
call fcn.1800258dc
nop
lea rdi, [rax + 0x10]
lea rdx, str.GetTokenInformation_failed_with
mov rcx, rdi
call fcn.1800267a0
mov edx, esi
mov rcx, rdi
call fcn.1800172cc
nop
lea rcx, [rbp + 0x1b8]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x1b8], rax
lea rcx, [rbp + 0x1b8]
call fcn.180080104
nop
lea r8, str.GetTokenInformation_failed
jmp 0x180079cb6
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
lea rcx, str.S_1_5_18
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x180079ccd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.180070d74
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 0x218]
call fcn.1800258dc
nop
lea rdi, [rax + 0x10]
lea rdx, str.ConvertStringSidToSidW_failed_with
mov rcx, rdi
call fcn.1800267a0
mov edx, esi
mov rcx, rdi
call fcn.1800172cc
nop
lea rcx, [rbp + 0x2c0]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x2c0], rax
lea rcx, [rbp + 0x2c0]
call fcn.180080104
nop
lea r8, str.ConvertStringSidToSidW_failed
mov edx, r13d
mov rcx, qword [r12 - 0x70]
call fcn.180074014
xor edi, edi
mov r13b, dil
jmp 0x18007a24e
mov rsi, qword [rsp + 0x50]
mov qword [rbp - 0x18], rsi
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x58]
lea rcx, str.S_1_5_2
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x180079d7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call fcn.180070d74
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 0x320]
call fcn.1800258dc
nop
lea rdi, [rax + 0x10]
lea rdx, str.ConvertStringSidToSidW_failed_with
mov rcx, rdi
call fcn.1800267a0
mov edx, r14d
mov rcx, rdi
call fcn.1800172cc
nop
lea rcx, [rbp + 0x3c8]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x3c8], rax
lea rcx, [rbp + 0x3c8]
call fcn.180080104
nop
lea r8, str.ConvertStringSidToSidW_failed
mov edx, r13d
mov rcx, qword [r12 - 0x70]
call fcn.180074014
xor edi, edi
mov r13b, dil
jmp 0x18007a244
mov r14, qword [rsp + 0x58]
mov qword [rbp - 0x10], r14
xor edx, edx
mov r8d, 0x90
lea rcx, [rbp + 0x870]
call fcn.1800a10b0
mov edx, 0xc0000000
mov dword [rbp + 0x870], edx
mov qword [rbp + 0x874], 2
mov dword [rbp + 0x88c], edi
mov dword [rbp + 0x890], r13d
mov rax, qword [r15]
mov qword [rbp + 0x898], rax
mov qword [rbp + 0x880], rdi
mov dword [rbp + 0x888], edi
mov dword [rbp + 0x8a0], edx
mov qword [rbp + 0x8a4], 2
mov dword [rbp + 0x8bc], edi
mov dword [rbp + 0x8c0], r13d
mov rax, qword [rsp + 0x50]
mov qword [rbp + 0x8c8], rax
mov qword [rbp + 0x8b0], rdi
mov dword [rbp + 0x8b8], edi
mov dword [rbp + 0x8d0], edx
mov ecx, 3
mov qword [rbp + 0x8d4], rcx
mov dword [rbp + 0x8ec], edi
mov dword [rbp + 0x8f0], r13d
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x8f8], rax
mov qword [rbp + 0x8e0], rdi
mov dword [rbp + 0x8e8], edi
mov qword [rsp + 0x60], rdi
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [rbp + 0x870]
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x180079e7d
lea r8, str.SetEntriesInAcl_failed
mov edx, r13d
mov rcx, qword [r12 - 0x70]
call fcn.180074014
mov r13b, dil
jmp 0x18007a23a
mov rdi, qword [rsp + 0x60]
mov qword [rbp - 8], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
mov edx, r13d
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x180079f1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call fcn.180070d74
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 0x428]
call fcn.1800258dc
nop
lea r15, [rax + 0x10]
lea rdx, str.InitializeSecurityDescriptor_failed_with
mov rcx, r15
call fcn.1800267a0
mov edx, r12d
mov rcx, r15
call fcn.1800172cc
nop
lea rcx, [rbp + 0x4d0]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x4d0], rax
lea rcx, [rbp + 0x4d0]
call fcn.180080104
nop
lea r8, str.InitializeSecurityDescriptor_failed
jmp 0x18007a039
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov edx, r13d
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x180079faf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call fcn.180070d74
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 0x530]
call fcn.1800258dc
nop
lea r15, [rax + 0x10]
lea rdx, str.SetSecurityDescriptorDacl_failed_with
mov rcx, r15
call fcn.1800267a0
mov edx, r12d
mov rcx, r15
call fcn.1800172cc
nop
lea rcx, [rbp + 0x5d8]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x5d8], rax
lea rcx, [rbp + 0x5d8]
call fcn.180080104
nop
lea r8, str.SetSecurityDescriptorDacl_failed
jmp 0x18007a039
xor r8d, r8d
mov rdx, qword [r15]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0x18007a052
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call fcn.180070d74
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 0x638]
call fcn.1800258dc
nop
lea r15, [rax + 0x10]
lea rdx, str.SetSecurityDescriptorOwner_failed_with
mov rcx, r15
call fcn.1800267a0
mov edx, r12d
mov rcx, r15
call fcn.1800172cc
nop
lea rcx, [rbp + 0x6e0]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x6e0], rax
lea rcx, [rbp + 0x6e0]
call fcn.180080104
nop
lea r8, str.SetSecurityDescriptorOwner_failed
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx - 0x70]
mov edx, r13d
call fcn.180074014
xor r13b, r13b
jmp 0x18007a22d
mov dword [rbp - 0x38], 0x18
lea rax, [rbp - 0x60]
mov qword [rbp - 0x30], rax
and dword [rbp - 0x28], 0
lea r8, [r12 + 0x30]
lea rdx, str..pipe_
lea rcx, [rbp + 0x848]
call fcn.180005e44
nop
lea rcx, [rbp + 0x848]
cmp qword [rbp + 0x860], 0x10
cmovae rcx, qword [rbp + 0x848]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, r13d
mov edx, 0x40080003
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rsp + 0x70], rax
mov ecx, 8
call fcn.180082368
mov r15, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18007a0ed
mov rax, qword [rsp + 0x70]
mov qword [r15], rax
jmp 0x18007a0f5
xor r15d, r15d
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x70], r15
mov rdx, qword [rbp + 0x860]
cmp rdx, 0x10
jb 0x18007a13b
inc rdx
mov rcx, qword [rbp + 0x848]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007a136
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007a2f0
call fcn.180082014
movdqa xmm0, xmmword [0x1800f4000]
movdqu xmmword [rbp + 0x858], xmm0
mov byte [rbp + 0x848], 0
mov rax, qword [r15]
add rax, r13
test rax, 0xfffffffffffffffe
jne 0x18007a1f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call fcn.180070d74
mov r9d, r13d
mov r8, qword [rax]
mov edx, r13d
lea rcx, [rbp + 0x740]
call fcn.1800258dc
nop
lea r15, [rax + 0x10]
lea rdx, str.CreateNamedPipe_failed_with
mov rcx, r15
call fcn.1800267a0
mov edx, r12d
mov rcx, r15
call fcn.1800172cc
nop
lea rcx, [rbp + 0x7e8]
call fcn.180025878
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x7e8], rax
lea rcx, [rbp + 0x7e8]
call fcn.180080104
nop
lea r8, str.CreateNamedPipe_failed
mov edx, r13d
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx - 0x70]
call fcn.180074014
xor r13b, r13b
mov r15, qword [rsp + 0x78]
jmp 0x18007a203
mov qword [r12 + 0x10], r15
mov rax, qword [r12 - 0x70]
mov qword [r12 + 0x28], rax
xor r15d, r15d
test r15, r15
je 0x18007a22d
mov rcx, qword [r15]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18007a21b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [r15], 0
mov edx, 8
mov rcx, r15
call fcn.180082014
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15, qword [rbp - 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
test r15, r15
je 0x18007a2a4
mov rdx, qword [rbp - 0x68]
sub rdx, r15
cmp rdx, 0x1000
jb 0x18007a283
lfence
add rdx, 0x27
mov rax, qword [rbp - 0x78]
mov r15, qword [rax - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007a2ea
mov rbx, qword [rbp - 0x80]
mov rcx, r15
call fcn.180082014
jmp 0x18007a2a4
lea r8, str.GetTokenInformation_misbehaves...
mov edx, r13d
mov rcx, qword [r12 - 0x70]
call fcn.180074014
mov r13b, dil
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18007a2b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, r13b
mov rcx, qword [rbp + 0x900]
xor rcx, rsp
call fcn.180081ff0
lea r11, [rsp + 0xa10]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800a3f4c
nop
call fcn.1800a3f4c
int3