Function at 0x14011c728
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r14, r8
mov r15, rdx
mov edi, r13d
mov rsi, rcx
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
lea ebx, [r13 + 1]
cmp rcx, r12
je 0x14011c787
test byte [rcx + 0x1c], bl
je 0x14011c787
cmp byte [rcx + 0x19], 5
jb 0x14011c787
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x10]
lea r8, [0x140012500]
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
or rbp, 0xffffffffffffffff
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x88], r13
cmp rcx, r12
je 0x14011c7c8
test byte [rcx + 0x1c], bl
je 0x14011c7c8
cmp byte [rcx + 0x19], 5
jb 0x14011c7c8
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x13]
lea r8, [0x140012500]
mov r9, rsi
call fcn.14001ec40
mov rcx, qword [0x14017d3a8]
test r15, r15
jne 0x14011c80c
test r14, r14
jne 0x14011c80c
mov edi, 0x80070057
cmp rcx, r12
je 0x14011cac9
test byte [rcx + 0x1c], bl
je 0x14011cac9
cmp byte [rcx + 0x19], 2
jb 0x14011cac9
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x13]
lea r8, [0x140012500]
call fcn.14001dd24
jmp 0x14011ca43
mov eax, 3
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov edx, 0x60000
mov rcx, rsi
mov r8d, eax
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14011c87e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011cac9
test byte [rcx + 0x1c], bl
je 0x14011cac9
cmp byte [rcx + 0x19], 2
jb 0x14011cac9
lea edx, [rbp + 0x15]
jmp 0x14011ca2c
test r14, r14
je 0x14011c8fb
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov r8d, 0x80000004
mov edx, ebx
mov rcx, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x14011c8fb
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011cac9
test byte [rcx + 0x1c], bl
je 0x14011cac9
cmp byte [rcx + 0x19], 2
jb 0x14011cac9
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9, rsi
mov r8d, 0x80000004
mov dword [rsp + 0x20], edi
call fcn.14011c3b4
jmp 0x14011ca43
test r15, r15
je 0x14011cb4a
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x98]
mov r8d, ebx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov edx, ebx
mov rcx, rbp
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x14011c97b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011cac9
test byte [rcx + 0x1c], bl
je 0x14011cac9
cmp byte [rcx + 0x19], 2
jb 0x14011cac9
mov edx, 0x16
jmp 0x14011ca2c
mov rcx, qword [rsp + 0x98]
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14011cb4a
mov r12d, ebx
mov eax, 0x80000005
test r14, r14
cmovne r12d, eax
mov eax, 0xe0000
mov ebx, 0xa0000
mov rcx, rbp
cmovne ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 3
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov edx, ebx
mov rcx, rsi
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14011ca4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
lea ebx, [rbp + 2]
cmp rcx, r12
je 0x14011cac9
test byte [rcx + 0x1c], bl
je 0x14011cac9
cmp byte [rcx + 0x19], 2
jb 0x14011cac9
lea edx, [rbp + 0x18]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140012500]
mov r9, rsi
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
jmp 0x14011cac9
mov qword [rsp + 0x30], r13
mov ebx, 1
mov r9, r15
mov r8d, r12d
mov rcx, rax
mov edx, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x14011cb43
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x14011cac2
test byte [rcx + 0x1c], bl
je 0x14011cac2
cmp byte [rcx + 0x19], 2
jb 0x14011cac2
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x17]
mov r9, rsi
mov r8d, r12d
mov dword [rsp + 0x20], edi
call fcn.14011c3b4
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14011caee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x14017d3a8]
mov qword [rsp + 0x88], r13
cmp rbp, 0xffffffffffffffff
je 0x14011cb04
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011cb29
test byte [rcx + 0x1c], bl
je 0x14011cb29
cmp byte [rcx + 0x19], 5
jb 0x14011cb29
mov rcx, qword [rcx + 0x10]
lea r8, [0x140012500]
mov edx, 0x1a
call fcn.14001dd24
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r12, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x14011cac9
test byte [rcx + 0x1c], bl
je 0x14011cac9
cmp byte [rcx + 0x19], 5
jb 0x14011cac9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140012500]
mov edx, 0x19
mov r9, rsi
call fcn.14001ec40
jmp 0x14011ca43