Function at 0x140110bd0
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12d, edx
mov r14, rcx
mov dword [rbp - 8], 0
mov word [rbp - 4], 0x500
xor edi, edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov r8, qword [sym.imp.ADVAPI32.dll_FreeSid]
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.140110b50
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140018c90
nop
lea rax, [rsp + 0x70]
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, 0x220
lea r8d, [rdi + 0x20]
mov dl, 2
lea rcx, [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140110cca
mov rdi, qword [rbp - 0x80]
test rdi, rdi
je 0x140110d2a
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140110d2a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140110d2a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov eax, 0x80004005
jmp 0x140110df6
mov dword [rsp + 0x60], edi
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140110ce6
jmp 0x140110c82
cmp dword [rsp + 0x60], 0
setne r15b
mov rsi, qword [rbp - 0x80]
test rsi, rsi
je 0x140110d25
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140110d25
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
lock xadd dword [rsi + 0xc], ebx
cmp ebx, 1
jne 0x140110d25
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test r15b, r15b
jne 0x140110d34
mov eax, 0x80004005
jmp 0x140110df6
mov qword [rsp + 0x68], rdi
cmp qword [rsp + 0x68], 0
jne 0x140110e1e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp qword [rsp + 0x68], 0
je 0x140110dbb
cmp qword [r14 + 0x18], 8
jb 0x140110d70
mov r14, qword [r14]
lea r8, [rbp - 0x78]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140110dbb
mov dword [rbp], 1
mov rax, qword [rbp - 0x78]
mov qword [rbp + 4], rax
mov dword [rbp + 0xc], r12d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, [rbp]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140110dd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140110de4
movzx edi, ax
or edi, 0x80070000
jmp 0x140110de4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x140110de4
mov edi, 0x80070514
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140110df4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400bf400
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
lea edx, [rax + 1]
lea rcx, [rbp - 0x70]
call fcn.1400617b0
mov rbx, rax
mov dword [rsp + 0x20], edi
lea r9, [0x140139080]
mov r8d, 0xd2
lea rdx, str.f:ckp_srcza_commonzang_04_003_srcincludelibutil_autoclose.h
lea rcx, [rbp - 0x20]
call fcn.14000a5a0
mov rdx, rax
mov rcx, rbx
call fcn.140060280
int3