Function at 0x140082060
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x200
mov qword [rax - 0x178], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r15, rcx
mov qword [rsp + 0x58], rcx
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], r14d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
nop dword [rax + rax]
mov esi, eax
mov dword [rsp + 0x40], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rsp + 0x30]
lea ebx, [r14 + 1]
mov r8d, ebx
lea edx, [rbx + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
mov r12d, eax
test eax, eax
jne 0x140082110
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3f0
jne 0x1400821a3
mov qword [rsp + 0x30], r14
mov r12d, ebx
lea rcx, [rsp + 0x50]
call fcn.14001dc48
nop
lea rcx, [rsp + 0x48]
call fcn.14001dc14
lea r8, [rsp + 0x38]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
lea r8, [rsp + 0x3c]
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140082177
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14008218d
mov rcx, rdi
mov rax, qword [0x14009e368]
call qword [case.0x140024a95.0]
nop
test rbx, rbx
je 0x1400821a3
mov rcx, rbx
mov rax, qword [0x14009e368]
call qword [case.0x140024a95.0]
nop
test esi, esi
js 0x1400821b3
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
test r12d, r12d
je 0x1400824a2
cmp dword [rsp + 0x38], r14d
jne 0x1400821ce
cmp dword [rsp + 0x3c], r14d
je 0x1400824a2
lea rbx, [r15 + 0x50]
lea rsi, [r15 + 0x58]
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140015be8
nop
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0xf0]
call fcn.140018434
nop
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0xb0]
call fcn.140018434
nop
lea rcx, [rsp + 0x60]
call fcn.14007c928
test eax, eax
js 0x1400823cb
xor r8d, r8d
lea rdx, [0x1400dc788]
lea rcx, [rsp + 0xb0]
call fcn.14007cb7c
test eax, eax
js 0x1400823cb
xor r8d, r8d
lea rdx, [0x1400dc790]
lea rcx, [rsp + 0xf0]
call fcn.14007cb7c
mov ebx, eax
test eax, eax
js 0x1400823cb
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.1400234e0
mov rdi, rax
test rax, rax
je 0x1400822a3
mov r9, rdi
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140023494
mov rdi, rax
lea r8, [r9 + 8]
mov rdx, qword [r9]
mov rcx, qword [r15 + 0xa0]
call fcn.14000b728
test rdi, rdi
jne 0x140082278
lea rdx, [rsp + 0xb0]
mov rcx, r15
call fcn.140078a64
lea rdx, [rsp + 0xf0]
mov rcx, r15
call fcn.140078a64
lea rdx, [0x1400dc610]
lea rcx, [rsp + 0x30]
call fcn.1400146c4
nop
mov r8, rsi
lea rdx, [0x1400dc7a0]
lea rcx, [rsp + 0x48]
call fcn.140077318
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140022bb8
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
nop
jmp 0x140082315
test ebx, ebx
js 0x1400823bc
lea rax, [rsp + 0x150]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], 0x41
mov word [rsp + 0x150], r14w
lea rax, [0x14009b690]
mov qword [rsp + 0x138], rax
lea rax, [0x14009b5a0]
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x1d8], r14d
mov qword [rsp + 0x1e0], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
mov rbx, qword [rsp + 0x30]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x130]
call fcn.140012560
test eax, eax
js 0x1400823ad
mov rdx, qword [r15 + 0x50]
lea rcx, [rsp + 0x130]
call fcn.1400598f0
nop
lea rcx, [rsp + 0x130]
call fcn.140014700
jmp 0x1400823c1
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.1400115d0
nop
mov rcx, qword [rsp + 0xe8]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
mov rcx, qword [rsp + 0xe0]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
lea rcx, [rsp + 0xb0]
call fcn.14000d9b8
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140082414
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x128]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
mov rcx, qword [rsp + 0x120]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
lea rcx, [rsp + 0xf0]
call fcn.14000d9b8
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x14008245d
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x98]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
mov rcx, qword [rsp + 0x90]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
lea rcx, [rsp + 0x60]
call fcn.14000d258
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400824a2
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14002a8b0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret