Function at 0x14000f450
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400be7a8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r13, r8
lea r9, [rbp - 0x28]
mov r12, rdx
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
je 0x14001aada
cmp dword [rbp - 0x40], ebx
je 0x14001aaed
mov rcx, qword [rbp - 0x38]
lea r9d, [rbx + 2]
lea r8d, [rbx + 0xc]
lea rdx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAclInformation]
nop dword [rax + rax]
test eax, eax
je 0x14001aada
mov r14d, ebx
mov edi, ebx
mov esi, ebx
cmp dword [rbp - 0x18], ebx
jbe 0x14000f6ae
lea r15d, [rbx + 1]
mov rcx, qword [rbp - 0x38]
lea r8, [rbp - 0x20]
mov edx, esi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x14001aada
mov rax, qword [rbp - 0x20]
cmp byte [rax], bl
jne 0x14000f551
mov rdx, qword [0x1400c02e8]
lea r15, [rax + 8]
mov rcx, r15
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14000f69d
mov rdx, qword [0x1400c02e0]
mov rcx, r15
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
mov r15d, 1
cmovne edi, r15d
test r14d, r14d
jne 0x14000f6a6
add esi, r15d
cmp esi, dword [rbp - 0x18]
jb 0x14000f4de
test r14d, r14d
je 0x14000f6ae
test edi, edi
jne 0x14000f6ae
mov rcx, qword [0x1400c02e0]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
nop dword [rax + rax]
mov esi, dword [rbp - 0x14]
add esi, eax
lea ecx, [rsi + 0xc]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14001aaf7
mov r8d, 2
lea edx, [rsi + 0xc]
mov rcx, rax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeAcl]
nop dword [rax + rax]
test eax, eax
je 0x14001ab01
mov esi, ebx
cmp dword [rbp - 0x18], ebx
jbe 0x14000f638
mov rcx, qword [rbp - 0x38]
lea r8, [rbp - 0x30]
mov edx, esi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x14001ab01
mov r9, qword [rbp - 0x30]
or r8d, 0xffffffff
mov edx, 2
mov rcx, rdi
movzx eax, word [r9 + 2]
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAce]
nop dword [rax + rax]
test eax, eax
je 0x14001ab01
mov r14, qword [rbp - 0x30]
cmp byte [r14], bl
jne 0x14000f630
mov rdx, qword [0x1400c02e8]
lea rcx, [r14 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x14000f6b5
add esi, r15d
cmp esi, dword [rbp - 0x18]
jb 0x14000f5bd
mov edx, r15d
mov rcx, r12
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
nop dword [rax + rax]
test eax, eax
je 0x14001ab01
xor r9d, r9d
mov r8, rdi
mov edx, r15d
mov rcx, r12
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x14001ab01
mov qword [r13], rdi
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140014250
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r15d, 1
mov r14d, r15d
test edi, edi
je 0x14000f551
mov ebx, 0xb7
jmp 0x14000f676
mov rax, qword [rbp - 0x30]
mov edx, 2
mov r9d, dword [r14 + 4]
mov rcx, rdi
movzx r8d, byte [rax + 1]
mov rax, qword [0x1400c02e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAccessAllowedAceEx]
nop dword [rax + rax]
test eax, eax
jne 0x14000f630
jmp 0x14001ab01
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000f676
mov ebx, 0x57
jmp 0x14000f676
mov ebx, 8
jmp 0x14000f676
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x14000f676