Function at 0x140042990
Capabilities:
Get logon sessions
List user accounts

Disassembly:
sub rsp, 0x5c8
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x148], rcx
mov byte [rsp + 0x567], 0
mov byte [rsp + 0x566], 0
mov byte [rsp + 0x565], 0
mov byte [rsp + 0x564], 0
mov byte [rsp + 0x567], 1
lea rcx, [rsp + 0x150]
call dbg.alloc::vec::Vec<T>::new::hef06b9f2ba3103b6
mov dword [rsp + 0x16c], 0
call dbg.default<winapi::um::lmaccess::USER_INFO_0>
mov qword [rsp + 0x138], rax
jmp 0x140042a1f
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x178], 0
mov dword [rsp + 0x17c], 0
mov qword [rsp + 0x5b8], 0
mov qword [rsp + 0x5c0], 0
jmp 0x140042a84
lea rcx, [rsp + 0x170]
call dbg.sysinfo::windows::users::NetApiBuffer<T>::inner_mut_as_bytes::h204a93e2b18fc793
mov qword [rsp + 0x130], rax
jmp 0x140042a9b
mov r9, qword [rsp + 0x130]
mov rax, rsp
lea rcx, [rsp + 0x16c]
mov qword [rax + 0x38], rcx
lea rcx, [rsp + 0x17c]
mov qword [rax + 0x30], rcx
lea rcx, [rsp + 0x178]
mov qword [rax + 0x28], rcx
mov dword [rax + 0x20], 0xffffffff
xor edx, edx
mov ecx, edx
mov r8d, 2
call sub.NETAPI32.dll_NetUserEnum
mov dword [rsp + 0x12c], eax
jmp 0x140042ae9
mov eax, dword [rsp + 0x12c]
mov dword [rsp + 0x57c], eax
cmp eax, 0
je 0x140042b0a
mov eax, dword [rsp + 0x12c]
cmp eax, 0xea
jne 0x140042b32
mov rcx, qword [rsp + 0x170]
mov eax, dword [rsp + 0x178]
mov edx, eax
call dbg.from_raw_parts<winapi::um::lmaccess::USER_INFO_0>
mov qword [rsp + 0x118], rdx
mov qword [rsp + 0x120], rax
jmp 0x140042b49
mov eax, dword [rsp + 0x12c]
cmp eax, 0xea
jne 0x140042c26
jmp 0x140042c14
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x580], rcx
mov qword [rsp + 0x588], rdx
call dbg.into_iter<winapi::um::lmaccess::USER_INFO_0>
mov qword [rsp + 0x108], rdx
mov qword [rsp + 0x110], rax
jmp 0x140042b80
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x180], rcx
mov qword [rsp + 0x188], rax
lea rcx, [rsp + 0x180]
call dbg.next<winapi::um::lmaccess::USER_INFO_0>
mov qword [rsp + 0x100], rax
jmp 0x140042bb7
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x190], rax
mov rdx, qword [rsp + 0x190]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
je 0x140042b32
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov rcx, qword [rax]
call dbg.is_null<u16>
mov byte [rsp + 0xff], al
jmp 0x1400431fb
lea rcx, [rsp + 0x170]
call dbg.drop_in_place<sysinfo::windows::users::NetApiBuffer<winapi::um::lmaccess::USER_INFO_0>>
jmp 0x1400429e7
lea rcx, [rsp + 0x170]
call dbg.drop_in_place<sysinfo::windows::users::NetApiBuffer<winapi::um::lmaccess::USER_INFO_0>>
jmp 0x140042c35
mov dword [rsp + 0x2d4], 0
call dbg.default<winapi::shared::ntdef::LUID>
mov qword [rsp + 0xf0], rax
jmp 0x140042c4f
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x2d8], rax
lea rcx, [rsp + 0x2d8]
call dbg.sysinfo::windows::users::LsaBuffer<T>::inner_mut::hb277c87ebfc47d55
mov qword [rsp + 0xe8], rax
jmp 0x140042c9e
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x2d4]
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov dword [rsp + 0xe4], eax
jmp 0x140042cbc
mov eax, dword [rsp + 0xe4]
cmp eax, 0
jne 0x140042cf0
mov rcx, qword [rsp + 0x2d8]
mov eax, dword [rsp + 0x2d4]
mov edx, eax
call dbg.from_raw_parts_mut<winapi::shared::ntdef::LUID>
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xd8], rax
jmp 0x140042d29
mov rax, qword [rsp + 0x140]
mov byte [rsp + 0x567], 0
mov rcx, qword [rsp + 0x160]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x150]
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x2d8]
call dbg.drop_in_place<sysinfo::windows::users::LsaBuffer<winapi::shared::ntdef::LUID>>
jmp 0x1400431e3
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x590], rcx
mov qword [rsp + 0x598], rdx
call dbg.into_iter<winapi::shared::ntdef::LUID>
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], rax
jmp 0x140042d60
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x2e0], rcx
mov qword [rsp + 0x2e8], rax
lea rcx, [rsp + 0x2e0]
call dbg.next<winapi::shared::ntdef::LUID>
mov qword [rsp + 0xb8], rax
jmp 0x140042d97
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x2f0], rax
mov rdx, qword [rsp + 0x2f0]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
je 0x140042cf0
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x5a0], rax
call dbg.default<winapi::um::ntlsa::SECURITY_LOGON_SESSION_DATA>
mov qword [rsp + 0xb0], rax
jmp 0x140042def
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x2f8], rax
lea rcx, [rsp + 0x2f8]
call dbg.sysinfo::windows::users::LsaBuffer<T>::inner_mut::he944a9ad49553fae
mov qword [rsp + 0xa0], rax
jmp 0x140042e3e
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call sub.Secur32.dll_LsaGetLogonSessionData
mov dword [rsp + 0x9c], eax
jmp 0x140042e5c
mov eax, dword [rsp + 0x9c]
cmp eax, 0
je 0x140042e7a
lea rcx, [rsp + 0x2f8]
call dbg.drop_in_place<sysinfo::windows::users::LsaBuffer<winapi::um::ntlsa::SECURITY_LOGON_SESSION_DATA>>
jmp 0x140042d80
mov rcx, qword [rsp + 0x2f8]
call dbg.is_null<winapi::um::ntlsa::SECURITY_LOGON_SESSION_DATA>
mov byte [rsp + 0x9b], al
jmp 0x140042e90
mov al, byte [rsp + 0x9b]
test al, 1
jne 0x140042e68
jmp 0x140042e9d
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x90], rax
and rax, 7
cmp rax, 0
jne 0x140042ede
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x300]
mov r8d, 0x110
call sym.memcpy
cmp dword [rsp + 0x340], 3
je 0x140042f0e
jmp 0x140042ef7
mov rdx, qword [rsp + 0x90]
lea r8, [0x140158ed8]
mov ecx, 8
call dbg.panic_misaligned_pointer_dereference
mov rdx, qword [rsp + 0x348]
lea rcx, [rsp + 0x428]
call dbg.sysinfo::windows::sid::Sid::from_psid::h54b112153466eba1
jmp 0x140042f20
lea rcx, [rsp + 0x2f8]
call dbg.drop_in_place<sysinfo::windows::users::LsaBuffer<winapi::um::ntlsa::SECURITY_LOGON_SESSION_DATA>>
jmp 0x140042d80
movabs rdx, 0x8000000000000000
mov eax, 1
xor ecx, ecx
cmp qword [rsp + 0x428], rdx
cmove rax, rcx
cmp rax, 0
jne 0x140042f4d
mov byte [rsp + 0x565], 0
jmp 0x140042f0e
mov rax, qword [rsp + 0x438]
mov qword [rsp + 0x450], rax
movups xmm0, xmmword [rsp + 0x428]
movaps xmmword [rsp + 0x440], xmm0
mov byte [rsp + 0x565], 1
mov rax, qword [rsp + 0x450]
mov qword [rsp + 0x420], rax
movaps xmm0, xmmword [rsp + 0x440]
movaps xmmword [rsp + 0x410], xmm0
lea rcx, [rsp + 0x150]
call dbg.deref<sysinfo::common::User, alloc::alloc::Global>
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], rax
jmp 0x140042fdd
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call dbg.iter<sysinfo::common::User>
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rax
jmp 0x140042ffe
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x460], rcx
mov qword [rsp + 0x468], rax
lea rcx, [rsp + 0x460]
lea rdx, [rsp + 0x410]
call dbg.any<sysinfo::common::User, sysinfo::windows::users::get_users::{closure_env#1}>
mov byte [rsp + 0x6f], al
jmp 0x140043033
mov al, byte [rsp + 0x6f]
test al, 1
jne 0x140043054
jmp 0x14004303d
lea rcx, [rsp + 0x488]
lea rdx, [rsp + 0x410]
call dbg.sysinfo::windows::sid::Sid::account_name::h98fd7659431ed518
jmp 0x140043066
lea rcx, [rsp + 0x410]
call dbg.drop_in_place<sysinfo::windows::sid::Sid>
jmp 0x140042f43
lea r9, [0x140158ef0]
lea rcx, [rsp + 0x470]
lea rdx, [rsp + 0x488]
lea r8, [rsp + 0x300]
call dbg.core::option::Option<T>::unwrap_or_else::h2bea4232d28e5629
jmp 0x14004308c
mov byte [rsp + 0x565], 0
mov rax, qword [rsp + 0x420]
mov qword [rsp + 0x520], rax
movaps xmm0, xmmword [rsp + 0x410]
movaps xmmword [rsp + 0x510], xmm0
mov rax, qword [rsp + 0x520]
mov qword [rsp + 0x500], rax
movaps xmm0, xmmword [rsp + 0x510]
movaps xmmword [rsp + 0x4f0], xmm0
mov rax, qword [rsp + 0x480]
mov qword [rsp + 0x540], rax
movups xmm0, xmmword [rsp + 0x470]
movaps xmmword [rsp + 0x530], xmm0
lea rcx, [rsp + 0x548]
call dbg.alloc::vec::Vec<T>::new::h20a3a9f6cc89e34d
jmp 0x14004312b
mov rax, qword [rsp + 0x500]
mov qword [rsp + 0x4b0], rax
movaps xmm0, xmmword [rsp + 0x4f0]
movaps xmmword [rsp + 0x4a0], xmm0
mov dword [rsp + 0x4e8], 0
mov rax, qword [rsp + 0x540]
mov qword [rsp + 0x4c8], rax
movaps xmm0, xmmword [rsp + 0x530]
movups xmmword [rsp + 0x4b8], xmm0
mov rax, qword [rsp + 0x558]
mov qword [rsp + 0x4e0], rax
movups xmm0, xmmword [rsp + 0x548]
movups xmmword [rsp + 0x4d0], xmm0
lea rcx, [rsp + 0x150]
lea rdx, [rsp + 0x4a0]
call dbg.alloc::vec::Vec<T,A>::push::h7facb992a51b8f64
jmp 0x1400431ad
mov byte [rsp + 0x565], 0
jmp 0x140042e68
mov rax, qword [rsp + 0x148]
mov byte [rsp + 0x567], 0
add rsp, 0x5c8
ret
mov al, byte [rsp + 0xff]
test al, 1
jne 0x140042ba0
jmp 0x14004320c
call dbg.default<winapi::um::lmaccess::USER_INFO_23>
mov qword [rsp + 0x60], rax
jmp 0x140043218
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x5a8], 0
mov qword [rsp + 0x5b0], 0
jmp 0x140043267
mov rax, qword [rsp + 0x198]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x1a0]
call dbg.sysinfo::windows::users::NetApiBuffer<T>::inner_mut_as_bytes::h9f95cc4c07eec09a
mov qword [rsp + 0x58], rax
jmp 0x14004328b
mov r9, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
xor eax, eax
mov ecx, eax
mov r8d, 0x17
call sub.NETAPI32.dll_NetUserGetInfo
mov dword [rsp + 0x4c], eax
jmp 0x1400432aa
mov eax, dword [rsp + 0x4c]
cmp eax, 0
je 0x1400432c5
lea rcx, [rsp + 0x1a0]
call dbg.drop_in_place<sysinfo::windows::users::NetApiBuffer<winapi::um::lmaccess::USER_INFO_23>>
jmp 0x140042ba0
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x40], rax
and rax, 7
cmp rax, 0
jne 0x1400432f4
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0x1a8]
call dbg.sysinfo::windows::sid::Sid::from_psid::h54b112153466eba1
jmp 0x14004330a
mov rdx, qword [rsp + 0x40]
lea r8, [0x140158f08]
mov ecx, 8
call dbg.panic_misaligned_pointer_dereference
mov byte [rsp + 0x564], 1
movabs rdx, 0x8000000000000000
mov eax, 1
xor ecx, ecx
cmp qword [rsp + 0x1a8], rdx
cmove rax, rcx
cmp rax, 1
jne 0x14004337c
mov byte [rsp + 0x564], 0
mov byte [rsp + 0x566], 1
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [rsp + 0x1a8]
movaps xmmword [rsp + 0x1c0], xmm0
lea rcx, [rsp + 0x1f8]
lea rdx, [rsp + 0x1c0]
call dbg.sysinfo::windows::sid::Sid::account_name::h98fd7659431ed518
jmp 0x1400433d1
movabs rdx, 0x8000000000000000
mov eax, 1
xor ecx, ecx
cmp qword [rsp + 0x1a8], rdx
cmove rax, rcx
cmp rax, 1
je 0x140043554
jmp 0x14004355e
lea r9, [0x140158f20]
lea rcx, [rsp + 0x1e0]
lea rdx, [rsp + 0x1f8]
lea r8, [rsp + 0x198]
call dbg.core::option::Option<T>::unwrap_or_else::hc7dfd1df8b88fdd2
jmp 0x1400433f7
mov byte [rsp + 0x566], 0
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x290], rax
movaps xmm0, xmmword [rsp + 0x1c0]
movaps xmmword [rsp + 0x280], xmm0
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x270], rax
movaps xmm0, xmmword [rsp + 0x280]
movaps xmmword [rsp + 0x260], xmm0
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x2b0], rax
movups xmm0, xmmword [rsp + 0x1e0]
movaps xmmword [rsp + 0x2a0], xmm0
mov rax, qword [rsp + 0x198]
mov rdx, qword [rax]
lea rcx, [rsp + 0x2b8]
call dbg.get_groups_for_user
jmp 0x1400434a1
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x220], rax
movaps xmm0, xmmword [rsp + 0x260]
movaps xmmword [rsp + 0x210], xmm0
mov dword [rsp + 0x258], 0
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0x238], rax
movaps xmm0, xmmword [rsp + 0x2a0]
movups xmmword [rsp + 0x228], xmm0
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x250], rax
movups xmm0, xmmword [rsp + 0x2b8]
movups xmmword [rsp + 0x240], xmm0
lea rcx, [rsp + 0x150]
lea rdx, [rsp + 0x210]
call dbg.alloc::vec::Vec<T,A>::push::h7facb992a51b8f64
jmp 0x140043523
mov byte [rsp + 0x566], 0
jmp 0x14004337c
test byte [rsp + 0x564], 1
jne 0x14004356b
mov byte [rsp + 0x564], 0
jmp 0x1400432b3
lea rcx, [rsp + 0x1a8]
call dbg.drop_in_place<sysinfo::windows::sid::Sid>
jmp 0x14004355e