Function at 0x18001f650
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 [0x18004d040]
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 0x18001f6d9
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 0x18001f6ee
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test bl, bl
jne 0x18001f9dd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rcx, qword [rbp + 0x98]
test eax, eax
js 0x18001fa0a
mov qword [rbp + 0x68], rsi
lea rcx, [rbp + 0x68]
call fcn.1800212ec
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 0x18001f82e
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.180012840
jmp 0x18001f9c3
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.180021448
mov rdx, qword [rax]
test rdx, rdx
je 0x18001f854
mov rdx, qword [rdx]
jmp 0x18001f857
mov rdx, rsi
lea r8, [rbp + 0x70]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.1800213d4
test ebx, ebx
jns 0x18001f883
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.180012840
jmp 0x18001f9b3
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.180021344
mov rdx, qword [rax]
test rdx, rdx
je 0x18001f8b0
mov rdx, qword [rdx]
jmp 0x18001f8b3
mov rdx, rsi
lea r8, [rbp + 0x60]
mov rcx, rbx
call rdi
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.1800213d4
cmp ebx, 0x80070002
jne 0x18001f8d7
mov ebx, 0x80070424
jmp 0x18001f902
test ebx, ebx
js 0x18001f902
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 0x18001f8f7
mov edx, eax
jmp 0x18001f904
cmp word [rbp + 0x58], si
jne 0x18001f915
mov ebx, 0x80041326
mov edx, ebx
mov rcx, qword [rbp + 0x98]
call fcn.180012840
jmp 0x18001f9a3
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.1800213d4
test ebx, ebx
jns 0x18001f991
mov rcx, qword [rbp + 0x98]
mov edx, ebx
call fcn.180012840
jmp 0x18001f993
mov ebx, esi
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x18001f9a3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x18001f9b3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x18001f9c3
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x18001f9d3
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x18001f9e2
call fcn.180014700
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180031670
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.18000abb4
int3