Function at 0x140005e50
Capabilities:
List groups for user account

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x140056fb0]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
xor r14d, r14d
xor eax, eax
mov rbx, rcx
lea rcx, [rbp - 0x28]
xor edx, edx
mov r8d, 0x7f8
mov dword [rbp - 0x68], r14d
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 [rsp + 0x48], r14
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x50], r14
mov qword [rbp - 0x30], r14
call fcn.14000b810
lea r9, [rsp + 0x70]
lea rdx, [rbp - 0x68]
mov r8d, 0xf0fff
xor ecx, ecx
mov r15d, r14d
call sub.ADVAPI32.dll_LsaOpenPolicy
mov edi, eax
test eax, eax
je 0x140005eff
lea rcx, str.Error_opening_LSA_policy_database:_n
call fcn.14000adf8
mov ecx, edi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ecx, eax
call fcn.140005190
jmp 0x140006572
movzx eax, word [rbx]
mov qword [rsp + 0x918], rsi
cmp ax, word [0x140028838]
jne 0x140005f24
movzx eax, word [rbx + 2]
cmp ax, word [0x14002883a]
je 0x14000602e
cmp word [rbx], r14w
je 0x14000602e
mov qword [rsp + 0x60], rbx
or rsi, 0xffffffffffffffff
nop word [rax + rax]
inc rsi
cmp word [rbx + rsi*2], r14w
jne 0x140005f40
mov rcx, qword [rsp + 0x70]
add si, si
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov word [rsp + 0x5a], si
mov word [rsp + 0x58], si
call sub.ADVAPI32.dll_LsaEnumerateAccountsWithUserRight
mov edi, eax
test eax, eax
je 0x140005fb2
mov rdx, qword [rsp + 0x60]
cmp eax, 0x8000001a
jne 0x140005f93
lea rcx, str.No_accounts_granted_the__s_right._n
call fcn.14000adf8
jmp 0x140006551
lea rcx, str.Error_enumerating_account_rights_for__s:_n
call fcn.14000adf8
mov ecx, edi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ecx, eax
call fcn.140005190
jmp 0x140006551
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x140006024
nop word [rax + rax]
cmp qword [0x140058b30], r15
jne 0x140005fef
mov rcx, qword [rsp + 0x48]
inc dword [0x140058b14]
mov eax, r14d
mov rcx, qword [rcx + rax*8]
lea rdx, [rsp + 0x50]
xor r8d, r8d
call fcn.140002ba0
mov rdx, qword [rsp + 0x50]
jmp 0x14000600c
mov rax, qword [rsp + 0x48]
mov ecx, edx
mov rcx, qword [rax + rcx*8]
cmp qword [0x140058b30], rcx
jne 0x14000601c
inc dword [0x140058b14]
mov rdx, rbx
lea rcx, str._t_s_n
call fcn.14000adf8
mov edx, dword [rsp + 0x40]
inc r14d
cmp r14d, edx
jb 0x140005fc0
mov rcx, qword [rsp + 0x48]
jmp 0x14000654c
inc dword [0x140058b14]
cmp qword [0x140058b30], r14
jne 0x1400062f6
mov dword [rsp + 0x68], r14d
or rsi, 0xffffffffffffffff
nop word [rax + rax]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x68]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x40], r14d
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x1400061e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400061e9
mov ecx, dword [rsp + 0x40]
inc ecx
add rcx, rcx
call fcn.14000ac7c
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x68]
mov r8, rax
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x1400061e1
lea rax, [rbp - 0x70]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeDisplayNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006108
mov ecx, dword [rsp + 0x40]
inc ecx
add rcx, rcx
call fcn.14000ac7c
lea r9, [rsp + 0x40]
mov rdx, rdi
mov r15, rax
lea rax, [rbp - 0x70]
xor ecx, ecx
mov r8, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeDisplayNameW]
lea r8, str.Display_name_unavailable
test r15, r15
lea rcx, str.___s___s_:_n
cmovne r8, r15
mov rdx, rdi
call fcn.14000adf8
test r15, r15
je 0x140006132
mov rcx, r15
call fcn.14000ac3c
mov qword [rsp + 0x60], rdi
mov rax, rsi
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], r14w
jne 0x140006140
mov rcx, qword [rsp + 0x70]
add ax, ax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov word [rsp + 0x5a], ax
mov word [rsp + 0x58], ax
call sub.ADVAPI32.dll_LsaEnumerateAccountsWithUserRight
mov ecx, eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ebx, eax
test eax, eax
je 0x14000619e
cmp eax, 0x103
je 0x1400061e1
mov rdx, qword [rsp + 0x60]
lea rcx, str.Error_enumerating_account_rights_for__s:_n
call fcn.14000adf8
mov ecx, ebx
call fcn.140005190
jmp 0x1400061e1
mov ebx, r14d
cmp dword [rsp + 0x40], ebx
jbe 0x1400061e1
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
mov eax, ebx
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx + rax*8]
xor r8d, r8d
call fcn.140002ba0
mov rdx, qword [rsp + 0x50]
lea rcx, str._t_s_n
call fcn.14000adf8
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1400061b0
mov rcx, rdi
call fcn.14000ac3c
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
cmp eax, 0x100
jb 0x140006050
mov edi, r14d
cmp qword [str.SeBatchLogonRight], rdi
je 0x140006551
lea r15, str.SeBatchLogonRight
mov rbx, r15
nop dword [rax + rax]
mov rdx, qword [rbx]
lea rcx, str.___s:_n
call fcn.14000adf8
mov rcx, qword [rbx]
mov rax, rsi
mov qword [rsp + 0x60], rcx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140006240
mov rcx, qword [rsp + 0x70]
add ax, ax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov word [rsp + 0x5a], ax
mov word [rsp + 0x58], ax
call sub.ADVAPI32.dll_LsaEnumerateAccountsWithUserRight
mov ecx, eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ebx, eax
test eax, eax
je 0x14000629e
cmp eax, 0x103
je 0x1400062e1
mov rdx, qword [rsp + 0x60]
lea rcx, str.Error_enumerating_account_rights_for__s:_n
call fcn.14000adf8
mov ecx, ebx
call fcn.140005190
jmp 0x1400062e1
mov ebx, r14d
cmp dword [rsp + 0x40], ebx
jbe 0x1400062e1
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
mov eax, ebx
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx + rax*8]
xor r8d, r8d
call fcn.140002ba0
mov rdx, qword [rsp + 0x50]
lea rcx, str._t_s_n
call fcn.14000adf8
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1400062b0
inc edi
cmp qword [r15 + rdi*8], r14
lea rbx, [r15 + rdi*8]
jne 0x140006220
jmp 0x140006551
mov rdx, qword [0x140058b38]
lea rax, [rbp - 0x6c]
mov r9d, 1
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x78]
xor ecx, ecx
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rax
call sub.NETAPI32.dll_NetUserGetLocalGroups
mov ebx, eax
test eax, eax
jne 0x1400064a2
cmp dword [rsp + 0x40], r14d
jbe 0x14000644e
mov qword [rsp + 0x920], r12
nop
mov rcx, qword [rbp - 0x78]
mov eax, r15d
lea rbx, [rax*8]
mov rcx, qword [rbx + rcx]
call fcn.140003cd0
mov r12, rax
test rax, rax
je 0x140006438
mov rcx, qword [rsp + 0x70]
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x78]
mov rdx, rax
call sub.ADVAPI32.dll_LsaEnumerateAccountRights
mov edi, eax
test eax, eax
je 0x1400063b4
mov rdx, qword [rbp - 0x78]
lea rcx, str.Error_enumerating_account_for_the__s_group:_n
mov rdx, qword [rbx + rdx]
call fcn.14000adf8
mov ecx, edi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ecx, eax
call fcn.140005190
jmp 0x140006430
mov edi, r14d
cmp dword [rbp - 0x80], r14d
jbe 0x140006426
nop dword [rax]
mov ebx, r14d
cmp qword [rbp - 0x30], rbx
je 0x1400063f8
mov esi, edi
lea rax, [rbp - 0x30]
add rsi, rsi
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rax]
mov rdx, qword [rdx + rsi*8 + 8]
call fcn.14000a6dc
test eax, eax
je 0x1400063f8
inc ebx
lea rax, [rbp - 0x30]
cmp qword [rax + rbx*8], r14
lea rax, [rax + rbx*8]
jne 0x1400063d2
mov eax, ebx
lea rbx, [rbp - 0x30]
cmp qword [rbx + rax*8], r14
lea rbx, [rbx + rax*8]
jne 0x14000641f
mov rcx, qword [rsp + 0x78]
mov eax, edi
add rax, rax
mov rcx, qword [rcx + rax*8 + 8]
call fcn.14000c88c
mov qword [rbx], rax
inc edi
cmp edi, dword [rbp - 0x80]
jb 0x1400063c0
mov rcx, qword [rsp + 0x78]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, r12
call fcn.14000ac3c
inc r15d
cmp r15d, dword [rsp + 0x40]
jb 0x140006350
mov r12, qword [rsp + 0x920]
mov rcx, qword [rbp - 0x78]
call sub.NETAPI32.dll_NetApiBufferFree
cmp qword [rbp - 0x30], r14
je 0x140006551
lea rax, [rbp - 0x30]
nop word [rax + rax]
mov rbx, qword [rax]
lea rcx, str._t_s_n
mov rdx, rbx
call fcn.14000adf8
mov rcx, rbx
call fcn.14000ac3c
lea r14d, [r14 + 1]
lea rax, [rbp - 0x30]
cmp qword [rax + r14*8], 0
lea rax, [rax + r14*8]
jne 0x140006470
jmp 0x140006551
cmp eax, 0x8ad
je 0x1400064c8
cmp eax, 0x995
je 0x1400064c8
lea rcx, str.Error_enumerating_account_rights:_n
call fcn.14000adf8
mov ecx, ebx
call fcn.140005190
jmp 0x140006551
mov rdx, qword [0x140058b30]
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x78]
call sub.ADVAPI32.dll_LsaEnumerateAccountRights
mov ebx, eax
test eax, eax
je 0x14000651a
cmp eax, 0xc0000034
jne 0x1400064fe
lea rcx, str.No_rights_granted_to_the_account._n_n
call fcn.14000adf8
jmp 0x140006551
lea rcx, str.Error_enumerating_account_rights:_n
call fcn.14000adf8
mov ecx, ebx
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov ecx, eax
call fcn.140005190
jmp 0x140006551
cmp dword [rsp + 0x40], r14d
jbe 0x140006547
mov rdx, qword [rsp + 0x78]
mov eax, r14d
lea rcx, str._t_s_n
add rax, rax
mov rdx, qword [rdx + rax*8 + 8]
call fcn.14000adf8
inc r14d
cmp r14d, dword [rsp + 0x40]
jb 0x140006521
mov rcx, qword [rsp + 0x78]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x70]
call sub.ADVAPI32.dll_LsaClose
mov rcx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x918]
test rcx, rcx
je 0x140006572
call fcn.14000ac3c
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x8e0
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret