Function at 0x14000a670
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r15, rcx
xor r13d, r13d
mov r14d, r13d
mov qword [r11 - 0x60], r13
mov qword [r11 - 0x58], r13
mov qword [r11 - 0x70], r13
mov edi, r13d
mov dword [r11 - 0x40], r13d
mov word [r11 - 0x3c], 0x500
mov qword [r11 - 0x68], r13
mov dword [r11 - 0x78], r13d
mov esi, r13d
mov qword [r11 - 0x50], r13
lea r12d, [r13 + 1]
mov edx, r12d
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000a9bc
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x220
lea r8d, [r13 + 0x20]
mov dl, 2
lea rcx, [rsp + 0x98]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000a9bc
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8d, [r13 + 0x12]
mov dl, r12b
lea rcx, [rsp + 0x98]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000a9bc
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8d, [r13 + 0x13]
mov dl, r12b
lea rcx, [rsp + 0x98]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000a9bc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x70]
mov r8d, r12d
lea ebx, [r13 + 8]
mov edx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
jne 0x14000a811
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3f0
jne 0x14000a9bc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x14000a9bc
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000a9bc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x14000a9bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a9bc
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000a9bc
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, rsi
mov edx, r12d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x14000a9bc
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov r12d, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
add r12d, eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
add r12d, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
add eax, 0x34
add r12d, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8d, r12d
mov edx, 8
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14000a9bc
mov ebx, 2
mov r8d, ebx
mov edx, r12d
mov rcx, rax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeAcl]
test eax, eax
je 0x14000a9bc
mov r9, qword [rsp + 0x78]
mov r12d, 0xc01f0000
mov r8d, r12d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
test eax, eax
je 0x14000a9bc
mov r9, qword [rsp + 0x80]
mov r8d, r12d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
test eax, eax
je 0x14000a9bc
mov r9, qword [rsp + 0x68]
mov r8d, 0xc0110000
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
test eax, eax
je 0x14000a9bc
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x14000a9a1
mov r9, qword [rsi]
mov r8d, r12d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAce]
test eax, eax
je 0x14000a9bc
xor r9d, r9d
mov r8, rdi
lea ebx, [r9 + 1]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
test eax, eax
cmovne r14d, ebx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a9d1
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14000a9ec
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov qword [rsp + 0x80], r13
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000aa01
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov qword [rsp + 0x68], r13
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000aa16
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsp + 0x70], r13
test rsi, rsi
je 0x14000aa2f
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test r14d, r14d
jne 0x14000aa50
test rdi, rdi
je 0x14000aa50
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rdi, r13
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400122a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret