Function at 0x140227a80
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, 0x118
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 8
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0xe8], 0
mov dword [rsp + 0xec], 0
lea rbx, [rsp + 0x60]
jmp 0x140227b01
cmp dword [rsp + 0x90], 0xea
jne 0x140227f9a
lea rax, [rsp + 0xec]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x94]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0x98]
call sub.netapi32.dll_NetUserEnum
mov dword [rsp + 0x90], eax
cmp eax, 0xea
je 0x140227b63
cmp dword [rsp + 0x90], 0
jne 0x140227f70
mov rsi, qword [rsp + 0x98]
mov eax, dword [rsp + 0x94]
test rax, rax
je 0x140227f78
lea rax, [rsi + rax*8]
mov qword [rsp + 0x110], rax
jmp 0x140227bf9
mov rax, qword [rsp + 0x80]
lea rcx, [rdi + rdi*8]
mov rdx, qword [rsp + 0xe0]
mov qword [rax + rcx*8 + 0x40], rdx
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movaps xmm3, xmmword [rsp + 0xd0]
movups xmmword [rax + rcx*8 + 0x30], xmm3
movups xmmword [rax + rcx*8 + 0x20], xmm2
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8], xmm0
inc rdi
mov qword [rsp + 0x88], rdi
add rsi, 8
cmp rsi, qword [rsp + 0x110]
je 0x140227f70
mov rdi, qword [rsi]
test rdi, rdi
je 0x140227be7
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x14032fc58]
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x140227c90
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 8
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140227dd0
call sub.netapi32.dll_NetApiBufferFree
jmp 0x140227dd0
mov r15d, dword [rsp + 0x5c]
test r15, r15
je 0x140227cc7
lea rax, [r15*8]
lea r14, [rax + rax*2]
mov rax, qword [0x1403591d8]
movzx eax, byte [rax]
mov edx, 8
mov rcx, r14
call sym.__rust_alloc
test rax, rax
jne 0x140227ccc
jmp 0x1402282b5
mov eax, 8
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140227dd0
mov r14d, dword [rsp + 0x5c]
test r14, r14
je 0x140227c80
xor r15d, r15d
jmp 0x140227d28
mov rax, qword [rsp + 0x48]
lea rcx, [rbx + rbx*2]
mov qword [rax + rcx*8], r13
mov qword [rax + rcx*8 + 8], rbp
mov qword [rax + rcx*8 + 0x10], r12
inc rbx
mov qword [rsp + 0x50], rbx
cmp r15, r14
je 0x140227c72
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140227dd0
mov rdx, qword [rax + r15*8]
inc r15
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140227d50
lea rcx, [rsp + 0xa0]
call sym.alloc::string::String::from_utf16::h92bc63552228ad98
mov r13, qword [rsp + 0xa0]
movabs rax, 0x8000000000000000
cmp r13, rax
mov r12, qword [rsp + 0xb0]
mov eax, 0
cmove r12, rax
mov rbp, qword [rsp + 0xa8]
mov ecx, 1
cmove rbp, rcx
cmove r13, rax
mov rbx, qword [rsp + 0x50]
cmp rbx, qword [rsp + 0x40]
jne 0x140227d00
lea rcx, [rsp + 0x40]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::h0bfe30b1f24680fd
jmp 0x140227d00
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf8], rax
mov r8, 0xffffffffffffffff
nop
cmp word [rdi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140227e00
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call sym.alloc::string::String::from_utf16::h92bc63552228ad98
lea rbx, [rsp + 0x60]
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xa0], rax
jne 0x140227e60
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x70], 0
jmp 0x140227e7a
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x40]
mov rdx, rbx
call sym.__alloc::string::String_as_core::clone::Clone_::clone::h5717c2ac5065a2fe
mov r13, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp r13, rdi
jbe 0x140227ed0
test rdi, rdi
je 0x140227ed5
mov r8d, 1
mov rcx, r14
mov rdx, r13
mov r9, rdi
call sym.__rust_realloc
mov rbp, rax
test rax, rax
jne 0x140227ef0
jmp 0x1402282a6
mov rbp, r14
jmp 0x140227ef0
mov ebp, 1
mov r8d, 1
mov rcx, r14
mov rdx, r13
call sym.__rust_dealloc
nop dword [rax + rax]
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x100]
lea rcx, [rsp + 0xb8]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xf0]
movups xmmword [rcx], xmm0
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xd8], rdi
mov dword [rsp + 0xe0], 0
mov rdi, qword [rsp + 0x88]
cmp rdi, qword [rsp + 0x78]
jne 0x140227b90
lea rcx, [rsp + 0x78]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::hd0e00e746192e8f1
jmp 0x140227b90
mov rsi, qword [rsp + 0x98]
test rsi, rsi
je 0x140227af0
mov rcx, rsi
call sub.netapi32.dll_NetApiBufferFree
mov qword [rsp + 0x98], 0
jmp 0x140227af0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0xf0], 0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
call sub.secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x140227ff4
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x108]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax], xmm0
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, dword [rsp + 0x58]
test r14, r14
je 0x140227fc4
xor ebx, ebx
lea rsi, [rsp + 0x60]
jmp 0x140228018
inc rbx
cmp rbx, r14
je 0x140227fc4
lea rcx, [rbx*8]
add rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x60], 0
mov rdx, rsi
call sub.secur32.dll_LsaGetLogonSessionData
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x140228293
test rcx, rcx
je 0x140228293
cmp dword [rcx + 0x40], 3
je 0x140228010
mov rdx, qword [rcx + 0x18]
mov r8, 0xffffffffffffffff
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140228060
lea rcx, [rsp + 0xa0]
call sym.alloc::string::String::from_utf16::h92bc63552228ad98
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xa0], rax
jne 0x1402280c4
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
mov r15d, 1
xor r12d, r12d
mov rax, qword [rsp + 0x88]
test rax, rax
jne 0x1402280f0
jmp 0x140228155
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x40], xmm0
mov r12, qword [rsp + 0xb0]
mov qword [rsp + 0x50], r12
mov r15, qword [rsp + 0x48]
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x140228155
mov r13, qword [rsp + 0x80]
shl rax, 3
lea rbp, [rax + rax*8]
xor edi, edi
jmp 0x140228119
add rdi, 0x48
cmp rbp, rdi
je 0x140228155
cmp qword [r13 + rdi + 0x10], r12
jne 0x140228110
mov rcx, qword [r13 + rdi + 8]
mov rdx, r15
mov r8, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140228110
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140228010
mov r8d, 1
mov rcx, r15
call sym.__rust_dealloc
jmp 0x140228010
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
call sym.__alloc::string::String_as_core::clone::Clone_::clone::h5717c2ac5065a2fe
mov r15, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
cmp r15, r12
jbe 0x1402281aa
test r12, r12
je 0x1402281af
mov r8d, 1
mov rcx, r13
mov rdx, r15
mov r9, r12
call sym.__rust_realloc
mov rbp, rax
test rax, rax
jne 0x1402281c5
jmp 0x1402282c4
mov rbp, r13
jmp 0x1402281c5
mov ebp, 1
mov r8d, 1
mov rcx, r13
mov rdx, r15
call sym.__rust_dealloc
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xd8], r12
mov dword [rsp + 0xe0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 8
mov qword [rsp + 0xc8], 0
mov r15, qword [rsp + 0x88]
cmp r15, qword [rsp + 0x78]
jne 0x140228237
lea rcx, [rsp + 0x78]
call sym.alloc::raw_vec::RawVec_T_A_::grow_one::hd0e00e746192e8f1
mov rax, qword [rsp + 0x80]
lea rcx, [r15 + r15*8]
mov rdx, qword [rsp + 0xe0]
mov qword [rax + rcx*8 + 0x40], rdx
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movaps xmm3, xmmword [rsp + 0xd0]
movups xmmword [rax + rcx*8 + 0x30], xmm3
movups xmmword [rax + rcx*8 + 0x20], xmm2
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8], xmm0
inc r15
mov qword [rsp + 0x88], r15
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140228010
call sub.secur32.dll_LsaFreeReturnBuffer
jmp 0x140228010
mov ecx, 1
mov rdx, rdi
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x1402282d1
mov ecx, 8
mov rdx, r14
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x1402282d1
mov ecx, 1
mov rdx, r12
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
ud2