Function at 0x1400e1720
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 0x1400e17d5
test r13d, r13d
jne 0x1400e1b5a
mov r14, qword [rbp + 0x80]
mov eax, dword [rbp + 0x54]
lea r12, [r14 + rax*8]
jmp 0x1400e17f5
call sub.NETAPI32.dll_NetApiBufferFree
cmp r14, r12
je 0x1400e1b30
mov rbx, r14
add r14, 8
cmp qword [rbx], 0
je 0x1400e17f5
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 0x1400e1840
mov rcx, qword [rbp + 0x90]
test rcx, rcx
jne 0x1400e17f0
jmp 0x1400e17f5
mov rcx, qword [rbp + 0x90]
mov r15, qword [rcx + 0x20]
test r15, r15
je 0x1400e17f0
mov rcx, r15
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1400e182d
mov rcx, r15
call sub.ADVAPI32.dll_GetLengthSid
mov esi, eax
mov ecx, eax
test eax, eax
mov qword [rbp + 0x98], rcx
je 0x1400e1895
mov edx, 1
mov rcx, qword [rbp + 0x98]
call fcn.14000e980
mov rcx, qword [rbp + 0x98]
test rax, rax
jne 0x1400e189a
jmp 0x1400e1e45
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 0x1400e1918
test esi, esi
mov rdx, qword [rbp + 0x88]
je 0x1400e1e33
cmp byte [rdx], 1
jne 0x1400e1e51
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.1400d7d30
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x1400e193e
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x28], rax
mov r15, qword [rbp + 0x70]
jmp 0x1400e1994
test esi, esi
mov rcx, qword [rbp + 0x88]
je 0x1400e182d
mov r8d, 1
mov rdx, qword [rbp + 0x98]
call fcn.14000e960
jmp 0x1400e182d
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x1400e1950
mov byte [rbp + 0xae], 1
mov rcx, rbp
call fcn.14011d9a0
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, [0x1401c8c88]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x1400e1a10
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 8
mov qword [rbp + 0x70], 0
jmp 0x1400e1a73
mov ebx, dword [rbp + 0x7c]
test rbx, rbx
je 0x1400e1a3b
lea rax, [rbx*8]
lea rsi, [rax + rax*2]
mov edx, 8
mov rcx, rsi
call fcn.14000e950
test rax, rax
jne 0x1400e1a40
jmp 0x1400e1e9e
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 0x1400e1a84
mov eax, dword [rbp + 0x7c]
lea rdx, [r8 + rax*8]
mov byte [rbp + 0xac], 1
lea rcx, [rbp + 0x60]
call fcn.1400e3e30
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x1400e1a84
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 0x1400e1ae5
mov rcx, rsi
call fcn.1400e43b0
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 0x1400e182d
cmp r13d, 0xea
jne 0x1400e1b5a
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400e1770
mov byte [rbp + 0xaf], 1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1400e1770
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400e1b72
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 0x1400e1bce
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x1400e1bb6
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 0x1400e1c03
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x1400e1c03
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp rsi, rbx
je 0x1400e1b9e
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 0x1400e1e20
test rcx, rcx
je 0x1400e1e20
cmp dword [rcx + 0x40], 3
je 0x1400e1bfe
movzx r12d, word [rcx + 0x10]
mov r13, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.1400d7bc0
cmp qword [rbp + 8], 0
je 0x1400e1bf2
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 0x1400e1cfd
mov rcx, qword [rbp + 0x58]
mov rbx, qword [rcx + 8]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x1400e1ca9
add r15, 0x50
cmp rdi, r15
je 0x1400e1cfd
cmp qword [rbx + r15 + 0x10], r14
jne 0x1400e1ca0
mov rcx, qword [rbx + r15 + 8]
mov rdx, qword [rbp + 0x98]
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400e1ca0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
mov rbx, qword [rbp + 0x88]
lea r14, [rbp + 0xa0]
mov r15, rbp
je 0x1400e1bf2
mov r8d, 1
mov rcx, qword [rbp + 0x98]
call fcn.14000e960
jmp 0x1400e1bf2
mov byte [rbp + 0xad], 1
lea rcx, [rbp + 0x60]
lea rdx, [rbp - 0x20]
call fcn.1400d7d30
mov r15, rbp
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x1400e1d27
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x70]
jmp 0x1400e1d60
shr r12, 1
mov byte [rbp + 0xad], 1
mov rcx, r15
mov rdx, r13
mov r8, r12
call fcn.14011d9a0
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 0x1400e1dc7
mov rdi, rcx
call fcn.1400e43b0
lea r14, [rbp + 0xa0]
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
jmp 0x1400e1dce
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 0x1400e1c03
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1400e1c03
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.10_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.14013a920
jmp 0x1400e1eb2
mov edx, 1
call fcn.14013a650
jmp 0x1400e1eb2
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:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.10_srcwindows_sid.rs
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0
lea rax, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.10_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x1401c85c0]
mov r9, rbp
xor ecx, ecx
call fcn.140135d90
jmp 0x1400e1eb2
mov byte [rbp + 0xac], 0
mov edx, 8
mov rcx, rsi
call fcn.14013a650
ud2