Function at 0x1000f0d68
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, [0x100038350]
mov qword [r11 - 0x160], rsi
lea r13, [0x1000384a8]
mov qword [r11 - 0x158], r13
lea r12, [0x100038330]
mov qword [r11 - 0x150], r12
mov dword [rsp + 0xa0], 0xdd
mov dword [rsp + 0xa4], reloc.VssTrace.DLL_Ordinal_11
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.1000e842c
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 0x1000f0f58
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r12
mov dword [rsp + 0xa0], 0xf9
mov dword [rsp + 0xa4], reloc.VssTrace.DLL_Ordinal_11
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, [0x10001dc20]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x130]
call fcn.1000e9bfc
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1000f0f69
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea r8, [rsp + 0x78]
xor edx, edx
mov cl, 1
call fcn.1000f07a8
cmp al, dil
je 0x1000f0f99
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
jmp 0x1000f0fab
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, edi
jne 0x1000f1051
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], reloc.VssTrace.DLL_Ordinal_11
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 0x1000f1022
movzx eax, cx
mov qword [rbx + rax*8 + 0x28], rdi
inc cx
jmp 0x1000f100f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
cmp eax, edi
cmovle r8d, eax
lea r9, [0x1000384c0]
mov rdx, rbx
lea rcx, [rsp + 0x130]
call fcn.1000e9bfc
nop
jmp 0x1000f107d
mov rcx, qword [rsp + 0x68]
cmp rcx, rdi
je 0x1000f108d
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x138], edi
jge 0x1000f10a4
lea rcx, [rsp + 0x130]
call fcn.1000e9b2c
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.1000e8a60
nop
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x1000f10fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea rax, [0x1000228b8]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x130]
call fcn.1000e8518
mov al, bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.100130df0
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