Function at 0x14002a990
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, 0x198
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], 0xfffffffffffffffe
mov qword [rbp - 0x20], rcx
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 8
mov qword [rbp + 0x98], 0
mov dword [rbp - 0x10], 0
lea rbx, [rbp + 0xe8]
nop dword [rax]
mov qword [rbp + 0x80], 0
mov dword [rbp + 0x7c], 0
mov dword [rbp - 0x14], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x14]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x80]
call sub.netapi32.dll_NetUserEnum
test eax, eax
je 0x14002aa51
cmp eax, 0xea
jne 0x14002af73
mov dword [rbp - 0xc], eax
mov r13, qword [rbp + 0x80]
mov eax, dword [rbp + 0x7c]
lea r12, [rax*8]
add r12, r13
nop dword [rax]
cmp r13, r12
je 0x14002af50
mov rsi, qword [r13]
add r13, 8
test rsi, rsi
je 0x14002aa70
mov qword [rbp + 0xe8], 0
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x17
mov r9, rbx
call sub.netapi32.dll_NetUserGetInfo
mov rcx, qword [rbp + 0xe8]
test eax, eax
je 0x14002aac0
test rcx, rcx
jne 0x14002af40
jmp 0x14002aa70
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x14002af30
mov rcx, rdi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x14002af30
mov rcx, rdi
call sub.advapi32.dll_GetLengthSid
mov r14d, eax
mov dword [rbp + 0x100], eax
mov edx, 1
test eax, eax
je 0x14002abe9
mov rcx, r14
call fcn.140021c20
test rax, rax
je 0x14002b293
mov r15, rax
mov ecx, dword [rbp + 0x100]
mov rdx, rax
mov r8, rdi
call sub.advapi32.dll_CopySid
test eax, eax
je 0x14002ac00
cmp byte [r15], 1
mov qword [rbp + 0xf0], r14
jne 0x14002b2a2
mov qword [rbp - 8], r14
mov qword [rbp + 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], r14
mov byte [rbp + 0x10f], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp - 8]
call fcn.140026830
mov r14, qword [rbp + 0xa0]
movabs rax, 0x8000000000000000
cmp r14, rax
jne 0x14002ac16
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
cmp word [rsi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14002ab90
mov byte [rbp + 0x10f], 1
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.14011e2c0
mov r14, qword [rbp + 0x20]
movabs rax, 0x8000000000000000
cmp r14, rax
mov rcx, qword [rbp + 0x30]
mov eax, 0
cmove rcx, rax
mov qword [rbp - 0x28], rcx
mov rdx, qword [rbp + 0x28]
mov ecx, 1
cmove rdx, rcx
mov qword [rbp + 0x18], rdx
cmove r14, rax
jmp 0x14002ac2c
xor ecx, ecx
mov r8, rdi
call sub.advapi32.dll_CopySid
test eax, eax
je 0x14002af30
jmp 0x14002b2eb
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.140021c00
jmp 0x14002af30
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x28], rax
mov qword [rbp + 0xf8], 0
mov dword [rbp + 0xe4], 0
mov dword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xe4]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x1401423f8]
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
mov qword [rbp - 0x30], r14
je 0x14002acb5
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], 8
xor eax, eax
mov qword [rbp + 0x100], rax
jmp 0x14002ae32
mov r15d, dword [rbp + 0xe4]
test r15, r15
je 0x14002acef
lea rax, [r15*8]
lea rdi, [rax + rax*2]
movzx eax, byte [0x1401f1d21]
mov edx, 8
mov rcx, rdi
call fcn.140021bf0
test rax, rax
je 0x14002b30c
mov rsi, rax
jmp 0x14002acf4
mov esi, 8
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd0], 0
mov r14, qword [rbp + 0xf8]
test r14, r14
je 0x14002ad4c
mov edi, dword [rbp + 0xe4]
cmp edi, r15d
jbe 0x14002ad7b
mov byte [rbp + 0x10d], 1
lea rcx, [rbp + 0xc0]
xor edx, edx
mov r8, rdi
call fcn.140135060
mov rsi, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd0]
jmp 0x14002ad94
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xa8], rax
jmp 0x14002ae6d
mov eax, 0
mov qword [rbp + 0x100], rax
mov eax, 0
test edi, edi
je 0x14002ae32
mov qword [rbp + 0x100], rax
xor r15d, r15d
nop
mov rdx, qword [r14 + r15*8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14002adb0
lea rcx, [rbp + 0xa0]
call fcn.14011e2c0
mov rax, qword [rbp + 0xa0]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov rcx, qword [rbp + 0xb0]
mov r8d, 0
cmove rcx, r8
mov rdx, qword [rbp + 0xa8]
mov r9d, 1
cmove rdx, r9
cmove rax, r8
mov r9, qword [rbp + 0x100]
lea r8, [r9 + r9*2]
mov qword [rsi + r8*8], rax
mov qword [rsi + r8*8 + 8], rdx
mov qword [rsi + r8*8 + 0x10], rcx
inc r9
mov qword [rbp + 0x100], r9
inc r15
cmp r15, rdi
jne 0x14002ada0
mov rcx, qword [rbp + 0xf8]
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0xb0], rax
test rcx, rcx
je 0x14002ae6d
call sub.netapi32.dll_NetApiBufferFree
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x20], rax
mov rcx, qword [rbp + 0x10]
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x68], 0
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xb0]
lea rcx, [rbp + 0x50]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0xa0]
mov qword [rcx], rax
mov rax, qword [rbp + 0xa8]
mov qword [rcx + 8], rax
mov rsi, qword [rbp + 0x98]
cmp rsi, qword [rbp + 0x88]
jne 0x14002aee3
lea rcx, [rbp + 0x88]
call fcn.14002f7f0
mov rax, qword [rbp + 0x90]
lea rcx, [rsi + rsi*4]
shl rcx, 4
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x20]
movups xmm1, xmmword [rbp + 0x30]
movups xmm2, xmmword [rbp + 0x40]
movups xmm3, xmmword [rbp + 0x50]
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 [rbp + 0x98], rsi
nop dword [rax + rax]
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x14002aa70
call sub.netapi32.dll_NetApiBufferFree
jmp 0x14002aa70
mov rcx, qword [rbp + 0x80]
cmp dword [rbp - 0xc], 0xea
jne 0x14002af7a
test rcx, rcx
je 0x14002a9f0
call sub.netapi32.dll_NetApiBufferFree
jmp 0x14002a9f0
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14002af84
call sub.netapi32.dll_NetApiBufferFree
mov dword [rbp + 0xe8], 0
mov qword [rbp + 0xf8], 0
lea rcx, [rbp + 0xe8]
lea rdx, [rbp + 0xf8]
call sub.secur32.dll_LsaEnumerateLogonSessions
mov rcx, qword [rbp + 0xf8]
test eax, eax
jne 0x14002afdc
mov eax, dword [rbp + 0xe8]
lea rsi, [rcx + rax*8]
lea rdi, [rbp - 8]
lea r15, [rbp + 0x20]
mov qword [rbp + 0xf0], rsi
cmp rcx, rsi
jne 0x14002b028
mov rcx, qword [rbp + 0xf8]
mov rax, qword [rbp + 0x98]
mov rdx, qword [rbp - 0x20]
mov qword [rdx + 0x10], rax
movups xmm0, xmmword [rbp + 0x88]
movups xmmword [rdx], xmm0
test rcx, rcx
je 0x14002afff
call sub.secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp - 0x20]
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r14
cmp rcx, rsi
je 0x14002afd5
lea r14, [rcx + 8]
mov qword [rbp - 8], 0
mov rdx, rdi
call sub.secur32.dll_LsaGetLogonSessionData
mov rcx, qword [rbp - 8]
test eax, eax
jne 0x14002b280
test rcx, rcx
je 0x14002b280
cmp dword [rcx + 0x40], 3
je 0x14002b085
movzx r12d, word [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.1400266a0
movabs rax, 0x8000000000000000
cmp qword [rbp + 0x20], rax
jne 0x14002b097
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002b08a
call sub.secur32.dll_LsaFreeReturnBuffer
mov rcx, r14
cmp rcx, rsi
jne 0x14002b028
jmp 0x14002afd5
mov r15, qword [rbp + 0x30]
mov qword [rbp + 0xd0], r15
movups xmm0, xmmword [rbp + 0x20]
movaps xmmword [rbp + 0xc0], xmm0
mov rax, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xc8]
mov qword [rbp + 0x100], rcx
test rax, rax
je 0x14002b13e
mov rdi, qword [rbp + 0x90]
shl rax, 4
lea rsi, [rax + rax*4]
xor r13d, r13d
jmp 0x14002b0e9
add r13, 0x50
cmp rsi, r13
je 0x14002b13e
cmp qword [rdi + r13 + 0x10], r15
jne 0x14002b0e0
mov rcx, qword [rdi + r13 + 8]
mov rdx, qword [rbp + 0x100]
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002b0e0
mov rdx, qword [rbp + 0xc0]
test rdx, rdx
mov rsi, qword [rbp + 0xf0]
lea rdi, [rbp - 8]
lea r15, [rbp + 0x20]
je 0x14002b07c
mov r8d, 1
mov rcx, qword [rbp + 0x100]
call fcn.140021c00
jmp 0x14002b07c
mov byte [rbp + 0x10e], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp + 0xc0]
call fcn.140026830
lea r15, [rbp + 0x20]
mov rax, qword [rbp + 0xa0]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14002b1bc
shr r12d, 1
mov byte [rbp + 0x10e], 1
mov rcx, r15
mov rdx, rbx
mov r8, r12
call fcn.14011e2c0
mov rax, qword [rbp + 0x20]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov r8d, 0
cmove rax, r8
mov rcx, qword [rbp + 0x28]
mov edx, 1
cmove rcx, rdx
mov rdx, qword [rbp + 0x30]
cmove rdx, r8
jmp 0x14002b1ca
mov rcx, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xd0]
mov qword [rbp + 0x30], r8
movaps xmm0, xmmword [rbp + 0xc0]
movaps xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x68], 0
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 8
mov qword [rbp + 0x60], 0
mov rdi, qword [rbp + 0x98]
cmp rdi, qword [rbp + 0x88]
jne 0x14002b227
lea rcx, [rbp + 0x88]
call fcn.14002f7f0
mov rax, qword [rbp + 0x90]
lea rcx, [rdi + rdi*4]
shl rcx, 4
movaps xmm0, xmmword [rbp + 0x60]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rbp + 0x20]
movaps xmm1, xmmword [rbp + 0x30]
movaps xmm2, xmmword [rbp + 0x40]
movaps xmm3, xmmword [rbp + 0x50]
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 [rbp + 0x98], rdi
mov rcx, qword [rbp - 8]
mov rsi, qword [rbp + 0xf0]
lea rdi, [rbp - 8]
nop dword [rax + rax]
test rcx, rcx
je 0x14002b020
call sub.secur32.dll_LsaFreeReturnBuffer
jmp 0x14002b020
mov ecx, 1
mov rdx, r14
call fcn.14013d680
jmp 0x14002b320
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 1
mov qword [rbp + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp - 0x38], r15
lea rax, str.C:UsersHibike.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x140141f20]
lea r9, [rbp + 0x20]
xor ecx, ecx
mov rdx, r15
call fcn.140134f30
jmp 0x14002b320
mov qword [rbp + 0xf0], r14
mov qword [rbp - 0x38], 1
lea r8, str.C:UsersHibike.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.14013d950
jmp 0x14002b320
mov byte [rbp + 0x10d], 0
mov ecx, 8
mov rdx, rdi
call fcn.14013d680
ud2