Function at 0x1000f03ac
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
push r12
push r13
push r14
sub rsp, 0x1d0
mov qword [rsp + 0x1a0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x100175150]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, ecx
lea rsi, [0x100038090]
mov qword [r11 - 0x160], rsi
lea r13, [0x1000381e8]
mov qword [r11 - 0x158], r13
lea r12, [0x100038070]
mov qword [r11 - 0x150], r12
mov dword [rsp + 0xa0], 0xdd
mov dword [rsp + 0xa4], 0xb
mov dword [rsp + 0xa8], 0xff
xor edi, edi
mov word [rsp + 0x128], di
mov byte [rsp + 0x12a], dil
mov byte [rsp + 0x12b], 1
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [r11 - 0x138]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x130]
call fcn.1000e7c38
nop
or qword [rsp + 0x78], 0xffffffffffffffff
lea r14, [0x10000d460]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x1b8], dil
mov byte [rsp + 0x1b9], dil
mov byte [rsp + 0x1ba], dil
mov byte [rsp + 0x1bb], dil
mov byte [rsp + 0x1bc], dil
mov byte [rsp + 0x1bd], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9d, ebx
lea r8d, [rdi + 0x20]
mov dl, 2
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, edi
jne 0x1000f059c
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r12
mov dword [rsp + 0xa0], 0xf9
mov dword [rsp + 0xa4], 0xb
mov dword [rsp + 0xa8], 0xff
mov word [rsp + 0x128], di
mov byte [rsp + 0x12a], dil
mov byte [rsp + 0x12b], 1
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0xb0]
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
cmp eax, edi
cmovle r8d, eax
lea r9, [0x10001dae0]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x130]
call fcn.1000e9408
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1000f05ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea r8, [rsp + 0x78]
xor edx, edx
mov cl, 1
call fcn.1000efdec
cmp al, dil
je 0x1000f05dd
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
jmp 0x1000f05ef
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, edi
jne 0x1000f0695
lea rbx, [rsp + 0x88]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r12
mov dword [rsp + 0xa0], 0x119
mov dword [rsp + 0xa4], 0xb
mov dword [rsp + 0xa8], 0xff
mov word [rsp + 0x128], di
mov byte [rsp + 0x12a], dil
mov byte [rsp + 0x12b], 1
movzx ecx, di
cmp cx, 0xf
jae 0x1000f0666
movzx eax, cx
mov qword [rbx + rax*8 + 0x28], rdi
inc cx
jmp 0x1000f0653
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
cmp eax, edi
cmovle r8d, eax
lea r9, [0x100038200]
mov rdx, rbx
lea rcx, [rsp + 0x130]
call fcn.1000e9408
nop
jmp 0x1000f06c1
mov rcx, qword [rsp + 0x68]
cmp rcx, rdi
je 0x1000f06d1
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x138], edi
jge 0x1000f06e8
lea rcx, [rsp + 0x130]
call fcn.1000e9338
int3
cmp dword [rsp + 0x60], edi
setne bl
lea rcx, [0x100008430]
lea rax, [0x100008440]
cmp bl, dil
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, [0x100008450]
mov r8d, 0xaa
lea rdx, [0x100008420]
lea rcx, [rsp + 0x130]
call fcn.1000e826c
nop
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1000f0741
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea rax, [0x10000d450]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x130]
call fcn.1000e7d24
mov al, bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1001303c0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret