Function at 0x14017815c
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
mov eax, 0x110
call fcn.14024eae0
sub rsp, rax
mov rax, qword [0x14035d028]
xor rax, rsp
mov qword [rsp + 0x100], rax
cmp dword [0x140367c48], 0x25
jne 0x140178633
xor edi, edi
mov dword [rsp + 0x38], edi
lea ebx, [rdi + 0x44]
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], ebx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xb0]
xor edx, edx
lea ecx, [rdi + 0x16]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1401781f7
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x38]
jmp 0x1401781fb
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x140178633
lea rcx, [rsp + 0x38]
call fcn.140149520
mov r14d, edi
lea rcx, [rsp + 0x68]
call fcn.14016e740
cmp qword [rax + 0x18], 0x10
jb 0x140178224
mov rax, qword [rax]
mov rcx, rax
call fcn.140177814
mov ebx, eax
lea rcx, [rsp + 0x68]
call fcn.14000fd30
call fcn.14017a428
lea rcx, [0x14036d970]
lea rax, [0x14036dba0]
cmp dword [rcx], ebx
je 0x14017825b
add rcx, 0x28
cmp rcx, rax
jne 0x14017824b
mov rcx, rax
cmp rcx, rax
je 0x140178266
mov rbx, qword [rcx + 0x20]
jmp 0x140178269
mov rbx, rdi
test rbx, rbx
jne 0x140178279
mov r14d, 0x22609886
jmp 0x1401785b5
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov r15d, 7
mov qword [rsp + 0x80], r15
mov word [rsp + 0x68], di
lea rdx, str.SOFTWAREMicrosoftOfficeCommon
lea rcx, [rsp + 0x68]
call fcn.14000ae4c
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x68]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0xb0]
call fcn.14000a58c
mov rax, qword [rsp + 0x80]
mov esi, 0x1000
cmp rax, 8
jb 0x14017830e
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
cmp rax, rsi
jb 0x140178308
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140178308
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], r15
mov word [rsp + 0x68], di
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r15
mov word [rsp + 0x48], di
lea rdx, str.OfficeInsiderConfiguration
lea rcx, [rsp + 0x48]
call fcn.14000ae4c
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r15
mov word [rsp + 0x88], di
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.1400108e0
test al, al
je 0x140178470
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.140048028
test al, al
jne 0x140178470
mov rax, qword [rsp + 0xa0]
cmp rax, 8
jb 0x1401783e0
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
cmp rax, rsi
jb 0x1401783da
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x140178529
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r15
mov word [rsp + 0x88], di
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x140178433
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
cmp rax, rsi
jb 0x14017842d
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14017857f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r15
mov word [rsp + 0x48], di
lea rcx, [rsp + 0xb0]
call fcn.14000a6c8
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14017846b
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
jmp 0x140178633
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], r15
mov word [rsp + 0x68], di
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14000ae4c
nop
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.1400121ec
nop
mov rax, qword [rsp + 0x80]
cmp rax, 8
jb 0x1401784f2
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rdx, rcx
cmp rax, rsi
jb 0x1401784eb
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1401784eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rsp + 0xa0]
cmp rax, 8
jb 0x140178536
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
cmp rax, rsi
jb 0x140178530
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140178530
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r15
mov word [rsp + 0x88], di
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x14017858c
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
cmp rax, rsi
jb 0x140178586
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140178586
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r15
mov word [rsp + 0x48], di
lea rcx, [rsp + 0xb0]
call fcn.14000a6c8
jmp 0x1401785b5
mov r8d, r14d
lea rdx, str.FailureTag
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14016eef8
mov word [rsp + 0x30], 0x101
mov dword [rsp + 0x32], 0x60101
mov word [rsp + 0x36], 0x64
lea rax, [0x14027d608]
mov qword [rsp + 0x48], rax
lea rax, [0x1402fef20]
mov qword [rsp + 0x50], rax
lea rax, str.ExportOfficeInsiderState
mov qword [rsp + 0x58], rax
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14017a264
test rbx, rbx
je 0x140178633
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14004a846.0]
nop
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14024c6d0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret