Function at 0x140081b24
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rax - 0x108], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400db348]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r15, rcx
mov qword [rsp + 0x90], rcx
xor r14d, r14d
mov r13d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], 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 + 0x30], 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 + 0x40]
lea edx, [r14 + 8]
lea r8d, [r14 + 1]
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 0x140081bdd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3f0
jne 0x140081c70
mov qword [rsp + 0x40], r14
lea r12d, [r14 + 1]
lea rcx, [rsp + 0x50]
call fcn.14001dc48
nop
lea rcx, [rsp + 0x58]
call fcn.14001dc14
lea r8, [rsp + 0x34]
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
lea r8, [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140081c44
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x140081c5a
mov rcx, rbx
mov rax, qword [0x14009e368]
call qword [case.0x140024a95.0]
nop
test rdi, rdi
je 0x140081c70
mov rcx, rdi
mov rax, qword [0x14009e368]
call qword [case.0x140024a95.0]
nop
test esi, esi
js 0x140081c80
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
nop dword [rax + rax]
test r12d, r12d
je 0x140081fae
cmp dword [rsp + 0x34], r14d
jne 0x140081c9b
cmp dword [rsp + 0x38], r14d
je 0x140081fae
lea rbx, [r15 + 0x58]
lea r8, [r15 + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.140018434
nop
mov r8b, 1
lea rdx, [0x1400dc790]
lea rcx, [rsp + 0xa0]
call fcn.14007cb7c
mov edi, eax
test eax, eax
js 0x140081f66
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call fcn.140022f64
mov rsi, rax
test rax, rax
je 0x140081e3f
mov r9, rsi
mov qword [rsp + 0x68], rsi
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.140022f0c
mov rsi, rax
lea rax, [r9 + 0x40]
mov qword [rsp + 0x80], rax
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
lea rbx, [rax - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140024a95.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x140081d51
cmp rax, qword [rbx]
jne 0x140081d51
lock inc dword [rbx + 0x10]
jmp 0x140081da5
lea r12, [rbx + 8]
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [r12]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x140024a95.0]
mov rbx, rax
test rax, rax
je 0x140081e9b
mov ecx, dword [r12]
mov dword [rax + 8], ecx
mov ecx, dword [r12]
inc ecx
movsxd rdx, ecx
add rdx, rdx
lea rcx, [rax + 0x18]
mov r9, rdx
mov r8, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
lea r12, [rbx + 0x18]
mov qword [rsp + 0x70], r12
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x5c], r14d
jne 0x140081df4
mov rax, qword [0x1400dc7b8]
mov r8d, dword [rax - 0x10]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400194a0
or r13d, 1
mov rdx, qword [0x1400dc7b8]
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
mov bl, r14b
je 0x140081df6
mov bl, 1
test r13b, 1
je 0x140081e0e
and r13d, 0xfffffffe
mov rcx, qword [rsp + 0x78]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
test bl, bl
je 0x140081e28
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa0]
call fcn.140080428
nop
lea rcx, [r12 - 0x18]
call fcn.1400115d0
test rsi, rsi
jne 0x140081cf6
lea rbx, [r15 + 0x58]
lea rdx, [rsp + 0xa0]
mov rcx, r15
call fcn.140078a64
lea rdx, [0x1400dc610]
lea rcx, [rsp + 0x48]
call fcn.1400146c4
nop
mov r8, rbx
lea rdx, [0x1400dc7a8]
lea rcx, [rsp + 0x88]
call fcn.140077318
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140022bb8
nop
mov rcx, qword [rsp + 0x88]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
nop
jmp 0x140081eb0
call fcn.140054bdc
nop
xor r14d, r14d
mov edi, dword [rsp + 0x30]
mov r15, qword [rsp + 0x90]
test edi, edi
js 0x140081f57
lea rax, [rsp + 0x110]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], 0x41
mov word [rsp + 0x110], r14w
lea rax, [0x14009b690]
mov qword [rsp + 0xf8], rax
lea rax, [0x14009b5a0]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x198], r14d
mov qword [rsp + 0x1a0], r14
mov qword [rsp + 0x20], r14
mov r9d, 0x2001f
mov rbx, qword [rsp + 0x48]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xf0]
call fcn.140012560
test eax, eax
js 0x140081f48
mov rdx, qword [r15 + 0x50]
lea rcx, [rsp + 0xf0]
call fcn.1400598f0
nop
lea rcx, [rsp + 0xf0]
call fcn.140014700
jmp 0x140081f5c
mov rbx, qword [rsp + 0x48]
lea rcx, [rbx - 0x18]
call fcn.1400115d0
nop
mov rcx, qword [rsp + 0xd8]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
mov rcx, qword [rsp + 0xd0]
add rcx, 0xffffffffffffffe8
call fcn.1400115d0
lea rcx, [rsp + 0xa0]
call fcn.14000d9b8
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x140081fae
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14002a8b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret