Function at 0x140011610
Capabilities:
Get logon sessions
List groups for user account
List user accounts

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], 0xfffffffffffffffe
mov qword [rcx], 0
mov qword [rcx + 8], 8
mov qword [rbp + 0x58], rcx
mov qword [rcx + 0x10], 0
mov dword [rbp - 0x34], 0
lea rdi, [rbp + 0x90]
nop
mov qword [rbp + 0x80], 0
mov dword [rbp + 0x54], 0
mov dword [rbp - 0x38], 0
lea rax, [rbp - 0x34]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x80]
call sub.NETAPI32.dll_NetUserEnum
mov r13d, eax
cmp eax, 0xea
je 0x1400116c5
test r13d, r13d
jne 0x140011a4a
mov r14, qword [rbp + 0x80]
mov eax, dword [rbp + 0x54]
lea r12, [r14 + rax*8]
jmp 0x1400116e5
call sub.NETAPI32.dll_NetApiBufferFree
cmp r14, r12
je 0x140011a20
mov rbx, r14
add r14, 8
cmp qword [rbx], 0
je 0x1400116e5
mov qword [rbp + 0x90], 0
mov rdx, qword [rbx]
xor ecx, ecx
mov r8d, 0x17
mov r9, rdi
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
je 0x140011730
mov rcx, qword [rbp + 0x90]
test rcx, rcx
jne 0x1400116e0
jmp 0x1400116e5
mov rcx, qword [rbp + 0x90]
mov r15, qword [rcx + 0x20]
test r15, r15
je 0x1400116e0
mov rcx, r15
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x14001171d
mov rcx, r15
call sub.ADVAPI32.dll_GetLengthSid
mov esi, eax
mov ecx, eax
test eax, eax
mov qword [rbp + 0x98], rcx
je 0x140011785
mov edx, 1
mov rcx, qword [rbp + 0x98]
call fcn.140003750
mov rcx, qword [rbp + 0x98]
test rax, rax
jne 0x14001178a
jmp 0x140011d35
mov eax, 1
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rcx
mov ecx, esi
mov qword [rbp + 0x88], rax
mov rdx, rax
mov r8, r15
call sub.ADVAPI32.dll_CopySid
test eax, eax
mov rax, qword [rbp + 0x98]
je 0x140011808
test esi, esi
mov rdx, qword [rbp + 0x88]
je 0x140011d23
cmp byte [rdx], 1
jne 0x140011d41
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rax
mov byte [rbp + 0xae], 1
lea rcx, [rbp + 0x60]
lea rdx, [rbp - 0x20]
call fcn.14000da20
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x14001182e
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x28], rax
mov r15, qword [rbp + 0x70]
jmp 0x140011884
test esi, esi
mov rcx, qword [rbp + 0x88]
je 0x14001171d
mov r8d, 1
mov rdx, qword [rbp + 0x98]
call fcn.140003730
jmp 0x14001171d
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140011840
mov byte [rbp + 0xae], 1
mov rcx, rbp
call fcn.1400288d0
mov rdx, qword [rbp + 8]
test rdx, rdx
mov r15, qword [rbp + 0x10]
cmove r15, rdx
mov rcx, rdx
mov eax, 1
cmove rcx, rax
mov qword [rbp - 0x30], rcx
cmovne rdx, qword [rbp]
mov qword [rbp - 0x28], rdx
mov rdx, qword [rbx]
mov qword [rbp + 0xa0], 0
mov dword [rbp + 0x7c], 0
mov dword [rbp - 0x3c], 0
mov byte [rbp + 0xac], 0
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140034280]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x140011900
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 8
mov qword [rbp + 0x70], 0
jmp 0x140011963
mov ebx, dword [rbp + 0x7c]
test rbx, rbx
je 0x14001192b
lea rax, [rbx*8]
lea rsi, [rax + rax*2]
mov edx, 8
mov rcx, rsi
call fcn.140003720
test rax, rax
jne 0x140011930
jmp 0x140011d8e
mov eax, 8
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], 0
mov r8, qword [rbp + 0xa0]
test r8, r8
je 0x140011974
mov eax, dword [rbp + 0x7c]
lea rdx, [r8 + rax*8]
mov byte [rbp + 0xac], 1
lea rcx, [rbp + 0x60]
call fcn.1400105c0
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x140011974
call sub.NETAPI32.dll_NetApiBufferFree
mov rcx, qword [rbp + 0x98]
mov qword [rbp], rcx
mov rax, qword [rbp + 0x88]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x48], 0
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], r15
mov rax, qword [rbp + 0x70]
lea rcx, [rbp + 0x30]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [rcx], xmm0
mov rsi, qword [rbp + 0x58]
mov rdx, qword [rsi + 0x10]
cmp rdx, qword [rsi]
jne 0x1400119d5
mov rcx, rsi
call fcn.14000d650
mov rdx, qword [rsi + 0x10]
mov rax, qword [rsi + 8]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rdx
mov qword [rsi + 0x10], rdx
jmp 0x14001171d
cmp r13d, 0xea
jne 0x140011a4a
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140011660
mov byte [rbp + 0xaf], 1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x140011660
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140011a62
mov byte [rbp + 0xaf], 1
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [rbp + 0x80], 0
mov qword [rbp + 0x90], 0
lea rcx, [rbp + 0x80]
lea rdx, [rbp + 0x90]
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x140011abe
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x140011aa6
mov byte [rbp + 0xaf], 0
call sub.Secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp + 0x58]
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rsi, qword [rbp + 0x90]
mov eax, dword [rbp + 0x80]
lea rbx, [rsi + rax*8]
lea r14, [rbp + 0xa0]
mov r15, rbp
mov qword [rbp + 0x88], rbx
jmp 0x140011af3
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x140011af3
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp rsi, rbx
je 0x140011a8e
mov qword [rbp + 0xa0], 0
mov rcx, rsi
mov rdx, r14
call sub.Secur32.dll_LsaGetLogonSessionData
add rsi, 8
mov rcx, qword [rbp + 0xa0]
test eax, eax
jne 0x140011d10
test rcx, rcx
je 0x140011d10
cmp dword [rcx + 0x40], 3
je 0x140011aee
movzx r12d, word [rcx + 0x10]
mov r13, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.14000d8b0
cmp qword [rbp + 8], 0
je 0x140011ae2
mov r14, qword [rbp + 0x10]
mov qword [rbp - 0x10], r14
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x98], rcx
test rax, rax
je 0x140011bed
mov rcx, qword [rbp + 0x58]
mov rbx, qword [rcx + 8]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x140011b99
add r15, 0x50
cmp rdi, r15
je 0x140011bed
cmp qword [rbx + r15 + 0x10], r14
jne 0x140011b90
mov rcx, qword [rbx + r15 + 8]
mov rdx, qword [rbp + 0x98]
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140011b90
mov rdx, qword [rbp - 0x20]
test rdx, rdx
mov rbx, qword [rbp + 0x88]
lea r14, [rbp + 0xa0]
mov r15, rbp
je 0x140011ae2
mov r8d, 1
mov rcx, qword [rbp + 0x98]
call fcn.140003730
jmp 0x140011ae2
mov byte [rbp + 0xad], 1
lea rcx, [rbp + 0x60]
lea rdx, [rbp - 0x20]
call fcn.14000da20
mov r15, rbp
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x140011c17
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x70]
jmp 0x140011c50
shr r12, 1
mov byte [rbp + 0xad], 1
mov rcx, r15
mov rdx, r13
mov r8, r12
call fcn.1400288d0
mov rcx, qword [rbp + 8]
test rcx, rcx
mov rdx, qword [rbp]
cmove rdx, rcx
mov rax, rcx
mov r8d, 1
cmove rax, r8
cmovne rcx, qword [rbp + 0x10]
mov r8, qword [rbp - 0x10]
mov qword [rbp + 0x10], r8
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp], xmm0
mov dword [rbp + 0x48], 0
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 8
mov qword [rbp + 0x40], 0
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx]
mov rbx, qword [rbp + 0x88]
jne 0x140011cb7
mov rdi, rcx
call fcn.14000d650
lea r14, [rbp + 0xa0]
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
jmp 0x140011cbe
lea r14, [rbp + 0xa0]
mov rax, qword [rcx + 8]
lea r8, [rdx + rdx*4]
shl r8, 4
movaps xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + r8 + 0x40], xmm0
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmm2, xmmword [rbp + 0x20]
movaps xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + r8 + 0x30], xmm3
movups xmmword [rax + r8 + 0x20], xmm2
movups xmmword [rax + r8 + 0x10], xmm1
movups xmmword [rax + r8], xmm0
inc rdx
mov qword [rcx + 0x10], rdx
mov rcx, qword [rbp + 0xa0]
nop dword [rax]
test rcx, rcx
je 0x140011af3
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x140011af3
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.4_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.140031d70
jmp 0x140011da2
mov edx, 1
call fcn.140031ba0
jmp 0x140011da2
mov qword [rbp], 0
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 1
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.4_srcwindows_sid.rs
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.4_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x140034158]
mov r9, rbp
xor ecx, ecx
call fcn.14002eac0
jmp 0x140011da2
mov byte [rbp + 0xac], 0
mov edx, 8
mov rcx, rsi
call fcn.140031ba0
ud2