Function at 0x14001112c
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400b57a8]
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 0x1400111c1
mov ecx, dword [rbp - 0x49]
call fcn.140012914
lea rcx, [rbp - 0x21]
mov rdi, rax
call fcn.140011344
mov qword [rbp - 0x21], rdi
test rdi, rdi
je 0x14002c9ac
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 0x1400112c0
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 0x14002c9b6
cmp dword [rbp - 0x39], 0
mov eax, 1
mov rcx, qword [rbp - 0x31]
je 0x14002c9c9
test rcx, rcx
je 0x14002c9c9
test ebx, ebx
jne 0x1400112c0
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 0x14002caa1
xor edi, edi
xor esi, esi
xor r14d, r14d
cmp dword [rbp + 0x1f], esi
jbe 0x14002c9eb
mov rcx, qword [rbp - 0x31]
lea r8, [rbp - 0x41]
and qword [rbp - 0x41], 0
mov edx, r14d
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
nop dword [rax + rax]
test eax, eax
je 0x14002c9d0
mov r15, qword [rbp - 0x41]
cmp byte [r15], 0
jne 0x1400112a2
test dword [r15 + 4], 0x20019
je 0x1400112a2
test edi, edi
je 0x140011317
test dword [r15 + 4], 0x20019
je 0x1400112a2
test esi, esi
je 0x1400112f4
mov eax, 1
add r14d, eax
cmp r14d, dword [rbp + 0x1f]
jb 0x140011254
test edi, edi
je 0x14002c9eb
test esi, esi
je 0x14002c9eb
lea rcx, [rbp - 0x21]
call fcn.140011344
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140012c90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rdx, qword [0x1400b7308]
lea rcx, [r15 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
mov eax, 1
cmovne esi, eax
jmp 0x1400112a7
mov rdx, qword [0x1400b7310]
lea rcx, [r15 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
mov eax, 1
cmovne edi, eax
jmp 0x140011294
mov ebx, 8
jmp 0x1400111c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140011200
mov ebx, eax
jmp 0x14001121c
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 0x1400112c0
jmp 0x1400112b0
and qword [rbp - 0x41], 0
mov rax, qword [rbp - 0x19]
test edi, edi
cmove rax, qword [0x1400b7310]
xor r8d, r8d
test edi, edi
mov qword [rbp - 0x19], rax
sete r8b
test esi, esi
jne 0x14002ca21
mov rax, qword [0x1400b7308]
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.14006b8f8
mov ebx, eax
test eax, eax
jne 0x14002ca92
lea ebx, [rax + 1]
mov edx, ebx
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 0x14002ca84
mov r8, qword [rbp - 0x41]
lea rcx, [rbp - 9]
xor r9d, r9d
mov edx, ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetSecurityDescriptorDacl]
nop dword [rax + rax]
test eax, eax
je 0x14002ca84
lea rdx, [rbp - 9]
mov rcx, r12
call fcn.14006b700
jmp 0x14002ca90
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.140012954
nop
jmp 0x1400112c0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400112c0