Function at 0x14006c448
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 [0x1400de7a8]
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.14001bf20
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 0x14006c4c3
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 0x14006c63f
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14006c63f
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 0x14006c66e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14006c631
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 0x14006c532
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140028480
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 0x14006c625
cmp qword [rbx], 0
je 0x14006c66e
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 0x14006c5bc
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 0x14006c64c
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 0x14006c599
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 0x14006c625
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 0x14006c650
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14006c63d
movzx eax, ax
or eax, 0x80070000
mov ebx, eax
lea rcx, [rbp]
call fcn.140024710
mov eax, ebx
jmp 0x14006c67c
xor ebx, ebx
jmp 0x14006c63f
mov rcx, qword [rbp]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006c66a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006c67c
lea rcx, [rbp]
call fcn.140024710
mov eax, 0x80004005
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140024c10
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x20]
pop rbp
ret