Function at 0x10000e99c
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov rbp, rcx
lea rdx, [0x100006dd0]
lea rcx, [rsp + 0x40]
mov r9d, 1
mov r8d, 0xa1
call fcn.10000cb94
xor r12d, r12d
lea rcx, [rsp + 0x88]
lea r8d, [r12 + 0x40]
xor edx, edx
mov qword [rsp + 0x30], r12
mov rbx, r12
mov qword [rsp + 0x80], r12
call sub.msvcrt.dll_memset
xor eax, eax
lea rdi, [0x10002954c]
mov dword [rsp + 0x100], r12d
lea ecx, [rax + 4]
mov dword [rsp + 0x110], 1
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x118], 1
mov dword [rsp + 0x108], r12d
mov esi, r12d
mov dword [rsp + 0x78], 0x48
rep stosb byte [rdi], al
cmp rbp, r12
jne 0x10000ea56
mov edi, 0x80070057
mov eax, 0xb0
mov dword [rsp + 0x40], edi
mov word [rsp + 0x46], ax
jmp 0x10000ed23
mov eax, 0xb1
mov r9d, 4
lea r8, [rsp + 0x110]
mov word [rsp + 0x44], ax
lea rax, [rsp + 0x100]
lea edx, [r9 + 0xe]
mov rcx, rbp
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
jne 0x10000eaa4
call fcn.10000e4b0
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xb3
jmp 0x10000ea4c
cmp dword [rsp + 0x110], 3
mov eax, 0xb3
mov dword [rsp + 0x40], r12d
mov word [rsp + 0x44], ax
jne 0x10000ebf4
mov edi, 8
lea rax, [rsp + 0x100]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0xb]
mov r9d, edi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
jne 0x10000eb01
call fcn.10000e4b0
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xba
jmp 0x10000ea4c
mov rbx, qword [rsp + 0x38]
mov eax, 0xbd
lea r8, [rsp + 0x118]
mov word [rsp + 0x44], ax
lea rax, [rsp + 0x100]
mov r9d, 4
mov edx, edi
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r12d
jne 0x10000eb5a
call fcn.10000e4b0
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc0
jmp 0x10000ea4c
cmp dword [rsp + 0x118], 1
mov rcx, qword [rsp + 0x30]
mov eax, 0xc0
mov word [rsp + 0x44], ax
mov dword [rsp + 0x40], r12d
jne 0x10000ebc2
cmp rcx, r12
je 0x10000eb8e
cmp rcx, 0xffffffffffffffff
je 0x10000eb8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x30]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
cmp eax, r12d
jne 0x10000ebbb
call fcn.10000e4b0
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc6
jmp 0x10000ea4c
mov eax, 0xc6
jmp 0x10000ec41
mov rax, rbx
mov qword [rsp + 0x38], rbx
mov rbx, r12
cmp rcx, r12
je 0x10000ebe3
cmp rcx, 0xffffffffffffffff
je 0x10000ebe3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r12
mov eax, 0xcb
jmp 0x10000ec41
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x10000ec0f
cmp rcx, 0xffffffffffffffff
je 0x10000ec0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x30]
mov edx, 2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
cmp eax, r12d
jne 0x10000ec3c
call fcn.10000e4b0
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd0
jmp 0x10000ea4c
mov eax, 0xd0
xor edx, edx
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x80]
lea ecx, [rdx + 0x1a]
mov dword [rsp + 0x40], r12d
mov word [rsp + 0x44], ax
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
cmp eax, r12d
jne 0x10000ec7d
call fcn.10000e4b0
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd7
jmp 0x10000ea4c
mov rcx, qword [rsp + 0x30]
mov eax, 0xd7
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x40], r12d
mov word [rsp + 0x44], ax
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, r12d
jne 0x10000ecc1
call fcn.10000e4b0
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xda
jmp 0x10000ea4c
mov ecx, dword [rsp + 0x110]
mov eax, 0xda
mov edi, r12d
sub ecx, 1
mov dword [rsp + 0x40], r12d
mov word [rsp + 0x44], ax
je 0x10000ed0c
sub ecx, 1
je 0x10000ecf9
cmp ecx, 1
jne 0x10000ed1d
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
add esi, 4
jmp 0x10000ed1d
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 6
jmp 0x10000ed1d
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 5
mov dword [0x10002954c], esi
cmp rbx, r12
je 0x10000ed37
cmp rbx, 0xffffffffffffffff
je 0x10000ed37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x10000ed52
cmp rcx, 0xffffffffffffffff
je 0x10000ed52
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x40]
call fcn.10000ccac
mov eax, edi
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret