Function at 0x100019940
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, [0x1000072d8]
lea rcx, [rsp + 0x40]
mov r9d, 1
mov r8d, 0xa1
call fcn.100018130
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, [0x100020b58]
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 0x1000199fa
mov edi, 0x80070057
mov eax, 0xb0
mov dword [rsp + 0x40], edi
mov word [rsp + 0x46], ax
jmp 0x100019cc7
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 0x100019a48
call fcn.100019754
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xb3
jmp 0x1000199f0
cmp dword [rsp + 0x110], 3
mov eax, 0xb3
mov dword [rsp + 0x40], r12d
mov word [rsp + 0x44], ax
jne 0x100019b98
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 0x100019aa5
call fcn.100019754
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xba
jmp 0x1000199f0
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 0x100019afe
call fcn.100019754
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc0
jmp 0x1000199f0
cmp dword [rsp + 0x118], 1
mov rcx, qword [rsp + 0x30]
mov eax, 0xc0
mov word [rsp + 0x44], ax
mov dword [rsp + 0x40], r12d
jne 0x100019b66
cmp rcx, r12
je 0x100019b32
cmp rcx, 0xffffffffffffffff
je 0x100019b32
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 0x100019b5f
call fcn.100019754
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc6
jmp 0x1000199f0
mov eax, 0xc6
jmp 0x100019be5
mov rax, rbx
mov qword [rsp + 0x38], rbx
mov rbx, r12
cmp rcx, r12
je 0x100019b87
cmp rcx, 0xffffffffffffffff
je 0x100019b87
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 0x100019be5
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x100019bb3
cmp rcx, 0xffffffffffffffff
je 0x100019bb3
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 0x100019be0
call fcn.100019754
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd0
jmp 0x1000199f0
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 0x100019c21
call fcn.100019754
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd7
jmp 0x1000199f0
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 0x100019c65
call fcn.100019754
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xda
jmp 0x1000199f0
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 0x100019cb0
sub ecx, 1
je 0x100019c9d
cmp ecx, 1
jne 0x100019cc1
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
add esi, 4
jmp 0x100019cc1
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 6
jmp 0x100019cc1
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 5
mov dword [0x100020b58], esi
cmp rbx, r12
je 0x100019cdb
cmp rbx, 0xffffffffffffffff
je 0x100019cdb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x100019cf6
cmp rcx, 0xffffffffffffffff
je 0x100019cf6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x40]
call fcn.100018248
mov eax, edi
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret