Function at 0x140031880
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 0x140031951
cmp eax, 0xea
jne 0x140031d89
mov rsi, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x9c]
test rcx, rcx
je 0x140031d6c
mov dword [rsp + 0xb8], eax
lea r14, [rsi + rcx*8]
jmp 0x14003198d
add rsi, 8
cmp rsi, r14
je 0x140031d60
cmp qword [rsi], 0
je 0x140031980
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 0x1400319d0
test rcx, rcx
jne 0x140031d4c
jmp 0x140031980
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x140031d3e
mov rcx, rdi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x140031d3e
mov rcx, rdi
call sub.advapi32.dll_GetLengthSid
mov r13d, eax
mov r15d, eax
test eax, eax
je 0x140031a19
mov edx, 1
mov rcx, r15
call sym.__rust_alloc_zeroed
mov rbp, rax
test rax, rax
jne 0x140031a1e
jmp 0x1400320f4
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 0x140031a90
test r13d, r13d
je 0x1400320e2
cmp byte [rbp], 1
jne 0x140032103
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::h5a751c54971fb3b1
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140031aaf
mov r15, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
jmp 0x140031b06
test r13d, r13d
je 0x140031d3e
mov r8d, 1
mov rcx, rbp
mov rdx, r15
call sym.__rust_dealloc
jmp 0x140031d3e
mov rdx, qword [rsi]
mov r8, 0xffffffffffffffff
nop dword [rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140031ac0
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, [0x1402c6388]
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x140031b7e
mov qword [rsp + 0x60], 8
movups xmmword [rbx], xmm6
jmp 0x140031bed
mov ebx, dword [rsp + 0x7c]
test rbx, rbx
je 0x140031bb4
lea rax, [rbx*8]
lea r13, [rax + rax*2]
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov edx, 8
mov rcx, r13
call sym.__rust_alloc
test rax, rax
jne 0x140031bb9
jmp 0x14003215f
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 0x140031c25
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_extend17hbe8cf38c
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 0x140031c51
call fcn.1402681a4
jmp 0x140031c51
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 0x140031cde
lea rcx, [rsp + 0x80]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h0eaf5ae9878da7ca
lea r12, [rsp + 0x50]
mov rdx, qword [rsp + 0x90]
jmp 0x140031ce3
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 0x140031980
call fcn.1402681a4
jmp 0x140031980
mov rsi, qword [rsp + 0x58]
mov eax, dword [rsp + 0xb8]
cmp eax, 0xea
jne 0x140031d8e
test rsi, rsi
je 0x1400318e0
mov rcx, rsi
call fcn.1402681a4
jmp 0x1400318e0
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140031d9b
mov rcx, rsi
call fcn.1402681a4
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 0x14003208a
mov eax, dword [rsp + 0x58]
test rax, rax
je 0x14003208a
lea rdi, [rsi + rax*8]
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0xc0]
xorps xmm6, xmm6
mov qword [rsp + 0xb8], rdi
jmp 0x140031e0f
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140031e02
call fcn.14026807c
add rsi, 8
cmp rsi, rdi
je 0x140032085
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 0x140032060
test rcx, rcx
je 0x140032060
cmp dword [rcx + 0x40], 3
je 0x140031dfd
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::hf487fcbe78342932
cmp qword [rsp + 0xc0], 0
je 0x140031df3
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 0x140031f0c
mov rbx, qword [rsp + 0x80]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x140031eb9
add r15, 0x50
cmp rdi, r15
je 0x140031f0c
cmp qword [rbx + r15 + 0x10], r14
jne 0x140031eb0
mov rcx, qword [rbx + r15]
mov rdx, rbp
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140031eb0
mov rdx, qword [rsp + 0xa8]
test rdx, rdx
mov rdi, qword [rsp + 0xb8]
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0xc0]
je 0x140031df3
mov r8d, 1
mov rcx, rbp
call sym.__rust_dealloc
jmp 0x140031df3
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0xa0]
call sym.sysinfo::windows::sid::Sid::account_name::h5a751c54971fb3b1
lea rcx, [rsp + 0x68]
lea r14, [rsp + 0xc0]
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x140031f5f
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 0x140032073
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 0x140031ff5
lea rcx, [rsp + 0x80]
call sym.alloc::raw_vec::RawVec_T_A_::reserve_for_push::h0eaf5ae9878da7ca
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 0x140031e02
call fcn.14026807c
jmp 0x140031e02
movaps xmmword [rsp + 0x120], xmm6
mov eax, 1
jmp 0x140031f6a
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 0x1400320b6
mov rcx, rsi
call fcn.14026807c
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_o_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_sid.rs
xor ecx, ecx
xor edx, edx
call dbg.panic_bounds_check
jmp 0x14003216c
mov ecx, 1
mov rdx, r15
call dbg.handle_alloc_error
jmp 0x14003216c
lea rax, str.Yn__
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 1
lea rax, str.PoisonError:_C__max:_C___critical:_C_
mov qword [rsp + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xd8], xmm0
lea rax, str._Users_o_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x1402c6e58]
lea r9, [rsp + 0xc0]
xor ecx, ecx
mov rdx, rbp
call sym.core::panicking::assert_failed::hf41db3edfac53c09
jmp 0x14003216c
mov ecx, 8
mov rdx, r13
call dbg.handle_alloc_error
ud2