Function at 0x14002e4c0
Capabilities:
Get logon sessions
List groups for user account
List user accounts

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], 0xfffffffffffffffe
mov qword [rcx], 0
mov qword [rcx + 8], 8
mov qword [rbp + 0x70], rcx
mov qword [rcx + 0x10], 0
mov dword [rbp - 0x2c], 0
lea rdi, [rbp + 0x98]
nop
mov qword [rbp + 0x60], 0
mov dword [rbp + 0x5c], 0
mov dword [rbp - 0x30], 0
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x60]
call sub.netapi32.dll_NetUserEnum
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
cmp eax, 0xea
je 0x14002e571
test eax, eax
jne 0x14002e917
mov r13, qword [rbp + 0x60]
mov eax, dword [rbp + 0x5c]
lea r12, [rax*8]
add r12, r13
jmp 0x14002e595
call sub.netapi32.dll_NetApiBufferFree
cmp r13, r12
je 0x14002e8f0
mov rbx, r13
add r13, 8
cmp qword [rbx], 0
je 0x14002e595
mov qword [rbp + 0x98], 0
mov rdx, qword [rbx]
xor ecx, ecx
mov r8d, 0x17
mov r9, rdi
call sub.netapi32.dll_NetUserGetInfo
test eax, eax
je 0x14002e5e0
mov rcx, qword [rbp + 0x98]
test rcx, rcx
jne 0x14002e590
jmp 0x14002e595
mov rcx, qword [rbp + 0x98]
mov r15, qword [rcx + 0x20]
test r15, r15
je 0x14002e590
mov rcx, r15
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x14002e5cd
mov rcx, r15
call sub.advapi32.dll_GetLengthSid
mov r14d, eax
mov ecx, eax
test eax, eax
mov qword [rbp + 0xb0], rcx
je 0x14002e636
mov edx, 1
mov rcx, qword [rbp + 0xb0]
call fcn.14001c260
mov rcx, qword [rbp + 0xb0]
test rax, rax
jne 0x14002e63b
jmp 0x14002ebe5
mov eax, 1
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rcx
mov ecx, r14d
mov qword [rbp + 0xa0], rax
mov rdx, rax
mov r8, r15
call sub.advapi32.dll_CopySid
test eax, eax
mov rax, qword [rbp + 0xb0]
je 0x14002e6bf
test r14d, r14d
mov rdx, qword [rbp + 0xa0]
je 0x14002ebd3
cmp byte [rdx], 1
jne 0x14002ebf1
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rax
mov byte [rbp + 0xbe], 1
lea rcx, [rbp + 0x78]
lea rdx, [rbp - 0x28]
call fcn.140029670
mov rax, qword [rbp + 0x80]
test rax, rax
je 0x14002e6e6
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x88]
jmp 0x14002e72d
test r14d, r14d
mov rcx, qword [rbp + 0xa0]
je 0x14002e5cd
mov r8d, 1
mov rdx, qword [rbp + 0xb0]
call fcn.14001c240
jmp 0x14002e5cd
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14002e6f0
mov byte [rbp + 0xbe], 1
lea rcx, [rbp - 0x10]
call fcn.1401faba0
mov rcx, qword [rbp - 8]
test rcx, rcx
mov rdx, qword [rbp]
cmove rdx, rcx
mov rax, rcx
mov esi, 1
cmove rax, rsi
cmovne rcx, qword [rbp - 0x10]
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rdx
mov rdx, qword [rbx]
mov qword [rbp + 0xa8], 0
mov dword [rbp + 0x94], 0
mov dword [rbp - 0x34], 0
mov byte [rbp + 0xbc], 0
lea rax, [rbp - 0x34]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x94]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x14021c6a0]
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x14002e7c1
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 8
mov qword [rbp + 0x88], 0
jmp 0x14002e830
mov esi, dword [rbp + 0x94]
test rsi, rsi
je 0x14002e7ef
lea rax, [rsi*8]
lea rbx, [rax + rax*2]
mov edx, 8
mov rcx, rbx
call fcn.14001c230
test rax, rax
jne 0x14002e7f4
jmp 0x14002ec3f
mov eax, 8
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 0
mov r8, qword [rbp + 0xa8]
test r8, r8
je 0x14002e841
mov eax, dword [rbp + 0x94]
lea rdx, [r8 + rax*8]
mov byte [rbp + 0xbc], 1
lea rcx, [rbp + 0x78]
call fcn.14002f4a0
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14002e841
call sub.netapi32.dll_NetApiBufferFree
mov rcx, qword [rbp + 0xb0]
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp + 0xa0]
mov qword [rbp - 8], rax
mov qword [rbp], rcx
mov dword [rbp + 0x38], 0
mov rax, qword [rbp + 0x50]
lea rcx, [rbp + 8]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rbp + 0x88]
mov qword [rcx + 0x28], rax
movups xmm0, xmmword [rbp + 0x78]
movups xmmword [rcx + 0x18], xmm0
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx]
jne 0x14002e8a4
mov rsi, rcx
call fcn.140026e50
mov rdx, qword [rsi + 0x10]
mov rcx, rsi
mov rax, qword [rcx + 8]
lea rbx, [rdx + rdx*4]
shl rbx, 4
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rax + rbx + 0x40], xmm0
movups xmm0, xmmword [rbp - 0x10]
movups xmm1, xmmword [rbp]
movups xmm2, xmmword [rbp + 0x10]
movups xmm3, xmmword [rbp + 0x20]
movups xmmword [rax + rbx + 0x30], xmm3
movups xmmword [rax + rbx + 0x20], xmm2
movups xmmword [rax + rbx + 0x10], xmm1
movups xmmword [rax + rbx], xmm0
inc rdx
mov qword [rcx + 0x10], rdx
jmp 0x14002e5cd
cmp dword [rbp + 0x68], 0xea
jne 0x14002e917
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14002e510
mov byte [rbp + 0xbf], 1
call sub.netapi32.dll_NetApiBufferFree
jmp 0x14002e510
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14002e92c
mov byte [rbp + 0xbf], 1
call sub.netapi32.dll_NetApiBufferFree
mov dword [rbp + 0x98], 0
mov qword [rbp + 0xa8], 0
lea rcx, [rbp + 0x98]
lea rdx, [rbp + 0xa8]
call sub.secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x14002e988
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14002e970
mov byte [rbp + 0xbf], 0
call sub.secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp + 0x70]
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rsi, qword [rbp + 0xa8]
mov eax, dword [rbp + 0x98]
lea r14, [rsi + rax*8]
lea r12, [rbp - 0x28]
lea r15, [rbp - 0x10]
mov qword [rbp + 0x68], r14
jmp 0x14002e9b5
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14002e9b5
call sub.secur32.dll_LsaFreeReturnBuffer
cmp rsi, r14
je 0x14002e958
mov qword [rbp - 0x28], 0
mov rcx, rsi
mov rdx, r12
call sub.secur32.dll_LsaGetLogonSessionData
add rsi, 8
mov rcx, qword [rbp - 0x28]
test eax, eax
jne 0x14002ebc0
test rcx, rcx
je 0x14002ebc0
cmp dword [rcx + 0x40], 3
je 0x14002e9b0
movzx ebx, word [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.140029500
cmp qword [rbp - 8], 0
je 0x14002e9a7
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xb0], rdi
mov r14, qword [rbp]
mov qword [rbp + 0x50], r14
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x40], xmm0
mov rax, qword [rbp + 0x70]
mov rax, qword [rax + 0x10]
mov rbx, qword [rbp + 0x48]
test rax, rax
je 0x14002eaa0
mov rcx, qword [rbp + 0x70]
mov r12, qword [rcx + 8]
shl rax, 4
lea r13, [rax + rax*4]
xor r15d, r15d
jmp 0x14002ea59
add r15, 0x50
cmp r13, r15
je 0x14002eaa0
cmp qword [r12 + r15 + 0x10], r14
jne 0x14002ea50
mov rcx, qword [r12 + r15 + 8]
mov rdx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002ea50
mov rdx, qword [rbp + 0x40]
test rdx, rdx
mov r14, qword [rbp + 0x68]
lea r12, [rbp - 0x28]
lea r15, [rbp - 0x10]
je 0x14002e9a7
mov r8d, 1
mov rcx, rbx
call fcn.14001c240
jmp 0x14002e9a7
mov qword [rbp - 0x40], rbx
mov byte [rbp + 0xbd], 1
lea rcx, [rbp + 0x78]
lea rdx, [rbp + 0x40]
call fcn.140029670
lea r15, [rbp - 0x10]
mov rax, qword [rbp + 0x80]
test rax, rax
mov rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xa0]
je 0x14002eae3
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x88]
jmp 0x14002eb15
shr r8, 1
mov byte [rbp + 0xbd], 1
mov rcx, r15
call fcn.1401faba0
mov rcx, qword [rbp - 8]
test rcx, rcx
mov rdx, qword [rbp - 0x10]
cmove rdx, rcx
mov rax, rcx
mov ebx, 1
cmove rax, rbx
cmovne rcx, qword [rbp]
mov rbx, qword [rbp + 0x50]
mov qword [rbp], rbx
movaps xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x10], xmm0
mov dword [rbp + 0x38], 0
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 8
mov qword [rbp + 0x30], 0
mov rdi, qword [rbp + 0x70]
mov rdx, qword [rdi + 0x10]
cmp rdx, qword [rdi]
mov r14, qword [rbp + 0x68]
jne 0x14002eb73
mov rcx, rdi
call fcn.140026e50
lea r12, [rbp - 0x28]
mov rdx, qword [rdi + 0x10]
jmp 0x14002eb77
lea r12, [rbp - 0x28]
mov rax, qword [rdi + 8]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movaps xmm0, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movaps xmm2, xmmword [rbp + 0x10]
movaps xmm3, xmmword [rbp + 0x20]
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 [rdi + 0x10], rdx
mov rcx, qword [rbp - 0x28]
nop word [rax + rax]
test rcx, rcx
je 0x14002e9b5
call sub.secur32.dll_LsaFreeReturnBuffer
jmp 0x14002e9b5
lea r8, str.C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823_sysinfo_0.29.0_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.140217c20
jmp 0x14002ec53
mov edx, 1
call fcn.1402179b0
jmp 0x14002ec53
mov qword [rbp - 0x10], 0
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, [0x14021c2f0]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 0
lea rax, str.C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823_sysinfo_0.29.0_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14021c380]
lea r9, [rbp - 0x10]
xor ecx, ecx
call fcn.14020afb0
jmp 0x14002ec53
mov byte [rbp + 0xbc], 0
mov edx, 8
mov rcx, rbx
call fcn.1402179b0
ud2