Function at 0x100024a50
Capabilities:
Get token membership

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xd8
mov r12, rdx
mov rbp, rcx
lea rdx, [0x100008498]
lea rcx, [rsp + 0x40]
mov r9d, 1
mov r8d, 0xa1
call fcn.10001ed8c
xor r13d, r13d
lea rcx, [rsp + 0x88]
lea r8d, [r13 + 0x40]
xor edx, edx
mov qword [rsp + 0x30], r13
mov rbx, r13
mov qword [rsp + 0x80], r13
call fcn.10002a670
mov dword [rsp + 0x118], r13d
mov dword [rsp + 0x120], 1
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x128], 1
mov dword [rsp + 0x110], r13d
mov esi, r13d
mov dword [rsp + 0x78], 0x48
cmp r12, r13
je 0x100024aee
xor eax, eax
mov rdi, r12
lea ecx, [rax + 4]
rep stosb byte [rdi], al
mov eax, 0xb0
cmp rbp, r13
jne 0x100024b0b
mov edi, 0x80070057
mov dword [rsp + 0x40], edi
mov word [rsp + 0x46], ax
jmp 0x100024de0
mov word [rsp + 0x44], ax
mov eax, 0xb1
cmp r12, r13
je 0x100024af8
mov r9d, 4
mov word [rsp + 0x44], ax
lea rax, [rsp + 0x118]
lea r8, [rsp + 0x120]
lea edx, [r9 + 0xe]
mov rcx, rbp
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r13d
jne 0x100024b63
call fcn.100020b84
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xb3
jmp 0x100024b01
cmp dword [rsp + 0x120], 3
mov eax, 0xb3
mov dword [rsp + 0x40], r13d
mov word [rsp + 0x44], ax
jne 0x100024cb3
mov edi, 8
lea rax, [rsp + 0x118]
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, r13d
jne 0x100024bc0
call fcn.100020b84
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xba
jmp 0x100024b01
mov rbx, qword [rsp + 0x38]
mov eax, 0xbd
lea r8, [rsp + 0x128]
mov word [rsp + 0x44], ax
lea rax, [rsp + 0x118]
mov r9d, 4
mov edx, edi
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x40], r13d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r13d
jne 0x100024c19
call fcn.100020b84
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc0
jmp 0x100024b01
cmp dword [rsp + 0x128], 1
mov rcx, qword [rsp + 0x30]
mov eax, 0xc0
mov word [rsp + 0x44], ax
mov dword [rsp + 0x40], r13d
jne 0x100024c81
cmp rcx, r13
je 0x100024c4d
cmp rcx, 0xffffffffffffffff
je 0x100024c4d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x30]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
cmp eax, r13d
jne 0x100024c7a
call fcn.100020b84
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xc6
jmp 0x100024b01
mov eax, 0xc6
jmp 0x100024d00
mov rax, rbx
mov qword [rsp + 0x38], rbx
mov rbx, r13
cmp rcx, r13
je 0x100024ca2
cmp rcx, 0xffffffffffffffff
je 0x100024ca2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r13
mov eax, 0xcb
jmp 0x100024d00
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x100024cce
cmp rcx, 0xffffffffffffffff
je 0x100024cce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x30]
mov edx, 2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
cmp eax, r13d
jne 0x100024cfb
call fcn.100020b84
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd0
jmp 0x100024b01
mov eax, 0xd0
xor edx, edx
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x80]
lea ecx, [rdx + 0x1a]
mov dword [rsp + 0x40], r13d
mov word [rsp + 0x44], ax
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
cmp eax, r13d
jne 0x100024d3c
call fcn.100020b84
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xd7
jmp 0x100024b01
mov rcx, qword [rsp + 0x30]
mov eax, 0xd7
lea r8, [rsp + 0x110]
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x40], r13d
mov word [rsp + 0x44], ax
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, r13d
jne 0x100024d80
call fcn.100020b84
mov edi, eax
mov dword [rsp + 0x40], eax
mov eax, 0xda
jmp 0x100024b01
mov ecx, dword [rsp + 0x120]
mov eax, 0xda
mov edi, r13d
sub ecx, 1
mov dword [rsp + 0x40], r13d
mov word [rsp + 0x44], ax
je 0x100024dcb
sub ecx, 1
je 0x100024db8
cmp ecx, 1
jne 0x100024ddc
mov eax, dword [rsp + 0x110]
neg eax
sbb esi, esi
add esi, 4
jmp 0x100024ddc
mov eax, dword [rsp + 0x110]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 6
jmp 0x100024ddc
mov eax, dword [rsp + 0x110]
neg eax
sbb esi, esi
and esi, 0xfffffffc
add esi, 5
mov dword [r12], esi
cmp rbx, r13
je 0x100024df4
cmp rbx, 0xffffffffffffffff
je 0x100024df4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
cmp rcx, r13
je 0x100024e0f
cmp rcx, 0xffffffffffffffff
je 0x100024e0f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x40]
call fcn.10001eea4
mov eax, edi
add rsp, 0xd8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret