Function at 0x14001a370
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, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], 0xfffffffffffffffe
mov qword [rbp - 0x20], rcx
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 8
mov qword [rbp + 0x98], 0
mov dword [rbp - 0x10], 0
lea rbx, [rbp + 0xe8]
nop dword [rax]
mov qword [rbp + 0x80], 0
mov dword [rbp + 0x7c], 0
mov dword [rbp - 0x14], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x14]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x7c]
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
test eax, eax
je 0x14001a431
cmp eax, 0xea
jne 0x14001a953
mov dword [rbp - 0xc], eax
mov r13, qword [rbp + 0x80]
mov eax, dword [rbp + 0x7c]
lea r12, [rax*8]
add r12, r13
nop dword [rax]
cmp r13, r12
je 0x14001a930
mov rsi, qword [r13]
add r13, 8
test rsi, rsi
je 0x14001a450
mov qword [rbp + 0xe8], 0
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x17
mov r9, rbx
call sub.netapi32.dll_NetUserGetInfo
mov rcx, qword [rbp + 0xe8]
test eax, eax
je 0x14001a4a0
test rcx, rcx
jne 0x14001a920
jmp 0x14001a450
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x14001a910
mov rcx, rdi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x14001a910
mov rcx, rdi
call sub.ADVAPI32.dll_GetLengthSid
mov r14d, eax
mov dword [rbp + 0x100], eax
mov edx, 1
test eax, eax
je 0x14001a5c9
mov rcx, r14
call fcn.14000bf40
test rax, rax
je 0x14001ac73
mov r15, rax
mov ecx, dword [rbp + 0x100]
mov rdx, rax
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x14001a5e0
cmp byte [r15], 1
mov qword [rbp + 0xf0], r14
jne 0x14001ac82
mov qword [rbp - 8], r14
mov qword [rbp + 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], r14
mov byte [rbp + 0x10f], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp - 8]
call fcn.140011a50
mov r14, qword [rbp + 0xa0]
movabs rax, 0x8000000000000000
cmp r14, rax
jne 0x14001a5f6
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
cmp word [rsi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14001a570
mov byte [rbp + 0x10f], 1
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.14003e3f0
mov r14, qword [rbp + 0x20]
movabs rax, 0x8000000000000000
cmp r14, rax
mov rcx, qword [rbp + 0x30]
mov eax, 0
cmove rcx, rax
mov qword [rbp - 0x28], rcx
mov rdx, qword [rbp + 0x28]
mov ecx, 1
cmove rdx, rcx
mov qword [rbp + 0x18], rdx
cmove r14, rax
jmp 0x14001a60c
xor ecx, ecx
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x14001a910
jmp 0x14001accb
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.14000bf20
jmp 0x14001a910
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x28], rax
mov qword [rbp + 0xf8], 0
mov dword [rbp + 0xe4], 0
mov dword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xe4]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x14008fc60]
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
mov qword [rbp - 0x30], r14
je 0x14001a695
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], 8
xor eax, eax
mov qword [rbp + 0x100], rax
jmp 0x14001a812
mov r15d, dword [rbp + 0xe4]
test r15, r15
je 0x14001a6cf
lea rax, [r15*8]
lea rdi, [rax + rax*2]
movzx eax, byte [0x1400aa841]
mov edx, 8
mov rcx, rdi
call fcn.14000bf10
test rax, rax
je 0x14001acec
mov rsi, rax
jmp 0x14001a6d4
mov esi, 8
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd0], 0
mov r14, qword [rbp + 0xf8]
test r14, r14
je 0x14001a72c
mov edi, dword [rbp + 0xe4]
cmp edi, r15d
jbe 0x14001a75b
mov byte [rbp + 0x10d], 1
lea rcx, [rbp + 0xc0]
xor edx, edx
mov r8, rdi
call fcn.140044640
mov rsi, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd0]
jmp 0x14001a774
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xa8], rax
jmp 0x14001a84d
mov eax, 0
mov qword [rbp + 0x100], rax
mov eax, 0
test edi, edi
je 0x14001a812
mov qword [rbp + 0x100], rax
xor r15d, r15d
nop
mov rdx, qword [r14 + r15*8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14001a790
lea rcx, [rbp + 0xa0]
call fcn.14003e3f0
mov rax, qword [rbp + 0xa0]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov rcx, qword [rbp + 0xb0]
mov r8d, 0
cmove rcx, r8
mov rdx, qword [rbp + 0xa8]
mov r9d, 1
cmove rdx, r9
cmove rax, r8
mov r9, qword [rbp + 0x100]
lea r8, [r9 + r9*2]
mov qword [rsi + r8*8], rax
mov qword [rsi + r8*8 + 8], rdx
mov qword [rsi + r8*8 + 0x10], rcx
inc r9
mov qword [rbp + 0x100], r9
inc r15
cmp r15, rdi
jne 0x14001a780
mov rcx, qword [rbp + 0xf8]
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0xb0], rax
test rcx, rcx
je 0x14001a84d
call sub.netapi32.dll_NetApiBufferFree
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x20], rax
mov rcx, qword [rbp + 0x10]
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x68], 0
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xb0]
lea rcx, [rbp + 0x50]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0xa0]
mov qword [rcx], rax
mov rax, qword [rbp + 0xa8]
mov qword [rcx + 8], rax
mov rsi, qword [rbp + 0x98]
cmp rsi, qword [rbp + 0x88]
jne 0x14001a8c3
lea rcx, [rbp + 0x88]
call fcn.1400188c0
mov rax, qword [rbp + 0x90]
lea rcx, [rsi + rsi*4]
shl rcx, 4
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rbp + 0x30]
movups xmm2, xmmword [rbp + 0x40]
movups xmm3, xmmword [rbp + 0x50]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rsi
mov qword [rbp + 0x98], rsi
nop dword [rax + rax]
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x14001a450
call sub.netapi32.dll_NetApiBufferFree
jmp 0x14001a450
mov rcx, qword [rbp + 0x80]
cmp dword [rbp - 0xc], 0xea
jne 0x14001a95a
test rcx, rcx
je 0x14001a3d0
call sub.netapi32.dll_NetApiBufferFree
jmp 0x14001a3d0
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14001a964
call sub.netapi32.dll_NetApiBufferFree
mov dword [rbp + 0xe8], 0
mov qword [rbp + 0xf8], 0
lea rcx, [rbp + 0xe8]
lea rdx, [rbp + 0xf8]
call sub.secur32.dll_LsaEnumerateLogonSessions
mov rcx, qword [rbp + 0xf8]
test eax, eax
jne 0x14001a9bc
mov eax, dword [rbp + 0xe8]
lea rsi, [rcx + rax*8]
lea rdi, [rbp - 8]
lea r15, [rbp + 0x20]
mov qword [rbp + 0xf0], rsi
cmp rcx, rsi
jne 0x14001aa08
mov rcx, qword [rbp + 0xf8]
mov rax, qword [rbp + 0x98]
mov rdx, qword [rbp - 0x20]
mov qword [rdx + 0x10], rax
movups xmm0, xmmword [rbp + 0x88]
movups xmmword [rdx], xmm0
test rcx, rcx
je 0x14001a9df
call sub.secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp - 0x20]
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r14
cmp rcx, rsi
je 0x14001a9b5
lea r14, [rcx + 8]
mov qword [rbp - 8], 0
mov rdx, rdi
call sub.secur32.dll_LsaGetLogonSessionData
mov rcx, qword [rbp - 8]
test eax, eax
jne 0x14001ac60
test rcx, rcx
je 0x14001ac60
cmp dword [rcx + 0x40], 3
je 0x14001aa65
movzx r12d, word [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.1400118c0
movabs rax, 0x8000000000000000
cmp qword [rbp + 0x20], rax
jne 0x14001aa77
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14001aa6a
call sub.secur32.dll_LsaFreeReturnBuffer
mov rcx, r14
cmp rcx, rsi
jne 0x14001aa08
jmp 0x14001a9b5
mov r15, qword [rbp + 0x30]
mov qword [rbp + 0xd0], r15
movups xmm0, xmmword [rbp + 0x20]
movaps xmmword [rbp + 0xc0], xmm0
mov rax, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xc8]
mov qword [rbp + 0x100], rcx
test rax, rax
je 0x14001ab1e
mov rdi, qword [rbp + 0x90]
shl rax, 4
lea rsi, [rax + rax*4]
xor r13d, r13d
jmp 0x14001aac9
add r13, 0x50
cmp rsi, r13
je 0x14001ab1e
cmp qword [rdi + r13 + 0x10], r15
jne 0x14001aac0
mov rcx, qword [rdi + r13 + 8]
mov rdx, qword [rbp + 0x100]
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001aac0
mov rdx, qword [rbp + 0xc0]
test rdx, rdx
mov rsi, qword [rbp + 0xf0]
lea rdi, [rbp - 8]
lea r15, [rbp + 0x20]
je 0x14001aa5c
mov r8d, 1
mov rcx, qword [rbp + 0x100]
call fcn.14000bf20
jmp 0x14001aa5c
mov byte [rbp + 0x10e], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp + 0xc0]
call fcn.140011a50
lea r15, [rbp + 0x20]
mov rax, qword [rbp + 0xa0]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14001ab9c
shr r12d, 1
mov byte [rbp + 0x10e], 1
mov rcx, r15
mov rdx, rbx
mov r8, r12
call fcn.14003e3f0
mov rax, qword [rbp + 0x20]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov r8d, 0
cmove rax, r8
mov rcx, qword [rbp + 0x28]
mov edx, 1
cmove rcx, rdx
mov rdx, qword [rbp + 0x30]
cmove rdx, r8
jmp 0x14001abaa
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xd0]
mov qword [rbp + 0x30], r8
movaps xmm0, xmmword [rbp + 0xc0]
movaps xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x68], 0
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 8
mov qword [rbp + 0x60], 0
mov rdi, qword [rbp + 0x98]
cmp rdi, qword [rbp + 0x88]
jne 0x14001ac07
lea rcx, [rbp + 0x88]
call fcn.1400188c0
mov rax, qword [rbp + 0x90]
lea rcx, [rdi + rdi*4]
shl rcx, 4
movaps xmm0, xmmword [rbp + 0x60]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rbp + 0x20]
movaps xmm1, xmmword [rbp + 0x30]
movaps xmm2, xmmword [rbp + 0x40]
movaps xmm3, xmmword [rbp + 0x50]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rdi
mov qword [rbp + 0x98], rdi
mov rcx, qword [rbp - 8]
mov rsi, qword [rbp + 0xf0]
lea rdi, [rbp - 8]
nop dword [rax + rax]
test rcx, rcx
je 0x14001aa00
call sub.secur32.dll_LsaFreeReturnBuffer
jmp 0x14001aa00
mov ecx, 1
mov rdx, r14
call fcn.140048cb0
jmp 0x14001ad00
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp - 0x38], r15
lea rax, str.C:UsersD3.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14008f410]
lea r9, [rbp + 0x20]
xor ecx, ecx
mov rdx, r15
call fcn.1400442f0
jmp 0x14001ad00
mov qword [rbp + 0xf0], r14
mov qword [rbp - 0x38], 1
lea r8, str.C:UsersD3.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.140048f10
jmp 0x14001ad00
mov byte [rbp + 0x10d], 0
mov ecx, 8
mov rdx, rdi
call fcn.140048cb0
ud2