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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov rbx, rcx
movabs r13, 0x8000000000000000
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
mov qword [rcx + 0x10], 0
test rdi, rdi
je 0x18002ba7a
add rsi, 0x38
jmp 0x18002ba29
add rsi, 0x50
dec rdi
je 0x18002ba7a
mov rdx, qword [rsi - 0x38]
test rdx, rdx
je 0x18002ba41
mov rcx, qword [rsi - 0x30]
mov r8d, 1
call sym.__rust_dealloc
mov rdx, qword [rsi - 0x20]
test rdx, rdx
je 0x18002ba59
mov rcx, qword [rsi - 0x18]
mov r8d, 1
call sym.__rust_dealloc
mov rdx, qword [rsi - 8]
cmp rdx, r13
je 0x18002ba20
test rdx, rdx
je 0x18002ba20
mov rcx, qword [rsi]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
jmp 0x18002ba20
mov dword [rsp + 0x128], 0
mov qword [rsp + 0x110], 0
lea r14, [rsp + 0x48]
lea r15, [rsp + 0xf8]
mov qword [rsp + 0x90], rbx
nop word cs:[rax + rax]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x12c], 0
lea rax, [rsp + 0x128]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x12c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0x60]
call sub.netapi32.dll_NetUserEnum
test eax, eax
je 0x18002bb1b
cmp eax, 0xea
jne 0x18002be99
mov r12, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x6c]
test rbp, rbp
je 0x18002be7c
mov dword [rsp + 0x124], eax
shl rbp, 3
xor edi, edi
mov qword [rsp + 0x160], r12
mov qword [rsp + 0x158], rbp
jmp 0x18002bb5d
add rdi, 8
cmp rbp, rdi
je 0x18002be70
mov rsi, qword [r12 + rdi]
test rsi, rsi
je 0x18002bb50
mov qword [rsp + 0x48], 0
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x17
mov r9, r14
call sub.netapi32.dll_NetUserGetInfo
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x18002bba0
test rcx, rcx
jne 0x18002be63
jmp 0x18002bb50
mov rdx, qword [rcx + 0x20]
mov rcx, r15
call sym.sysinfo::windows::sid::Sid::from_psid::h80ffd4f48a8bb637
cmp qword [rsp + 0xf8], r13
je 0x18002be55
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x70]
call sym.sysinfo::windows::sid::Sid::account_name::h14fe0ef8164bcfd9
mov rbx, qword [rsp + 0x140]
cmp rbx, r13
jne 0x18002bc6a
mov rax, qword [r12 + rdi]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18002bc8c
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x50]
call sym.windows_core::strings::pwstr::PWSTR::to_string::hb199e864aa2c9e54
mov rbx, qword [rsp + 0xa0]
cmp rbx, r13
mov rax, qword [rsp + 0xb0]
mov ecx, 0
cmove rax, rcx
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0xa8]
mov eax, 1
cmove rdx, rax
mov qword [rsp + 0x98], rdx
mov eax, 0
mov qword [rsp + 0x110], rax
cmove rbx, rcx
jmp 0x18002bca7
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x118], rax
jmp 0x18002bca7
mov eax, 1
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x118], 0
xor ebx, ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x138], rax
mov r15, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rsi
lea rcx, [rsp + 0xa0]
call sym.windows_core::strings::pcwstr::PCWSTR::as_wide::h443b2457cba6bee4
mov rsi, rdx
mov rbp, rbx
test rdx, rdx
js 0x18002c1d6
mov r14, rax
lea rbx, [rsi + rsi]
lea rax, [r13 - 2]
cmp rbx, rax
ja 0x18002c1d6
test rbx, rbx
je 0x18002bd2b
mov rax, qword [0x180143fe8]
movzx eax, byte [rax]
mov edx, 2
mov rcx, rbx
call sym.__rust_alloc
test rax, rax
je 0x18002c1c1
mov r12, rax
mov r13, rsi
jmp 0x18002bd34
mov r12d, 2
xor r13d, r13d
mov rcx, r12
mov rdx, r14
mov r8, rbx
call fcn.180102e60
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], rbp
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0x130], r12
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xe0], rsi
mov dword [rsp + 0xe8], 0
mov byte [rsp + 0xec], 1
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rbx + 0x10]
cmp rsi, qword [rbx]
jne 0x18002bddb
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h7b082749f19f2296
mov rax, qword [rbx + 8]
lea rcx, [rsi + rsi*4]
shl rcx, 4
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rsp + 0xa0]
movups xmm1, xmmword [rsp + 0xb0]
movups xmm2, xmmword [rsp + 0xc0]
movups xmm3, xmmword [rsp + 0xd0]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rsi
mov qword [rbx + 0x10], rsi
movabs r13, 0x8000000000000000
lea r14, [rsp + 0x48]
lea r15, [rsp + 0xf8]
mov r12, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002bb50
call sub.netapi32.dll_NetApiBufferFree
jmp 0x18002bb50
mov r12, qword [rsp + 0x60]
mov eax, dword [rsp + 0x124]
cmp eax, 0xea
jne 0x18002be9e
test r12, r12
je 0x18002bab0
mov rcx, r12
call sub.netapi32.dll_NetApiBufferFree
jmp 0x18002bab0
mov r12, qword [rsp + 0x60]
test r12, r12
je 0x18002beab
mov rcx, r12
call sub.netapi32.dll_NetApiBufferFree
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x50]
call sub.secur32.dll_LsaEnumerateLogonSessions
mov rdi, qword [rsp + 0x50]
test eax, eax
js 0x18002c19f
mov eax, dword [rsp + 0x48]
test rax, rax
je 0x18002c19f
lea r14, [rdi + rax*8]
lea r15, [rsp + 0xf8]
lea r12, [rsp + 0xa0]
mov qword [rsp + 0x58], r14
jmp 0x18002bf72
mov rax, qword [rbx + 8]
lea rcx, [rsi + rsi*4]
shl rcx, 4
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movaps xmm3, xmmword [rsp + 0xd0]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rsi
mov qword [rbx + 0x10], rsi
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x18002bf65
call sub.secur32.dll_LsaFreeReturnBuffer
add rdi, 8
cmp rdi, r14
je 0x18002c19a
mov qword [rsp + 0xf8], 0
mov rcx, rdi
mov rdx, r15
call sub.secur32.dll_LsaGetLogonSessionData
test eax, eax
sets al
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
sete dl
or dl, al
jne 0x18002bf5b
cmp dword [rcx + 0x40], 3
je 0x18002bf60
movzx esi, word [rcx + 0x10]
mov r13, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r12
call sym.sysinfo::windows::sid::Sid::from_psid::h80ffd4f48a8bb637
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xa0], rax
je 0x18002bf53
mov r15, qword [rsp + 0xb0]
mov qword [rsp + 0x80], r15
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x18002c082
mov rcx, qword [rsp + 0x90]
mov r14, qword [rcx + 8]
mov rbp, qword [rsp + 0x78]
shl rax, 4
lea rbx, [rax + rax*4]
xor r12d, r12d
jmp 0x18002c029
add r12, 0x50
cmp rbx, r12
je 0x18002c082
cmp qword [r14 + r12 + 0x10], r15
jne 0x18002c020
mov rcx, qword [r14 + r12 + 8]
mov rdx, rbp
mov r8, r15
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x18002c020
mov rdx, qword [rsp + 0x70]
test rdx, rdx
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x58]
lea r15, [rsp + 0xf8]
lea r12, [rsp + 0xa0]
je 0x18002bf53
mov r8d, 1
mov rcx, rbp
call sym.__rust_dealloc
jmp 0x18002bf53
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x70]
call sym.sysinfo::windows::sid::Sid::account_name::h14fe0ef8164bcfd9
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x58]
lea r15, [rsp + 0xf8]
lea r12, [rsp + 0xa0]
mov rax, qword [rsp + 0x140]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x18002c116
shr esi, 1
mov rcx, r12
mov rdx, r13
mov r8, rsi
call sym.alloc::string::String::from_utf16::h4744c21ae7e2a76e
mov rax, qword [rsp + 0xa0]
movabs r9, 0x8000000000000000
cmp rax, r9
mov r8d, 0
cmove rax, r8
mov rcx, qword [rsp + 0xa8]
mov edx, 1
cmove rcx, rdx
mov rdx, qword [rsp + 0xb0]
cmove rdx, r8
jmp 0x18002c130
mov rcx, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x150]
movabs r9, 0x8000000000000000
mov r8, qword [rsp + 0x80]
mov qword [rsp + 0xb0], r8
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], rdx
mov qword [rsp + 0xd0], r9
mov dword [rsp + 0xe8], 0
mov byte [rsp + 0xec], 0
mov rsi, qword [rbx + 0x10]
cmp rsi, qword [rbx]
jne 0x18002bf00
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h7b082749f19f2296
jmp 0x18002bf00
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18002c1ac
mov rcx, rdi
call sub.secur32.dll_LsaFreeReturnBuffer
nop
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 2
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x130], rbx
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x130]
call sym.alloc::raw_vec::handle_error::hcf880acc1984e8dc
ud2