Function at 0x140030660
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 [0x1401b6838]
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 0x140030b69
mov rax, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
mov rax, qword [rax + 8]
call qword [case.0x1400f8719.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 [0x14014e32c]
movss dword [rsp + 0x7c], xmm1
movss xmm0, dword [0x14014e328]
movss dword [rbp - 0x80], xmm0
movss xmm1, dword [0x14014e330]
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.140030170
test al, al
je 0x140030b5f
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 0x1400309f5
mov eax, r15d
mov r14, qword [rsp + 0x68]
mov esi, dword [rsp + 0x78]
test esi, esi
je 0x1400307e2
nop
mov edi, eax
cmp qword [r14 + rdi*8], rbx
jne 0x140030886
inc eax
cmp eax, esi
jb 0x1400307d0
mov rdi, r15
test rdi, rdi
je 0x14003088f
mov qword [rbp - 0x40], rdi
mov r8, qword [rdi + 0x80]
test r8, r8
jne 0x140030826
mov r8, r15
xor edx, edx
mov eax, dword [rdi + 0x88]
div esi
inc edx
nop dword [rax]
cmp edx, esi
jae 0x140030826
mov rcx, qword [r14 + rdx*8]
test rcx, rcx
cmovne r8, rcx
inc edx
test r8, r8
je 0x140030810
mov rdi, r8
mov r15, rbx
cmp rbx, r12
jb 0x140030866
lfence
mov rdx, qword [rsp + 0x40]
inc rdx
lea rcx, [rsp + 0x38]
call fcn.140030440
test al, al
je 0x140030b8a
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.14002f520
inc rbx
mov qword [rsp + 0x40], rbx
xor r15d, r15d
jmp 0x1400307e5
mov rdi, qword [r14 + rdi*8]
jmp 0x1400307e5
mov rsi, r15
test rbx, rbx
je 0x1400309e7
lea rdi, [r13 + 8]
lea r14, vtable.ATL::CSid.0
cmp r15, rbx
jae 0x140030b54
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x14014e188]
lea rcx, [rbp - 0x30]
call fcn.14002f350
test rdi, rdi
je 0x140030917
cmp byte [rdi + 0x44], 0
je 0x140030917
lfence
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x140030917
cmp byte [rbp + 0x1c], 0
je 0x140030917
lea rcx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.DLL_IsValidSid]
test eax, eax
je 0x140030917
lfence
lea rdx, [rbp - 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_EqualSid]
test eax, eax
setne bl
jmp 0x140030919
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 0x14003094e
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f8719.0]
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140030978
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f8719.0]
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400309a2
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f8719.0]
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400309cc
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400f8719.0]
test bl, bl
jne 0x140030aaf
mov rbx, qword [rsp + 0x40]
cmp rsi, rbx
jb 0x1400308af
mov r13, qword [rsp + 0x38]
lea r14, vtable.ATL::CTokenGroups.0
lea rsi, vtable.ATL::CAccessToken.0
test r13, r13
je 0x140030a26
test rbx, rbx
je 0x140030a1d
mov rdi, r13
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400f8719.0]
add rdi, 0x78
sub rbx, 1
jne 0x140030a02
mov rcx, r13
call fcn.1400fed98
nop
mov qword [rsp + 0x60], r14
mov rcx, qword [rbp - 0x50]
call fcn.1400fed98
lea rcx, [rsp + 0x68]
call fcn.14002f6a0
nop
mov qword [rbp + 0x58], rsi
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
test rdx, rdx
je 0x140030a63
test rcx, rcx
je 0x140030a5f
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x68], r15
test rcx, rcx
je 0x140030a72
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbp + 0x60], r15
mov edx, 8
mov rcx, qword [rbp + 0x70]
call fcn.14012e940
xor al, al
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.14012e910
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 0x140030ae5
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.0x1400f8719.0]
add rbx, 0x78
sub rdi, 1
jne 0x140030ac1
mov rcx, rsi
call fcn.1400fed98
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp - 0x50]
call fcn.1400fed98
lea rcx, [rsp + 0x68]
call fcn.14002f6a0
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 0x140030b30
test rcx, rcx
je 0x140030b2c
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x68], r15
test rcx, rcx
je 0x140030b3f
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbp + 0x60], r15
mov edx, 8
mov rcx, qword [rbp + 0x70]
call fcn.14012e940
mov al, 1
jmp 0x140030a82
mov ecx, 0x80070057
call fcn.14002fd40
nop
lea rcx, [rsp + 0x60]
call fcn.14002f850
call qword [sym.imp.KERNEL32.DLL_GetLastError]
or eax, 0x80070000
mov dword [rsp + 0x30], eax
lea rdx, [0x1401ad408]
lea rcx, [rsp + 0x30]
call fcn.140122d30
nop
mov ecx, 0x8007000e
call fcn.14002fd40
int3