Function at 0x1000f0780
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 [0x100176150]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, ecx
lea rsi, [0x1000381e0]
mov qword [r11 - 0x160], rsi
lea r13, [0x100038338]
mov qword [r11 - 0x158], r13
lea r12, [0x1000381c0]
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.1000e8000
nop
or qword [rsp + 0x78], 0xffffffffffffffff
lea r14, [0x10000d458]
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 0x1000f0970
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, [0x10001dc30]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x130]
call fcn.1000e97d0
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1000f0981
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea r8, [rsp + 0x78]
xor edx, edx
mov cl, 1
call fcn.1000f01c0
cmp al, dil
je 0x1000f09b1
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
jmp 0x1000f09c3
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, edi
jne 0x1000f0a69
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 0x1000f0a3a
movzx eax, cx
mov qword [rbx + rax*8 + 0x28], rdi
inc cx
jmp 0x1000f0a27
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
cmp eax, edi
cmovle r8d, eax
lea r9, [0x100038350]
mov rdx, rbx
lea rcx, [rsp + 0x130]
call fcn.1000e97d0
nop
jmp 0x1000f0a95
mov rcx, qword [rsp + 0x68]
cmp rcx, rdi
je 0x1000f0aa5
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x138], edi
jge 0x1000f0abc
lea rcx, [rsp + 0x130]
call fcn.1000e9700
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.1000e8634
nop
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1000f0b15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea rax, [0x10003a7e0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x130]
call fcn.1000e80ec
mov al, bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.100130830
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