Function at 0x100019920
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, [0x1000072b8]
lea rcx, [rsp + 0x40]
mov r9d, 1
mov r8d, 0xa1
call fcn.100018110
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 0x1000199da
mov edi, 0x80070057
mov eax, 0xb0
mov dword [rsp + 0x40], edi
mov word [rsp + 0x46], ax
jmp 0x100019ca7
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 0x100019a28
call fcn.100019734
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xb3
jmp 0x1000199d0
cmp dword [rsp + 0x110], 3
mov eax, 0xb3
mov dword [rsp + 0x40], r12d
mov word [rsp + 0x44], ax
jne 0x100019b78
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 0x100019a85
call fcn.100019734
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xba
jmp 0x1000199d0
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 0x100019ade
call fcn.100019734
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc0
jmp 0x1000199d0
cmp dword [rsp + 0x118], 1
mov rcx, qword [rsp + 0x30]
mov eax, 0xc0
mov word [rsp + 0x44], ax
mov dword [rsp + 0x40], r12d
jne 0x100019b46
cmp rcx, r12
je 0x100019b12
cmp rcx, 0xffffffffffffffff
je 0x100019b12
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 0x100019b3f
call fcn.100019734
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc6
jmp 0x1000199d0
mov eax, 0xc6
jmp 0x100019bc5
mov rax, rbx
mov qword [rsp + 0x38], rbx
mov rbx, r12
cmp rcx, r12
je 0x100019b67
cmp rcx, 0xffffffffffffffff
je 0x100019b67
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 0x100019bc5
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x100019b93
cmp rcx, 0xffffffffffffffff
je 0x100019b93
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 0x100019bc0
call fcn.100019734
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd0
jmp 0x1000199d0
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 0x100019c01
call fcn.100019734
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd7
jmp 0x1000199d0
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 0x100019c45
call fcn.100019734
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xda
jmp 0x1000199d0
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 0x100019c90
sub ecx, 1
je 0x100019c7d
cmp ecx, 1
jne 0x100019ca1
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
add esi, 4
jmp 0x100019ca1
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 6
jmp 0x100019ca1
mov eax, dword [rsp + 0x108]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 5
mov dword [0x100020b58], esi
cmp rbx, r12
je 0x100019cbb
cmp rbx, 0xffffffffffffffff
je 0x100019cbb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x100019cd6
cmp rcx, 0xffffffffffffffff
je 0x100019cd6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x40]
call fcn.100018228
mov eax, edi
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret