Function at 0x140028740
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, 0x158
mov qword [rsp + 0x138], rcx
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 8
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x12c], 0
lea r12, [rsp + 0x48]
nop
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0x130], 0
lea rax, [rsp + 0x12c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0xa8]
call sub.netapi32.dll_NetUserEnum
test eax, eax
je 0x140028807
cmp eax, 0xea
jne 0x140028d4c
mov rsi, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xb4]
test rcx, rcx
je 0x140028d2f
mov dword [rsp + 0x128], eax
lea rbx, [rsi + rcx*8]
jmp 0x14002883d
add rsi, 8
cmp rsi, rbx
je 0x140028d20
mov r14, qword [rsi]
test r14, r14
je 0x140028830
mov qword [rsp + 0x48], 0
xor ecx, ecx
mov rdx, r14
mov r8d, 0x17
mov r9, r12
call sub.netapi32.dll_NetUserGetInfo
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140028880
test rcx, rcx
jne 0x140028d0c
jmp 0x140028830
mov r13, qword [rcx + 0x20]
test r13, r13
je 0x140028cfe
mov rcx, r13
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x140028cfe
mov rcx, r13
call sub.advapi32.dll_GetLengthSid
mov ebp, eax
mov edi, eax
test eax, eax
je 0x1400288c8
mov edx, 1
mov rcx, rdi
call sym.__rust_alloc_zeroed
test rax, rax
je 0x140029119
mov r15, rax
jmp 0x1400288ce
mov r15d, 1
mov ecx, ebp
mov rdx, r15
mov r8, r13
call sub.advapi32.dll_CopySid
test eax, eax
je 0x14002899a
test ebp, ebp
je 0x140029128
cmp byte [r15], 1
jne 0x1400290c0
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xc8], rdi
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0xb8]
call sym.sysinfo::windows::sid::Sid::account_name::he4b99e4e3a17367b
mov rbp, qword [rsp + 0x70]
movabs rax, 0x8000000000000000
cmp rbp, rax
jne 0x1400289b8
mov r8, 0xffffffffffffffff
nop
cmp word [r14 + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140028940
lea rcx, [rsp + 0xd0]
mov rdx, r14
call sym.alloc::string::String::from_utf16::hb0a032b3375bfef6
mov rbp, qword [rsp + 0xd0]
movabs rax, 0x8000000000000000
cmp rbp, rax
mov rdi, qword [rsp + 0xe0]
mov eax, 0
cmove rdi, rax
mov r15, qword [rsp + 0xd8]
mov ecx, 1
cmove r15, rcx
cmove rbp, rax
jmp 0x1400289c5
test ebp, ebp
je 0x140028cfe
mov r8d, 1
mov rcx, r15
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x140028cfe
mov r15, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x140], rax
mov r12, qword [rsp + 0xc8]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x134], 0
lea rax, [rsp + 0x134]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x1400e04e8]
mov rdx, r14
xor r8d, r8d
mov r9d, 1
mov qword [rsp + 0x148], r15
call sub.netapi32.dll_NetUserGetLocalGroups
mov qword [rsp + 0x150], rdi
test eax, eax
je 0x140028a80
mov qword [rsp + 0x120], rbp
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 8
xor r13d, r13d
jmp 0x140028bcc
mov r13d, dword [rsp + 0x6c]
test r13, r13
je 0x140028abb
lea rax, [r13*8]
lea rdi, [rax + rax*2]
mov rax, qword [0x140109d88]
movzx eax, byte [rax]
mov edx, 8
mov rcx, rdi
call sym.__rust_alloc
test rax, rax
je 0x14002913a
mov r14, rax
jmp 0x140028ac1
mov r14d, 8
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0
mov r15, qword [rsp + 0x40]
test r15, r15
je 0x140028b0a
mov edi, dword [rsp + 0x6c]
cmp r13d, edi
mov qword [rsp + 0x120], rbp
jae 0x140028b30
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8, rdi
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h5502c8c254cdb4b4
mov r14, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
jmp 0x140028b44
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
jmp 0x140028bff
mov r13d, 0
mov eax, 0
test rdi, rdi
je 0x140028bcc
mov r13, rax
xor ebp, ebp
nop dword [rax]
mov rdx, qword [r15 + rbp*8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140028b60
lea rcx, [rsp + 0x70]
call sym.alloc::string::String::from_utf16::hb0a032b3375bfef6
mov rax, qword [rsp + 0x70]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov rcx, qword [rsp + 0x80]
mov r8d, 0
cmove rcx, r8
mov rdx, qword [rsp + 0x78]
mov r9d, 1
cmove rdx, r9
cmove rax, r8
lea r8, [r13 + r13*2]
mov qword [r14 + r8*8], rax
mov qword [r14 + r8*8 + 8], rdx
mov qword [r14 + r8*8 + 0x10], rcx
inc r13
inc rbp
cmp rbp, rdi
jne 0x140028b50
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r13
test rcx, rcx
mov rbp, qword [rsp + 0x120]
je 0x140028bff
call sub.netapi32.dll_NetApiBufferFree
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], r12
mov dword [rsp + 0x118], 0
mov qword [rsp + 0xe8], rbp
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x80]
lea rcx, [rsp + 0x100]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x78]
mov qword [rcx + 8], rax
mov rdi, qword [rsp + 0xa0]
cmp rdi, qword [rsp + 0x90]
jne 0x140028c9e
lea rcx, [rsp + 0x90]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h908e2c6727a31934
mov rax, qword [rsp + 0x98]
lea rcx, [rdi + rdi*4]
shl rcx, 4
movups xmm0, xmmword [rsp + 0x110]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rsp + 0xd0]
movups xmm1, xmmword [rsp + 0xe0]
movups xmm2, xmmword [rsp + 0xf0]
movups xmm3, xmmword [rsp + 0x100]
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 [rsp + 0xa0], rdi
lea r12, [rsp + 0x48]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140028830
call sub.netapi32.dll_NetApiBufferFree
jmp 0x140028830
mov rsi, qword [rsp + 0xa8]
mov eax, dword [rsp + 0x128]
cmp eax, 0xea
jne 0x140028d54
test rsi, rsi
je 0x140028790
mov rcx, rsi
call sub.netapi32.dll_NetApiBufferFree
jmp 0x140028790
mov rsi, qword [rsp + 0xa8]
test rsi, rsi
je 0x140028d61
mov rcx, rsi
call sub.netapi32.dll_NetApiBufferFree
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x40]
call sub.secur32.dll_LsaEnumerateLogonSessions
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x140029078
mov eax, dword [rsp + 0x48]
test rax, rax
je 0x140029078
lea rdi, [rsi + rax*8]
lea rbx, [rsp + 0xb8]
lea r14, [rsp + 0xd0]
mov qword [rsp + 0x88], rdi
jmp 0x140028dd8
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140028dcb
call sub.secur32.dll_LsaFreeReturnBuffer
add rsi, 8
cmp rsi, rdi
je 0x140029073
mov qword [rsp + 0xb8], 0
mov rcx, rsi
mov rdx, rbx
call sub.secur32.dll_LsaGetLogonSessionData
mov rcx, qword [rsp + 0xb8]
test eax, eax
jne 0x140029060
test rcx, rcx
je 0x140029060
cmp dword [rcx + 0x40], 3
je 0x140028dc6
movzx r13d, word [rcx + 0x10]
mov rbp, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r14
call sym.sysinfo::windows::sid::Sid::from_psid::h73c57f423f398e69
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xd0], rax
je 0x140028db9
mov r14, qword [rsp + 0xe0]
mov qword [rsp + 0x60], r14
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x140028edd
mov rbx, qword [rsp + 0x98]
mov r12, qword [rsp + 0x58]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x140028e89
add r15, 0x50
cmp rdi, r15
je 0x140028edd
cmp qword [rbx + r15 + 0x10], r14
jne 0x140028e80
mov rcx, qword [rbx + r15 + 8]
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140028e80
mov rdx, qword [rsp + 0x50]
test rdx, rdx
mov rdi, qword [rsp + 0x88]
lea rbx, [rsp + 0xb8]
lea r14, [rsp + 0xd0]
je 0x140028db9
mov r8d, 1
mov rcx, r12
call sym.__rust_dealloc
jmp 0x140028db9
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x50]
call sym.sysinfo::windows::sid::Sid::account_name::he4b99e4e3a17367b
lea r14, [rsp + 0xd0]
mov rax, qword [rsp + 0x70]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140028f57
shr r13d, 1
mov rcx, r14
mov rdx, rbp
mov r8, r13
call sym.alloc::string::String::from_utf16::hb0a032b3375bfef6
mov rax, qword [rsp + 0xd0]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov r8d, 0
cmove rax, r8
mov rcx, qword [rsp + 0xd8]
mov edx, 1
cmove rcx, rdx
mov rdx, qword [rsp + 0xe0]
cmove rdx, r8
jmp 0x140028f64
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0xe0], r8
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0x118], 0
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 8
mov qword [rsp + 0x110], 0
mov rbx, qword [rsp + 0xa0]
cmp rbx, qword [rsp + 0x90]
jne 0x140028fe4
lea rcx, [rsp + 0x90]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h908e2c6727a31934
mov rax, qword [rsp + 0x98]
lea rcx, [rbx + rbx*4]
shl rcx, 4
movaps xmm0, xmmword [rsp + 0x110]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movaps xmm2, xmmword [rsp + 0xf0]
movaps xmm3, xmmword [rsp + 0x100]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rbx
mov qword [rsp + 0xa0], rbx
mov rcx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x88]
lea rbx, [rsp + 0xb8]
nop word [rax + rax]
test rcx, rcx
je 0x140028dcb
call sub.secur32.dll_LsaFreeReturnBuffer
jmp 0x140028dcb
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x138]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rcx], xmm0
test rsi, rsi
je 0x1400290a4
mov rcx, rsi
call sub.secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rsp + 0x138]
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], 1
mov qword [rsp + 0xe0], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0xe8], xmm0
lea rax, str._home_l1nvx_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x1400e1558]
lea r9, [rsp + 0xd0]
xor ecx, ecx
mov rdx, r15
call sym.core::panicking::assert_failed::h7db682bcf908b6df
jmp 0x140029147
mov ecx, 1
mov rdx, rdi
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
jmp 0x140029147
lea r8, str._home_l1nvx_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_sid.rs
xor ecx, ecx
xor edx, edx
call sym.core::panicking::panic_bounds_check::ha5eba36dbaff2278
jmp 0x140029147
mov ecx, 8
mov rdx, rdi
call sym.alloc::raw_vec::handle_error::h5313441c9bd13595
ud2