Function at 0x140038d00
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 [0x1401d6668]
xor rax, rsp
mov qword [rbp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
lea r12, vtable.ATL::CAccessToken.0
mov qword [rbp - 0x18], r12
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbp - 0x20]
mov edx, 8
lea r8d, [rdx - 7]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1400392a6
mov rax, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14005c876.0]
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x60], xmm0
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov dword [rbp + 0x28], SafeArrayUnlock
mov dword [rbp + 0x48], 0
mov dword [rbp + 0x4c], 0xa
movdqa xmmword [rbp + 0x50], xmm0
movss xmm1, dword [0x14016cb44]
movss dword [rbp + 0x2c], xmm1
movss xmm0, dword [0x14016cb40]
movss dword [rbp + 0x30], xmm0
movss xmm1, dword [0x14016cb48]
movss dword [rbp + 0x34], xmm1
mov qword [rbp + 0x38], 0x26
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x60], 0
mov byte [rbp + 0x68], 1
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.1400388e0
test al, al
je 0x14003929d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x50], esi
xor edi, edi
mov qword [rsp + 0x40], rdi
xor r13d, r13d
mov qword [rsp + 0x48], r13
cmp qword [rbp + 0x20], r13
je 0x140038fb9
xor ecx, ecx
mov r14d, dword [rbp + 0x28]
test r14d, r14d
je 0x140038fb9
mov r15, qword [rbp + 0x18]
nop dword [rax + rax]
mov rbx, qword [r15 + rcx*8]
test rbx, rbx
jne 0x140038ea0
inc ecx
cmp ecx, r14d
jb 0x140038e80
jmp 0x140038fb9
mov qword [rsp + 0x58], rbx
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x140038eb6
mov rbx, rax
jmp 0x140038ed3
xor edx, edx
mov eax, dword [rbx + 0x88]
div r14d
inc edx
xor ebx, ebx
cmp edx, r14d
jae 0x140038ed3
mov rbx, qword [r15 + rdx*8]
test rbx, rbx
je 0x140038ec1
cmp rdi, r13
jb 0x140038f90
lea r12, [rdi + 1]
cmp r12, r13
jbe 0x140038f90
lfence
test rsi, rsi
jne 0x140038f1c
lea edx, [rsi + 0x78]
mov rcx, r12
call fcn.140117e2c
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400392c7
mov r13, r12
mov qword [rsp + 0x48], r12
mov rdi, qword [rsp + 0x40]
jmp 0x140038f88
mov rdx, qword [rsp + 0x48]
mov rcx, rdx
shr rcx, 1
mov rax, r12
sub rax, rdx
cmp rax, rcx
cmovbe rax, rcx
lea r13, [rax + rdx]
cmp r12, r13
cmovae r13, r12
mov edx, 0x78
mov rcx, r13
call fcn.140117e2c
mov rsi, rax
test rax, rax
je 0x1400392c7
mov rdi, qword [rsp + 0x40]
imul r8, rdi, 0x78
mov r14, qword [rsp + 0x38]
test r8, r8
je 0x140038f76
mov rdx, r14
mov rcx, rax
call fcn.140139cd0
mov rcx, r14
call fcn.140117d20
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], r13
mov r15, qword [rbp + 0x18]
mov r14d, dword [rbp + 0x28]
imul rcx, rdi, 0x78
add rcx, rsi
mov rdx, qword [rsp + 0x58]
call fcn.140037bf0
inc rdi
mov qword [rsp + 0x40], rdi
test rbx, rbx
jne 0x140038ea0
lea r12, vtable.ATL::CAccessToken.0
xor r14d, r14d
test rdi, rdi
je 0x14003911d
lea r15, vtable.ATL::CSid.0
nop dword [rax]
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x14016ca94]
lea rcx, [rsp + 0x60]
call fcn.140037a20
nop
cmp r14, rdi
jae 0x140039292
mov rax, rsi
inc r14
add rsi, 0x78
lea rbx, [rax + 8]
test rbx, rbx
je 0x140039053
cmp byte [rax + 0x4c], 0
je 0x140039053
lfence
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140039053
cmp byte [rbp - 0x54], 0
je 0x140039053
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140039053
lfence
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
jmp 0x140039055
xor bl, bl
mov qword [rsp + 0x60], r15
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140039084
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005c876.0]
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400390ae
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005c876.0]
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400390d8
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005c876.0]
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140039102
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005c876.0]
test bl, bl
jne 0x1400391ea
mov rdi, qword [rsp + 0x40]
cmp r14, rdi
jb 0x140038fd0
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x140039154
test rdi, rdi
je 0x14003914b
mov rbx, rsi
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14005c876.0]
add rbx, 0x78
sub rdi, 1
jne 0x140039130
mov rcx, rsi
call fcn.140117d20
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rbp + 0x10], rax
mov rcx, qword [rbp + 0x60]
call fcn.140117d20
lea rcx, [rbp + 0x18]
call fcn.140037d50
nop
mov qword [rbp - 0x18], r12
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x10]
test rdx, rdx
je 0x14003919a
test rcx, rcx
je 0x140039192
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 8], 0
test rcx, rcx
je 0x1400391ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x10], 0
mov edx, 8
mov rcx, qword [rbp]
call fcn.140146acc
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140146a70
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 0x140039224
mov rbx, rsi
mov rdi, qword [rsp + 0x40]
nop dword [rax]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14005c876.0]
add rbx, 0x78
sub rdi, 1
jne 0x140039200
mov rcx, rsi
call fcn.140117d20
nop
lea rax, vtable.ATL::CTokenGroups.0
mov qword [rbp + 0x10], rax
mov rcx, qword [rbp + 0x60]
call fcn.140117d20
lea rcx, [rbp + 0x18]
call fcn.140037d50
nop
mov qword [rbp - 0x18], r12
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x10]
test rdx, rdx
je 0x14003926a
test rcx, rcx
je 0x140039262
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 8], 0
test rcx, rcx
je 0x14003927d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x10], 0
mov edx, 8
mov rcx, qword [rbp]
call fcn.140146acc
mov al, 1
jmp 0x1400391bd
mov ecx, 0x80070057
call fcn.140038440
nop
lea rcx, [rbp + 0x10]
call fcn.140037f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
mov dword [rsp + 0x30], eax
lea rdx, [0x1401d1638]
lea rcx, [rsp + 0x30]
call fcn.140139bfc
nop
mov ecx, 0x8007000e
call fcn.140038440
int3