Function at 0x14002ffb0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1401b3838]
xor rax, rsp
mov qword [rbp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp + 0x68], xmm0
lea rsi, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x58], rsi
movdqu xmmword [rbp + 0x60], xmm0
xor r15d, r15d
mov qword [rbp + 0x70], r15
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
lea r9, [rbp + 0x50]
lea edx, [r15 + 8]
lea r8d, [r15 + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_OpenThreadToken]
test eax, eax
je 0x1400304b9
mov rax, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
mov rax, qword [rax + 8]
call qword [case.0x1400f18f9.0]
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x50], xmm0
lea r14, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 0x11
mov dword [rbp - 0x68], r15d
mov dword [rbp - 0x64], 0xa
movdqa xmmword [rbp - 0x60], xmm0
movss xmm1, dword [0x14014c33c]
movss dword [rsp + 0x7c], xmm1
movss xmm0, dword [0x14014c338]
movss dword [rbp - 0x80], xmm0
movss xmm1, dword [0x14014c340]
movss dword [rbp - 0x7c], xmm1
mov qword [rbp - 0x78], 0x26
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x50], r15
mov byte [rbp - 0x48], 1
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x58]
call fcn.14002fac0
test al, al
je 0x1400304af
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov r13d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x50], r15d
mov ebx, r15d
mov qword [rsp + 0x40], rbx
mov r12d, r15d
mov qword [rsp + 0x48], r15
cmp qword [rsp + 0x70], r15
je 0x140030345
mov eax, r15d
mov r14, qword [rsp + 0x68]
mov esi, dword [rsp + 0x78]
test esi, esi
je 0x140030132
nop
mov edi, eax
cmp qword [r14 + rdi*8], rbx
jne 0x1400301d6
inc eax
cmp eax, esi
jb 0x140030120
mov rdi, r15
test rdi, rdi
je 0x1400301df
mov qword [rbp - 0x40], rdi
mov r8, qword [rdi + 0x80]
test r8, r8
jne 0x140030176
mov r8, r15
xor edx, edx
mov eax, dword [rdi + 0x88]
div esi
inc edx
nop dword [rax]
cmp edx, esi
jae 0x140030176
mov rcx, qword [r14 + rdx*8]
test rcx, rcx
cmovne r8, rcx
inc edx
test r8, r8
je 0x140030160
mov rdi, r8
mov r15, rbx
cmp rbx, r12
jb 0x1400301b6
lfence
mov rdx, qword [rsp + 0x40]
inc rdx
lea rcx, [rsp + 0x38]
call fcn.14002fd90
test al, al
je 0x1400304da
mov esi, dword [rsp + 0x78]
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
imul rcx, r15, 0x78
add rcx, r13
mov rdx, qword [rbp - 0x40]
call fcn.14002ee70
inc rbx
mov qword [rsp + 0x40], rbx
xor r15d, r15d
jmp 0x140030135
mov rdi, qword [r14 + rdi*8]
jmp 0x140030135
mov rsi, r15
test rbx, rbx
je 0x140030337
lea rdi, [r13 + 8]
lea r14, vtable.ATL::CSid.0
cmp r15, rbx
jae 0x1400304a4
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x14014c198]
lea rcx, [rbp - 0x30]
call fcn.14002eca0
test rdi, rdi
je 0x140030267
cmp byte [rdi + 0x44], 0
je 0x140030267
lfence
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x140030267
cmp byte [rbp + 0x1c], 0
je 0x140030267
lea rcx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x140030267
lfence
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_EqualSid]
test eax, eax
setne bl
jmp 0x140030269
xor bl, bl
inc rsi
add rdi, 0x78
mov qword [rbp - 0x30], r14
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003029e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f18f9.0]
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400302c8
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f18f9.0]
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400302f2
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f18f9.0]
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003031c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f18f9.0]
test bl, bl
jne 0x1400303ff
mov rbx, qword [rsp + 0x40]
cmp rsi, rbx
jb 0x1400301ff
mov r13, qword [rsp + 0x38]
lea r14, vtable.ATL::CTokenGroups.0
lea rsi, vtable.ATL::CAccessToken.0
test r13, r13
je 0x140030376
test rbx, rbx
je 0x14003036d
mov rdi, r13
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400f18f9.0]
add rdi, 0x78
sub rbx, 1
jne 0x140030352
mov rcx, r13
call fcn.1400fd548
nop
mov qword [rsp + 0x60], r14
mov rcx, qword [rbp - 0x50]
call fcn.1400fd548
lea rcx, [rsp + 0x68]
call fcn.14002eff0
nop
mov qword [rbp + 0x58], rsi
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400303b3
test rcx, rcx
je 0x1400303af
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x68], r15
test rcx, rcx
je 0x1400303c2
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbp + 0x60], r15
mov edx, 8
mov rcx, qword [rbp + 0x70]
call fcn.14012d3b0
xor al, al
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.14012d380
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x140030435
mov rbx, rsi
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1400f18f9.0]
add rbx, 0x78
sub rdi, 1
jne 0x140030411
mov rcx, rsi
call fcn.1400fd548
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp - 0x50]
call fcn.1400fd548
lea rcx, [rsp + 0x68]
call fcn.14002eff0
nop
lea rax, vtable.ATL::CAccessToken.0
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
test rdx, rdx
je 0x140030480
test rcx, rcx
je 0x14003047c
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x68], r15
test rcx, rcx
je 0x14003048f
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbp + 0x60], r15
mov edx, 8
mov rcx, qword [rbp + 0x70]
call fcn.14012d3b0
mov al, 1
jmp 0x1400303d2
mov ecx, 0x80070057
call fcn.14002f690
nop
lea rcx, [rsp + 0x60]
call fcn.14002f1a0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
or eax, 0x80070000
mov dword [rsp + 0x30], eax
lea rdx, [0x1401aa710]
lea rcx, [rsp + 0x30]
call fcn.140121790
nop
mov ecx, 0x8007000e
call fcn.14002f690
int3