Function at 0x1401998b0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1402be5c8]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rdx
mov qword [rbp + 0x17], rdx
xor edi, edi
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x3f], rdi
mov qword [rbp + 0x47], 7
mov word [rbp + 0x2f], di
lea r8d, [rdi + 5]
lea rdx, str.error
lea rcx, [rbp + 0x2f]
call fcn.140018360
nop
mov dword [rbp + 0x23], edi
mov word [rbp + 0x27], 0x500
lea rax, [rbp + 0x17]
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 + 0x23]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x1f], eax
test eax, eax
je 0x1401999a1
lea r8, [rbp + 0x1f]
mov rdx, qword [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140199967
mov dword [rbp + 0x1f], edi
jmp 0x14019997d
mov r8d, 0xd
lea rdx, str.administrator
lea rcx, [rbp + 0x2f]
call fcn.140018360
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x1f], 0
je 0x1401999a1
movups xmm0, xmmword [rbp + 0x2f]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x3f]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140199abc
lea rax, [rbp + 0x17]
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, 0x201
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x23]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x1f], eax
test eax, eax
je 0x140199a34
lea r8, [rbp + 0x1f]
mov rdx, qword [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1401999fa
mov dword [rbp + 0x1f], edi
jmp 0x140199a10
mov r8d, 4
lea rdx, str.user
lea rcx, [rbp + 0x2f]
call fcn.140018360
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x1f], 0
je 0x140199a34
movups xmm0, xmmword [rbp + 0x2f]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x3f]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140199abc
lea rax, [rbp + 0x17]
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, 0x202
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x23]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x1f], eax
test eax, eax
je 0x140199aad
lea r8, [rbp + 0x1f]
mov rdx, qword [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140199a8d
mov dword [rbp + 0x1f], edi
jmp 0x140199aa3
mov r8d, 4
lea rdx, str.user
lea rcx, [rbp + 0x2f]
call fcn.140018360
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movups xmm0, xmmword [rbp + 0x2f]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x3f]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1401a9440
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret