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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
movdqa xmmword [rsp + 0x150], xmm7
movaps xmmword [rsp + 0x140], xmm6
mov qword [rsp + 0x138], rcx
mov qword [rsp + 0x80], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x88], xmm6
mov dword [rsp + 0x114], 0
lea rbx, [rsp + 0x68]
lea r12, [rsp + 0x50]
nop dword [rax + rax]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x9c], 0
mov dword [rsp + 0x118], 0
lea rax, [rsp + 0x114]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0x58]
call sub.NETAPI32.dll_NetUserEnum
test eax, eax
je 0x14003fef1
cmp eax, 0xea
jne 0x140040329
mov rsi, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x9c]
test rcx, rcx
je 0x14004030c
mov dword [rsp + 0xb8], eax
lea r14, [rsi + rcx*8]
jmp 0x14003ff2d
add rsi, 8
cmp rsi, r14
je 0x140040300
cmp qword [rsi], 0
je 0x14003ff20
mov qword [rsp + 0x50], 0
mov rdx, qword [rsi]
xor ecx, ecx
mov r8d, 0x17
mov r9, r12
call sub.NETAPI32.dll_NetUserGetInfo
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14003ff70
test rcx, rcx
jne 0x1400402ec
jmp 0x14003ff20
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x1400402de
mov rcx, rdi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1400402de
mov rcx, rdi
call sub.ADVAPI32.dll_GetLengthSid
mov r13d, eax
mov r15d, eax
test eax, eax
je 0x14003ffb9
mov edx, 1
mov rcx, r15
call sym.__rust_alloc_zeroed
mov rbp, rax
test rax, rax
jne 0x14003ffbe
jmp 0x140040694
mov ebp, 1
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov ecx, r13d
mov rdx, rbp
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x140040030
test r13d, r13d
je 0x140040682
cmp byte [rbp], 1
jne 0x1400406a3
movups xmm0, xmmword [rbx]
lea rax, [rsp + 0x128]
movups xmmword [rax], xmm0
mov qword [rsp + 0x120], rbp
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x120]
call sym.sysinfo::windows::sid::Sid::account_name::h812a1125de0b194a
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14004004f
mov r15, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
jmp 0x1400400a6
test r13d, r13d
je 0x1400402de
mov r8d, 1
mov rcx, rbp
mov rdx, r15
call sym.__rust_dealloc
jmp 0x1400402de
mov rdx, qword [rsi]
mov r8, 0xffffffffffffffff
nop dword [rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140040060
lea rcx, [rsp + 0xc0]
call dbg.from_utf16
mov rdi, qword [rsp + 0xc0]
test rdi, rdi
mov r12, qword [rsp + 0xd0]
cmove r12, rdi
mov r15, qword [rsp + 0xc8]
cmove r15, rdi
mov eax, 1
cmove rdi, rax
movdqu xmm7, xmmword [rsp + 0x128]
mov rdx, qword [rsi]
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x11c], 0
lea rax, [rsp + 0x11c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140131ff8]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x14004011e
mov qword [rsp + 0x60], 8
movups xmmword [rbx], xmm6
jmp 0x14004018d
mov ebx, dword [rsp + 0x7c]
test rbx, rbx
je 0x140040154
lea rax, [rbx*8]
lea r13, [rax + rax*2]
mov rax, qword [0x140166748]
movzx eax, byte [rax]
mov edx, 8
mov rcx, r13
call sym.__rust_alloc
test rax, rax
jne 0x140040159
jmp 0x1400406ff
mov eax, 8
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400401c5
mov eax, dword [rsp + 0x7c]
lea r8, [rdx + rax*8]
lea rcx, [rsp + 0x60]
call sym._ZN97__LT_alloc..vec..Vec_LT_T_C_A_GT__u20_as_u20_alloc..vec..spec_extend..SpecExtend_LT_T_C_I_GT__GT_11spec_extend17ha42fc7b0
lea rbx, [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
test rcx, rcx
je 0x1400401f1
call fcn.1401268e4
jmp 0x1400401f1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa8], rax
lea rbx, [rsp + 0x68]
mov qword [rsp + 0xc0], rbp
movdqu xmmword [rsp + 0xc8], xmm7
mov dword [rsp + 0x108], 0
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xe0], r15
mov qword [rsp + 0xe8], r12
mov rax, qword [rsp + 0xb0]
lea rcx, [rsp + 0xf0]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0xa0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
mov qword [rcx + 8], rax
mov rdx, qword [rsp + 0x90]
cmp rdx, qword [rsp + 0x88]
jne 0x14004027e
lea rcx, [rsp + 0x80]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h948509a933708c4f
lea r12, [rsp + 0x50]
mov rdx, qword [rsp + 0x90]
jmp 0x140040283
lea r12, [rsp + 0x50]
mov rax, qword [rsp + 0x80]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movups xmm0, xmmword [rsp + 0x100]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rsp + 0xc0]
movups xmm1, xmmword [rsp + 0xd0]
movups xmm2, xmmword [rsp + 0xe0]
movups xmm3, xmmword [rsp + 0xf0]
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 [rsp + 0x90], rdx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003ff20
call fcn.1401268e4
jmp 0x14003ff20
mov rsi, qword [rsp + 0x58]
mov eax, dword [rsp + 0xb8]
cmp eax, 0xea
jne 0x14004032e
test rsi, rsi
je 0x14003fe80
mov rcx, rsi
call fcn.1401268e4
jmp 0x14003fe80
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x14004033b
mov rcx, rsi
call fcn.1401268e4
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x50]
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov rsi, qword [rsp + 0x50]
test eax, eax
jne 0x14004062a
mov eax, dword [rsp + 0x58]
test rax, rax
je 0x14004062a
lea rdi, [rsi + rax*8]
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0xc0]
xorps xmm6, xmm6
mov qword [rsp + 0xb8], rdi
jmp 0x1400403af
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400403a2
call fcn.140126994
add rsi, 8
cmp rsi, rdi
je 0x140040625
mov qword [rsp + 0x48], 0
mov rcx, rsi
mov rdx, rbx
call sub.Secur32.dll_LsaGetLogonSessionData
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x140040600
test rcx, rcx
je 0x140040600
cmp dword [rcx + 0x40], 3
je 0x14004039d
movzx r13d, word [rcx + 0x10]
mov r12, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r14
call sym.sysinfo::windows::sid::Sid::from_psid::heb9d3d02bae8bf57
cmp qword [rsp + 0xc0], 0
je 0x140040393
mov r14, qword [rsp + 0xd0]
mov qword [rsp + 0xb0], r14
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
test rax, rax
je 0x1400404ac
mov rbx, qword [rsp + 0x80]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x140040459
add r15, 0x50
cmp rdi, r15
je 0x1400404ac
cmp qword [rbx + r15 + 0x10], r14
jne 0x140040450
mov rcx, qword [rbx + r15]
mov rdx, rbp
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140040450
mov rdx, qword [rsp + 0xa8]
test rdx, rdx
mov rdi, qword [rsp + 0xb8]
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0xc0]
je 0x140040393
mov r8d, 1
mov rcx, rbp
call sym.__rust_dealloc
jmp 0x140040393
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0xa0]
call sym.sysinfo::windows::sid::Sid::account_name::h812a1125de0b194a
lea rcx, [rsp + 0x68]
lea r14, [rsp + 0xc0]
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x1400404ff
shr r13d, 1
mov rcx, r14
mov rdx, r12
mov r8, r13
call dbg.from_utf16
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x140040613
lea rcx, [rsp + 0xc8]
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x120], xmm0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xd0], rcx
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmm0, xmmword [rsp + 0x120]
lea rcx, [rsp + 0xc8]
movups xmmword [rcx + 0x18], xmm0
mov dword [rsp + 0x108], 0
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xf0], 8
movups xmmword [rcx + 0x30], xmm6
mov rdx, qword [rsp + 0x90]
cmp rdx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0xb8]
lea rbx, [rsp + 0x48]
jne 0x140040595
lea rcx, [rsp + 0x80]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h948509a933708c4f
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x80]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movaps xmm0, xmmword [rsp + 0x100]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0xc0]
movaps xmm1, xmmword [rsp + 0xd0]
movaps xmm2, xmmword [rsp + 0xe0]
movaps xmm3, xmmword [rsp + 0xf0]
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 [rsp + 0x90], rdx
mov rcx, qword [rsp + 0x48]
nop word cs:[rax + rax]
test rcx, rcx
je 0x1400403a2
call fcn.140126994
jmp 0x1400403a2
movaps xmmword [rsp + 0x120], xmm6
mov eax, 1
jmp 0x14004050a
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x138]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx], xmm0
test rsi, rsi
je 0x140040656
mov rcx, rsi
call fcn.140126994
mov rax, qword [rsp + 0x138]
movaps xmm6, xmmword [rsp + 0x140]
movaps xmm7, xmmword [rsp + 0x150]
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._Users_joakim_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.10_src_windows_sid.rs
xor ecx, ecx
xor edx, edx
call dbg.panic_bounds_check
jmp 0x14004070c
mov ecx, 1
mov rdx, r15
call dbg.handle_alloc_error
jmp 0x14004070c
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 1
lea rax, str._rustc_cc66ad468955717ab92600c770da8c1601a4ff33librarycore_src_sliceindex.rs
mov qword [rsp + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xd8], xmm0
lea rax, str._Users_joakim_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.10_src_windows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x1401326d0]
lea r9, [rsp + 0xc0]
xor ecx, ecx
mov rdx, rbp
call sym.core::panicking::assert_failed::h4e82f7943ea12a88
jmp 0x14004070c
mov ecx, 8
mov rdx, r13
call dbg.handle_alloc_error
ud2