Function at 0x180011e04
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 [0x180034040]
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 0x180011e8d
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 0x180011ea2
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test bl, bl
jne 0x180012191
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rcx, qword [rbp + 0x98]
test eax, eax
js 0x1800121be
mov qword [rbp + 0x68], rsi
lea rcx, [rbp + 0x68]
call fcn.180013a30
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 0x180011fe2
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.18000211c
jmp 0x180012177
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.180013d64
mov rdx, qword [rax]
test rdx, rdx
je 0x180012008
mov rdx, qword [rdx]
jmp 0x18001200b
mov rdx, rsi
lea r8, [rbp + 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.180013cf0
test ebx, ebx
jns 0x180012037
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.18000211c
jmp 0x180012167
mov rbx, qword [rbp + 0x70]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x68]
mov qword [rbp + 0x60], rsi
lea rdx, str.OpenGlass_Legacy_Host
lea rcx, [rsp + 0x60]
call fcn.180013c60
mov rdx, qword [rax]
test rdx, rdx
je 0x180012064
mov rdx, qword [rdx]
jmp 0x180012067
mov rdx, rsi
lea r8, [rbp + 0x60]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.180013cf0
cmp ebx, 0x80070002
jne 0x18001208b
mov ebx, 0x80070424
jmp 0x1800120b6
test ebx, ebx
js 0x1800120b6
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 0x1800120ab
mov edx, eax
jmp 0x1800120b8
cmp word [rbp + 0x58], si
jne 0x1800120c9
mov ebx, 0x80041326
mov edx, ebx
mov rcx, qword [rbp + 0x98]
call fcn.18000211c
jmp 0x180012157
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.180013cf0
test ebx, ebx
jns 0x180012145
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.18000211c
jmp 0x180012147
mov ebx, esi
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x180012157
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x180012167
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x180012177
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x180012187
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x180012196
call fcn.18000f2cc
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180022510
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.18000a404
int3