Function at 0x41bf50
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, 0x198
movdqa xmmword [rsp + 0x180], xmm7
movaps xmmword [rsp + 0x170], xmm6
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x68], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x70], xmm6
mov dword [rsp + 0xe4], 0
lea rbx, [rsp + 0xa8]
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0xe8], 0
lea rax, [rsp + 0xe4]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0x80]
call sub.NETAPI32.dll_NetUserEnum
mov r12d, eax
test eax, eax
je 0x41c01c
cmp r12d, 0xea
jne 0x41c447
mov rsi, qword [rsp + 0x80]
mov eax, dword [rsp + 0x8c]
test rax, rax
je 0x41c428
lea r14, [rsi + rax*8]
jmp 0x41c04d
add rsi, 8
cmp rsi, r14
je 0x41c420
cmp qword [rsi], 0
je 0x41c040
mov qword [rsp + 0xa8], 0
mov rdx, qword [rsi]
xor ecx, ecx
mov r8d, 0x17
mov r9, rbx
call sub.NETAPI32.dll_NetUserGetInfo
mov rcx, qword [rsp + 0xa8]
test eax, eax
je 0x41c090
test rcx, rcx
jne 0x41c413
jmp 0x41c040
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x41c402
mov rcx, rdi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x41c402
mov rcx, rdi
call sub.ADVAPI32.dll_GetLengthSid
mov r13d, eax
mov r15d, eax
test eax, eax
je 0x41c0d9
mov edx, 1
mov rcx, r15
call sym.__rust_alloc_zeroed
mov rbp, rax
test rax, rax
jne 0x41c0de
jmp 0x41c7c1
mov ebp, 1
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov ecx, r13d
mov rdx, rbp
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x41c153
test r13d, r13d
je 0x41c7af
cmp byte [rbp], 1
jne 0x41c7d0
lea rax, [rsp + 0x50]
movups xmm0, xmmword [rax]
lea rax, [rsp + 0xd0]
movups xmmword [rax], xmm0
mov qword [rsp + 0xc8], rbp
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0xc8]
call sym.sysinfo::windows::sid::Sid::account_name::h95b9eb19735277cf
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x41c172
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rcx]
jmp 0x41c1b7
test r13d, r13d
je 0x41c402
mov r8d, 1
mov rcx, rbp
mov rdx, r15
call sym.__rust_dealloc
jmp 0x41c402
mov rdx, qword [rsi]
mov r8, 0xffffffffffffffff
nop dword [rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x41c180
lea rcx, [rsp + 0xf0]
call dbg.from_utf16
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x41c28e
lea rcx, [rsp + 0x108]
movups xmm0, xmmword [rcx - 0x10]
movaps xmmword [rsp + 0xb0], xmm0
movdqu xmm7, xmmword [rsp + 0xd0]
mov qword [rsp + 0x140], rax
movaps xmm0, xmmword [rsp + 0xb0]
lea rax, [rsp + 0x148]
movups xmmword [rax], xmm0
mov rdx, qword [rsi]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0xec], 0
lea rax, [rsp + 0xec]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x00542dac]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x41c257
mov qword [rsp + 0x48], 8
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
jmp 0x41c2d4
mov r15d, dword [rsp + 0x64]
test r15, r15
je 0x41c2a0
lea rax, [r15*8]
lea rdi, [rax + rax*2]
mov rax, qword [0x005757d8]
movzx eax, byte [rax]
mov edx, 8
mov rcx, rdi
call sym.__rust_alloc
test rax, rax
jne 0x41c2a5
jmp 0x41c82c
movaps xmmword [rsp + 0xb0], xmm6
mov eax, 1
jmp 0x41c1bf
mov eax, 8
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x41c30c
mov eax, dword [rsp + 0x64]
lea r8, [rdx + rax*8]
lea rcx, [rsp + 0x48]
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_extend17h7e72ab3d
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
test rcx, rcx
je 0x41c333
call fcn.004fb9ac
jmp 0x41c333
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xf0], rbp
movdqu xmmword [rsp + 0xf8], xmm7
mov dword [rsp + 0x138], 0
mov rax, qword [rsp + 0x150]
lea rcx, [rsp + 0x108]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x140]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0xa0]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x98]
mov qword [rcx + 0x20], rax
mov rdx, qword [rsp + 0x78]
cmp rdx, qword [rsp + 0x70]
jne 0x41c3ad
lea rcx, [rsp + 0x68]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::hff9b94ce187377e2
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x68]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movups xmm0, xmmword [rsp + 0x130]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rsp + 0xf0]
movups xmm1, xmmword [rsp + 0x100]
movups xmm2, xmmword [rsp + 0x110]
movups xmm3, xmmword [rsp + 0x120]
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 + 0x78], rdx
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x41c040
call fcn.004fb9ac
jmp 0x41c040
mov rsi, qword [rsp + 0x80]
cmp r12d, 0xea
jne 0x41c44f
test rsi, rsi
je 0x41bfa0
mov rcx, rsi
call fcn.004fb9ac
jmp 0x41bfa0
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x41c45c
mov rcx, rsi
call fcn.004fb9ac
mov dword [rsp + 0x40], 0
mov qword [rsp + 0xb0], 0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0xb0]
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov rsi, qword [rsp + 0xb0]
test eax, eax
jne 0x41c75d
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x41c75d
lea rdi, [rsi + rax*8]
lea rbx, [rsp + 0xc8]
lea r14, [rsp + 0xf0]
xorps xmm6, xmm6
mov qword [rsp + 0x160], rdi
jmp 0x41c4df
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x41c4d2
call fcn.004fba74
add rsi, 8
cmp rsi, rdi
je 0x41c755
mov qword [rsp + 0xc8], 0
mov rcx, rsi
mov rdx, rbx
call sub.Secur32.dll_LsaGetLogonSessionData
mov rcx, qword [rsp + 0xc8]
test eax, eax
jne 0x41c730
test rcx, rcx
je 0x41c730
cmp dword [rcx + 0x40], 3
je 0x41c4cd
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::h4f2836fd4998268b
cmp qword [rsp + 0xf0], 0
je 0x41c4c0
mov r14, qword [rsp + 0x100]
mov qword [rsp + 0xa0], r14
movups xmm0, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0x90], xmm0
mov rax, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x90]
test rax, rax
je 0x41c5df
mov rbx, qword [rsp + 0x68]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x41c589
add r15, 0x50
cmp rdi, r15
je 0x41c5df
cmp qword [rbx + r15 + 0x10], r14
jne 0x41c580
mov rcx, qword [rbx + r15]
mov rdx, rbp
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x41c580
mov rdx, qword [rsp + 0x98]
test rdx, rdx
mov rdi, qword [rsp + 0x160]
lea rbx, [rsp + 0xc8]
lea r14, [rsp + 0xf0]
je 0x41c4c0
mov r8d, 1
mov rcx, rbp
call sym.__rust_dealloc
jmp 0x41c4c0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x90]
call sym.sysinfo::windows::sid::Sid::account_name::h95b9eb19735277cf
lea r14, [rsp + 0xf0]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x41c60d
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rcx]
jmp 0x41c63b
shr r13d, 1
mov rcx, r14
mov rdx, r12
mov r8, r13
call dbg.from_utf16
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x41c743
lea rcx, [rsp + 0x108]
movups xmm0, xmmword [rcx - 0x10]
movaps xmmword [rsp + 0x140], xmm0
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x100], rcx
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmm0, xmmword [rsp + 0x140]
lea rcx, [rsp + 0x110]
movups xmmword [rcx], xmm0
mov dword [rsp + 0x138], 0
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x120], 8
movups xmmword [rcx + 0x18], xmm6
mov rdx, qword [rsp + 0x78]
cmp rdx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x160]
lea rbx, [rsp + 0xc8]
jne 0x41c6c4
lea rcx, [rsp + 0x68]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::hff9b94ce187377e2
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x68]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movaps xmm0, xmmword [rsp + 0x130]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
movaps xmm2, xmmword [rsp + 0x110]
movaps xmm3, xmmword [rsp + 0x120]
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 + 0x78], rdx
mov rcx, qword [rsp + 0xc8]
nop word cs:[rax + rax]
test rcx, rcx
je 0x41c4d2
call fcn.004fba74
jmp 0x41c4d2
movaps xmmword [rsp + 0x140], xmm6
mov eax, 1
jmp 0x41c643
mov rsi, qword [rsp + 0xb0]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x168]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rcx], xmm0
test rsi, rsi
je 0x41c783
mov rcx, rsi
call fcn.004fba74
mov rax, qword [rsp + 0x168]
movaps xmm6, xmmword [rsp + 0x170]
movaps xmm7, xmmword [rsp + 0x180]
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.2_src_windows_sid.rs
xor ecx, ecx
xor edx, edx
call dbg.panic_bounds_check
jmp 0x41c839
mov ecx, 1
mov rdx, r15
call dbg.handle_alloc_error
jmp 0x41c839
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 1
lea rax, str.Disk___FS:___Type:___removable:___mounted_on_:___B
mov qword [rsp + 0x100], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x108], xmm0
lea rax, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.2_src_windows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x00543248]
lea r9, [rsp + 0xf0]
xor ecx, ecx
mov rdx, rbp
call sym.core::panicking::assert_failed::h7e279d604bb51f7d
jmp 0x41c839
mov ecx, 8
mov rdx, rdi
call dbg.handle_alloc_error
ud2