Function at 0x140013c54
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
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and dword [rbp - 0x19], 0
lea r9, [rbp - 0x19]
xor ebx, ebx
xor r8d, r8d
mov rsi, rcx
mov qword [rbp + 7], rbx
lea edx, [rbx + 4]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
mov edi, eax
cmp eax, 0x7a
jne 0x140013cd7
mov ecx, dword [rbp - 0x19]
call fcn.140024914
lea rcx, [rbp + 7]
mov rbx, rax
call fcn.14001fe6c
mov qword [rbp + 7], rbx
test rbx, rbx
je 0x14002ec24
lea r9, [rbp - 0x19]
mov r8, rbx
lea edx, [rdi - 0x76]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetKeySecurity]
mov edi, eax
test edi, edi
jne 0x140013d94
and dword [rbp - 9], edi
lea r9, [rbp + 0xf]
and qword [rbp - 1], 0
lea r8, [rbp - 1]
and dword [rbp + 0xf], edi
lea rdx, [rbp - 9]
xor eax, eax
mov rcx, rbx
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x47], eax
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x14002ec2e
cmp dword [rbp - 9], 0
mov rcx, qword [rbp - 1]
je 0x14002ec3b
test rcx, rcx
je 0x14002ec3b
test edi, edi
jne 0x140013d94
lea r9d, [rdi + 2]
lea r8d, [rdi + 0xc]
lea rdx, [rbp + 0x3f]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetAclInformation]
test eax, eax
je 0x14002ecde
xor ebx, ebx
cmp dword [rbp + 0x3f], ebx
jbe 0x14002ec55
mov rcx, qword [rbp - 1]
lea r8, [rbp - 0x11]
and qword [rbp - 0x11], 0
mov edx, ebx
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetAce]
test eax, eax
je 0x14002ec45
mov rcx, qword [rbp - 0x11]
cmp byte [rcx], 0
jne 0x140013dc4
test dword [rcx + 4], 0x20019
je 0x140013dc4
mov rdx, qword [0x1400aae78]
add rcx, 8
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_EqualSid]
test eax, eax
je 0x140013dc4
lea rcx, [rbp + 7]
call fcn.14001fe6c
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
inc ebx
cmp ebx, dword [rbp + 0x3f]
jb 0x140013d50
jmp 0x14002ec55
mov edi, 8
jmp 0x140013cd7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
jmp 0x140013d10
mov edi, 1
jmp 0x140013d27
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x140013d94
mov rcx, qword [0x1400aae78]
and qword [rbp - 0x11], 0
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetLengthSid]
mov r8d, dword [rbp + 0x43]
xor r9d, r9d
mov edx, dword [rbp + 0x3f]
add r8d, 0xc
mov rcx, qword [rbp - 1]
add r8d, eax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
call fcn.140063f88
mov edi, eax
test eax, eax
jne 0x14002eccf
lea edx, [rax + 1]
lea rcx, [rbp + 0x17]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14002ecc7
mov r8, qword [rbp - 0x11]
lea edx, [rdi + 1]
xor r9d, r9d
lea rcx, [rbp + 0x17]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14002ecc7
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.140063e04
jmp 0x14002eccd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp - 0x11]
call fcn.140024954
nop
jmp 0x140013d94
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
jmp 0x140013d94