Function at 0x140108148
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x190
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12, rdx
mov r13, rcx
lea rax, [0x1400052e0]
mov qword [rsp + 0x48], rax
lea rax, [0x14003dc40]
mov qword [rsp + 0x50], rax
lea rax, [0x140005298]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 0x6ce
mov dword [rsp + 0x64], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x68], 0xff
xor r15d, r15d
mov dword [rbp - 0x18], 0x1000000
lea ebx, [r15 + 1]
xor edx, edx
lea r8d, [r15 + 0x78]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp]
call fcn.140052e50
nop
mov qword [rbp + 0x70], r15
xor eax, eax
mov dword [rbp + 0x78], eax
mov qword [rsp + 0x30], r15
mov sil, r15b
mov dil, r15b
lea r9d, [r15 + 2]
lea r8d, [r15 + 0xc]
lea rdx, [rbp + 0x70]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetAclInformation]
mov r14d, r15d
mov eax, dword [rbp + 0x70]
test eax, eax
je 0x1401082c3
lea r8, [rsp + 0x30]
mov edx, r15d
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_GetAce]
mov r9, qword [rsp + 0x30]
movzx ecx, byte [r9]
test ecx, ecx
je 0x14010827d
dec ecx
jne 0x1401082b4
test r14d, r14d
jne 0x140108266
lea rdx, [r9 + 8]
mov rcx, r12
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_EqualSid]
test eax, eax
jne 0x1401082d4
jmp 0x1401082b4
add r9, 8
mov r8, r12
lea rdx, [rbp]
mov rcx, r13
call fcn.140106af0
test al, al
jmp 0x140108262
test r14d, r14d
jne 0x140108298
lea rdx, [r9 + 8]
mov rcx, r12
call qword [sym.imp.api_ms_win_security_base_l1_2_0.dll_EqualSid]
test eax, eax
je 0x1401082b4
mov dil, bl
jmp 0x1401082b4
add r9, 8
mov r8, r12
lea rdx, [rbp]
mov rcx, r13
call fcn.140106af0
movzx edi, dil
test al, al
cmovne edi, ebx
add r15d, ebx
mov eax, dword [rbp + 0x70]
cmp r15d, eax
jb 0x14010822b
add r14d, ebx
cmp r14d, 2
jae 0x1401082d7
xor r15d, r15d
jmp 0x140108223
mov sil, bl
mov edx, dword [rbp + 0x24]
lea rcx, [rbp]
call fcn.14004d06c
xor r13d, r13d
test eax, eax
je 0x1401083d0
mov qword [rsp + 0x40], r13
lea rax, [0x140001d20]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140073d14
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertSidToStringSidW]
test eax, eax
je 0x1401083c6
test dil, dil
je 0x140108330
test sil, sil
lea r15, [0x14003dcb8]
je 0x140108337
lea r15, [0x14003dca8]
test dil, dil
jne 0x140108348
test sil, sil
lea r14, [0x14003dcc8]
je 0x14010834f
lea r14, [0x14003dce0]
lea rax, [0x1400052e0]
mov qword [rsp + 0x48], rax
lea rax, [0x14003dc40]
mov qword [rsp + 0x50], rax
lea rax, [0x140005298]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 0x728
mov dword [rsp + 0x64], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x68], 0xff
mov dword [rbp - 0x18], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r9, qword [rsp + 0x40]
lea r8, [0x14003dd30]
lea rdx, [rsp + 0x48]
lea rcx, [rbp]
call fcn.1400510b0
lea rcx, [rsp + 0x38]
call fcn.140070d4c
test dil, dil
je 0x1401083da
test sil, sil
je 0x1401083dd
mov bl, r13b
mov dl, bl
lea rcx, [rbp]
call fcn.140074628
mov bl, al
lea rcx, [rbp]
call fcn.140050f50
mov al, bl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14005dc70
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret