Function at 0x14006b2e8
Capabilities:
Compare security identifiers

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x1400dc7b8]
xor rax, rbp
mov qword [rbp + 0x18], rax
and qword [rbp], 0
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp]
call fcn.14001bec0
lea r8, [rbp]
mov edx, 0x88
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
jne 0x14006b363
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14006b4df
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14006b4df
mov rcx, qword [rbp]
lea rax, [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14006b50e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14006b4d1
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
nop dword [rax + rax]
mov edx, dword [rbp + 8]
add edx, 0xc
add edx, eax
mov ecx, edx
mov dword [rbp + 8], edx
lea rax, [rdx + 0xf]
cmp rax, rcx
ja 0x14006b3d2
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140027390
sub rsp, rax
mov r9d, ecx
mov rcx, qword [rbp]
lea rax, [rbp + 8]
mov edx, 6
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14006b4c5
cmp qword [rbx], 0
je 0x14006b50e
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
nop dword [rax + rax]
mov rcx, qword [rbx]
xor esi, esi
add ax, 8
add word [rcx + 2], ax
xor edx, edx
jmp 0x14006b45c
mov rdx, qword [rbp + 0x10]
mov rcx, rdi
add rdx, 8
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14006b4ec
inc esi
mov edx, esi
mov rcx, qword [rbx]
lea r8, [rbp + 0x10]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
jne 0x14006b439
mov rcx, qword [rbx]
lea edx, [rax + 2]
mov r9, rdi
mov r8d, 0x10000000
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
nop dword [rax + rax]
test eax, eax
je 0x14006b4c5
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_IsValidAcl]
nop dword [rax + rax]
mov rax, qword [rbx]
mov r8, rbx
mov rcx, qword [rbp]
mov edx, 6
movzx r9d, word [rax + 2]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14006b4f0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006b4dd
movzx eax, ax
or eax, 0x80070000
mov ebx, eax
lea rcx, [rbp]
call fcn.140024490
mov eax, ebx
jmp 0x14006b51c
xor ebx, ebx
jmp 0x14006b4df
mov rcx, qword [rbp]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006b50a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006b51c
lea rcx, [rbp]
call fcn.140024490
mov eax, 0x80004005
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140024990
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x20]
pop rbp
ret