Function at 0x14000da4c
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400be7a8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
and dword [rbp - 0x49], 0
lea r9, [rbp - 0x49]
and qword [rbp - 0x21], 0
xor r8d, r8d
mov r12, rcx
lea esi, [r8 + 4]
mov edx, esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
xor edi, edi
mov ebx, eax
cmp eax, 0x7a
jne 0x14000dae6
mov ecx, dword [rbp - 0x49]
call fcn.140013eb4
lea rcx, [rbp - 0x21]
mov rdi, rax
call fcn.14000dc64
mov qword [rbp - 0x21], rdi
test rdi, rdi
je 0x140019f1a
lea r9, [rbp - 0x49]
mov r8, rdi
mov edx, esi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jne 0x14000dbe2
and dword [rbp - 0x39], ebx
lea r9, [rbp - 0x29]
and qword [rbp - 0x31], 0
lea r8, [rbp - 0x31]
and dword [rbp - 0x29], ebx
lea rdx, [rbp - 0x39]
xor eax, eax
mov rcx, rdi
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0x27], eax
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x140019f24
cmp dword [rbp - 0x39], 0
je 0x14001a019
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14001a019
test ebx, ebx
jne 0x14000dbe2
lea r9d, [rbx + 2]
lea r8d, [rbx + 0xc]
lea rdx, [rbp + 0x1f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAclInformation]
nop dword [rax + rax]
test eax, eax
je 0x14001a006
xor esi, esi
lea edi, [rbx + 1]
xor r14d, r14d
xor r15d, r15d
cmp dword [rbp + 0x1f], esi
jbe 0x140019f52
mov rcx, qword [rbp - 0x31]
lea r8, [rbp - 0x41]
and qword [rbp - 0x41], 0
mov edx, r15d
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x140019f37
mov r13, qword [rbp - 0x41]
cmp byte [r13], 0
jne 0x14000dbc8
test dword [r13 + 4], 0x20019
je 0x14000dbc8
test esi, esi
je 0x14000dc3a
test dword [r13 + 4], 0x20019
je 0x14000dbc8
test r14d, r14d
je 0x14000dc1b
add r15d, edi
cmp r15d, dword [rbp + 0x1f]
jb 0x14000db78
test esi, esi
je 0x140019f52
test r14d, r14d
je 0x140019f52
lea rcx, [rbp - 0x21]
call fcn.14000dc64
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140014250
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rdx, qword [0x1400c02e0]
lea rcx, [r13 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
cmovne r14d, edi
jmp 0x14000dbc8
mov rdx, qword [0x1400c02e8]
lea rcx, [r13 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
cmovne esi, edi
jmp 0x14000dbb9
mov ebx, 8
jmp 0x14000dbe2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000db25
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000dbe2
jmp 0x14000dbd1
and qword [rbp - 0x41], 0
mov rax, qword [rbp - 0x19]
test esi, esi
cmove rax, qword [0x1400c02e8]
xor r8d, r8d
test esi, esi
mov qword [rbp - 0x19], rax
sete r8b
test r14d, r14d
jne 0x140019f89
mov rax, qword [0x1400c02e0]
mov ecx, r8d
inc r8d
mov qword [rbp + rcx*8 - 0x19], rax
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x41]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x19]
call fcn.140071918
mov ebx, eax
test eax, eax
jne 0x140019ff7
mov edx, edi
lea rcx, [rbp - 9]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeSecurityDescriptor]
nop dword [rax + rax]
test eax, eax
je 0x140019fe9
mov r8, qword [rbp - 0x41]
lea rcx, [rbp - 9]
xor r9d, r9d
mov edx, edi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x140019fe9
lea rdx, [rbp - 9]
mov rcx, r12
call fcn.14007170c
jmp 0x140019ff5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp - 0x41]
call fcn.140013ef4
nop
jmp 0x14000dbe2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000dbe2
mov ebx, 1
jmp 0x14000dbe2