Function at 0x140082bf0
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov qword [rsp + 0xe0], rdx
mov dword [rsp + 0x30], 0
mov byte [rdx], 0
xorps xmm0, xmm0
movups xmmword [r11 - 0x50], xmm0
movups xmmword [r11 - 0x40], xmm0
lea rdi, vtable.ATL::CAccessToken.0
mov qword [r11 - 0x50], rdi
movdqu xmmword [r11 - 0x48], xmm0
xor r12d, r12d
mov qword [r11 - 0x38], r12
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
lea r9, [rsp + 0x170]
lea edx, [r12 + 8]
lea r8d, [r12 + 1]
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_OpenThreadToken]
test eax, eax
je 0x14008321f
mov rax, qword [rsp + 0x178]
lea rcx, [rsp + 0x178]
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x180], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xd0], xmm0
lea rsi, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x98], 0x11
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0xbc], 0xa
movdqa xmmword [rsp + 0xc0], xmm0
movss xmm1, dword [0x14022f13c]
movss dword [rsp + 0x9c], xmm1
movss xmm0, dword [0x14022f138]
movss dword [rsp + 0xa0], xmm0
movss xmm1, dword [0x14022f140]
movss dword [rsp + 0xa4], xmm1
mov qword [rsp + 0xa8], 0x26
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xd0], r12
mov byte [rsp + 0xd8], 1
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x178]
call fcn.140081530
test al, al
jne 0x140082e1c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov qword [rsp + 0x80], rsi
mov rcx, qword [rsp + 0xd0]
call fcn.1400e2180
lea rcx, [rsp + 0x88]
call fcn.140080780
nop
mov qword [rsp + 0x178], rdi
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
test rdx, rdx
je 0x140082df0
test rcx, rcx
je 0x140082de8
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x180]
mov qword [rsp + 0x188], r12
test rcx, rcx
je 0x140082e03
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsp + 0x180], r12
mov edx, 8
mov rcx, qword [rsp + 0x190]
call fcn.14013ff64
mov eax, ebx
jmp 0x14008328d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov r13, r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x50], r12d
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x78], r12d
mov rbx, r12
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r12
mov r15, r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov edi, dword [rsp + 0x98]
cmp qword [rsp + 0x90], r12
je 0x140082e9b
mov eax, r12d
test edi, edi
je 0x140082e9b
mov rsi, qword [rsp + 0x88]
mov r14d, eax
cmp qword [rsi + r14*8], rbx
jne 0x140082e95
inc eax
cmp eax, edi
jb 0x140082e84
jmp 0x140082ea3
mov r14, qword [rsi + r14*8]
jmp 0x140082ea6
mov rsi, qword [rsp + 0x88]
mov r14, r12
test r14, r14
je 0x140082fb5
mov qword [rsp + 0x58], r14
mov r8, qword [r14 + 0x80]
test r8, r8
jne 0x140082ee6
mov r8, r12
xor edx, edx
mov eax, dword [r14 + 0x88]
div edi
inc edx
cmp edx, edi
jae 0x140082ee6
mov rcx, qword [rsi + rdx*8]
test rcx, rcx
cmovne r8, rcx
inc edx
test r8, r8
je 0x140082ed0
mov r14, r8
mov r12, rbx
cmp rbx, qword [rsp + 0x48]
jb 0x140082f2e
lfence
mov rdx, qword [rsp + 0x40]
inc rdx
lea rcx, [rsp + 0x38]
call fcn.140081a80
test al, al
je 0x1400832ba
mov edi, dword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x68]
imul rcx, r12, 0x78
add rcx, r13
mov r12, qword [rsp + 0x58]
mov rdx, r12
call fcn.1400805f0
inc rbx
mov qword [rsp + 0x40], rbx
mov eax, dword [r12 + 0x78]
mov dword [rsp + 0x58], eax
mov r12, r15
cmp r15, qword [rsp + 0x70]
jb 0x140082f98
lfence
mov rdx, qword [rsp + 0x68]
inc rdx
lea rcx, [rsp + 0x60]
call fcn.140081980
test al, al
je 0x1400832c4
mov edi, dword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x58]
mov dword [rax + r12*4], ecx
inc r15
mov qword [rsp + 0x68], r15
xor r12d, r12d
jmp 0x140082ea6
mov esi, r12d
lea r14, vtable.ATL::CSid.0
mov r12, qword [rsp + 0xe0]
nop word [rax + rax]
mov edi, esi
cmp rdi, rbx
jae 0x140083140
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x14022eb24]
lea rcx, [rsp + 0xf0]
call fcn.140080420
or dword [rsp + 0x30], 1
imul rax, rdi, 0x78
lea rbx, [r13 + 8]
add rbx, rax
je 0x140083062
cmp byte [rax + r13 + 0x4c], 0
je 0x140083062
lfence
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x140083062
cmp byte [rsp + 0x13c], 0
je 0x140083062
lea rcx, [rsp + 0xf8]
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x140083062
lfence
lea rdx, [rsp + 0xf8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_EqualSid]
test eax, eax
setne al
jmp 0x140083064
xor al, al
mov byte [r12], al
mov qword [rsp + 0xf0], r14
mov rdx, qword [rsp + 0x160]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008309e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov rdx, qword [rsp + 0x158]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400830cc
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov rdx, qword [rsp + 0x150]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400830fa
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov rdx, qword [rsp + 0x148]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140083128
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140047660.0]
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0x38]
cmp byte [r12], 0
jne 0x140083140
inc esi
jmp 0x140082fd0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140083150
call fcn.1400e2180
nop
test r13, r13
je 0x140083184
test rbx, rbx
je 0x14008317b
mov rdi, r13
nop dword [rax]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140047660.0]
add rdi, 0x78
sub rbx, 1
jne 0x140083160
mov rcx, r13
call fcn.1400e2180
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xd0]
call fcn.1400e2180
lea rcx, [rsp + 0x88]
call fcn.140080780
nop
lea rax, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
test rdx, rdx
je 0x1400831f1
test rcx, rcx
je 0x1400831e5
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x180]
mov qword [rsp + 0x188], 0
test rcx, rcx
je 0x140083208
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsp + 0x180], 0
mov edx, 8
mov rcx, qword [rsp + 0x190]
call fcn.14013ff64
nop
xor eax, eax
jmp 0x14008328d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov qword [rsp + 0x178], rdi
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
test rdx, rdx
je 0x14008325f
test rcx, rcx
je 0x140083257
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x180]
mov qword [rsp + 0x188], r12
test rcx, rcx
je 0x140083272
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsp + 0x180], r12
mov edx, 8
mov rcx, qword [rsp + 0x190]
call fcn.14013ff64
mov eax, ebx
jmp 0x14008328d
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140140100
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x8007000e
call fcn.140080e90
mov ecx, 0x8007000e
call fcn.140080e90
int3