Function at 0x180263a00
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x17], rax
cmp qword [rdx + 0x10], 0
mov r12d, r9d
mov rdi, r8
mov r14, rdx
mov rsi, rcx
je 0x180263c97
cmp qword [r8 + 0x10], 0
je 0x180263c97
xor r15b, r15b
call fcn.180263cc0
xor r13d, r13d
mov rdx, rdi
cmp qword [rdi + 0x18], 8
mov dword [rbp - 0x25], r13d
mov dword [rbp - 0x21], r13d
jb 0x180263a6c
mov rdx, qword [rdi]
mov r8, qword [rsi + 0x10]
lea rax, [rbp - 5]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x21]
lea rax, [rbp - 0x25]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x180263c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180263c97
mov ebx, dword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x180263c97
mov ebx, dword [rbp - 0x25]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi + 0x20], rax
test rax, rax
je 0x180263c97
cmp qword [rdi + 0x18], 8
jb 0x180263b09
mov rdi, qword [rdi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 5]
mov qword [rsp + 0x30], rcx
lea r9, [rbp - 0x21]
lea rcx, [rbp - 0x25]
mov rdx, rdi
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x180263c97
cmp qword [r14 + 0x18], 8
mov rcx, r14
mov dword [rbp - 0x29], r13d
jb 0x180263b4c
mov rcx, qword [r14]
mov r8, qword [rsi + 0x28]
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
jne 0x180263c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180263c97
mov ebx, dword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi + 0x28], rax
test rax, rax
je 0x180263c97
cmp qword [r14 + 0x18], 8
jb 0x180263bae
mov r14, qword [r14]
mov r9d, dword [rbp - 0x29]
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, r14
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
test eax, eax
je 0x180263c97
mov rcx, qword [rsi + 0x28]
lea r9, [rbp - 1]
lea r8, [rbp - 0x19]
mov qword [rbp - 0x19], r13
lea rdx, [rbp - 9]
mov dword [rbp - 9], r13d
mov dword [rbp - 1], r13d
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x180263c97
mov rcx, qword [rbp - 0x19]
mov dword [rbp + 7], r13d
mov qword [rbp + 0xb], 8
test rcx, rcx
je 0x180263c91
cmp dword [rbp - 9], r13d
je 0x180263c91
mov r9d, 2
lea rdx, [rbp + 7]
lea r8d, [r9 + 0xa]
call qword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x180263c97
cmp dword [rbp - 9], r13d
je 0x180263c91
mov eax, dword [rbp + 7]
test eax, eax
je 0x180263c91
mov ebx, r13d
mov rcx, qword [rbp - 0x19]
lea r8, [rbp - 0x11]
mov edx, ebx
mov qword [rbp - 0x11], r13
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x180263c97
mov rdx, qword [rbp - 0x11]
mov rcx, qword [rsi + 0x10]
add rdx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x180263c7c
inc ebx
cmp ebx, dword [rbp + 7]
jb 0x180263c41
movzx eax, r15b
jmp 0x180263c99
mov rcx, qword [rbp - 0x11]
mov eax, 1
movzx r15d, r15b
cmp dword [rcx + 4], r12d
cmove r15d, eax
movzx eax, r15b
jmp 0x180263c99
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1802994c0
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret