Function at 0x18001bbf4
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov rax, qword [0x180048040]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor esi, esi
mov dword [rbp + 0x58], esi
mov dword [rbp + 0x60], esi
mov word [rbp + 0x64], 0x500
mov qword [rbp + 0x68], rsi
lea rax, [rbp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8d, [rsi + 0x12]
mov dl, 1
lea rcx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x18001bc7d
lea r8, [rbp + 0x58]
mov rdx, qword [rbp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [rbp + 0x58], esi
setne bl
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x18001bc92
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test bl, bl
jne 0x18001bf81
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rcx, qword [rbp + 0x98]
test eax, eax
js 0x18001bfae
mov qword [rbp + 0x68], rsi
lea rcx, [rbp + 0x68]
call fcn.18001d8a8
mov rbx, qword [rbp + 0x68]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x50]
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [rsp + 0x78]
movsd qword [rbp - 0x80], xmm0
lea rcx, [rbp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [rbp + 0x50]
movsd qword [rbp - 0x78], xmm0
lea rcx, [rbp + 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rbp + 0x28]
movups xmmword [rbp - 0x10], xmm0
movsd xmm0, qword [rbp + 0x38]
movsd qword [rsp + 0x60], xmm0
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [rbp - 0x80]
movsd qword [rbp - 0x40], xmm0
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [rbp - 0x78]
movsd qword [rbp - 0x20], xmm0
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x10], xmm0
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp], xmm0
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp - 0x70], xmm0
movsd xmm1, qword [rbp + 0x20]
movsd qword [rbp - 0x60], xmm1
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jns 0x18001bdd2
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.18001020c
jmp 0x18001bf67
mov rbx, qword [rbp + 0x68]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x38]
mov qword [rbp + 0x70], rsi
lea rcx, [rsp + 0x60]
call fcn.18001da04
mov rdx, qword [rax]
test rdx, rdx
je 0x18001bdf8
mov rdx, qword [rdx]
jmp 0x18001bdfb
mov rdx, rsi
lea r8, [rbp + 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.18001d990
test ebx, ebx
jns 0x18001be27
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.18001020c
jmp 0x18001bf57
mov rbx, qword [rbp + 0x70]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x68]
mov qword [rbp + 0x60], rsi
lea rdx, str.OpenGlass_Host
lea rcx, [rsp + 0x60]
call fcn.18001d900
mov rdx, qword [rax]
test rdx, rdx
je 0x18001be54
mov rdx, qword [rdx]
jmp 0x18001be57
mov rdx, rsi
lea r8, [rbp + 0x60]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.18001d990
cmp ebx, 0x80070002
jne 0x18001be7b
mov ebx, 0x80070424
jmp 0x18001bea6
test ebx, ebx
js 0x18001bea6
mov word [rbp + 0x58], si
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
lea rdx, [rbp + 0x58]
call qword [rax + 0x50]
mov ebx, eax
test eax, eax
jns 0x18001be9b
mov edx, eax
jmp 0x18001bea8
cmp word [rbp + 0x58], si
jne 0x18001beb9
mov ebx, 0x80041326
mov edx, ebx
mov rcx, qword [rbp + 0x98]
call fcn.18001020c
jmp 0x18001bf47
mov rbx, qword [rbp + 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x68]
mov qword [rbp + 0x78], rsi
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rbp - 0x70], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd qword [rbp - 0x60], xmm1
lea rax, [rbp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x60]
call fcn.18001d990
test ebx, ebx
jns 0x18001bf35
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.18001020c
jmp 0x18001bf37
mov ebx, esi
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x18001bf47
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x18001bf57
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x18001bf67
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x18001bf77
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x18001bf86
call fcn.18000e5dc
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.18002dc90
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov edx, eax
call fcn.18000acc8
int3