Function at 0x1400ffab0
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 0x1400ffb71
cmp eax, 0xea
jne 0x140100093
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 0x140100070
mov rsi, qword [r13]
add r13, 8
test rsi, rsi
je 0x1400ffb90
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 0x1400ffbe0
test rcx, rcx
jne 0x140100060
jmp 0x1400ffb90
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x140100050
mov rcx, rdi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x140100050
mov rcx, rdi
call sub.ADVAPI32.dll_GetLengthSid
mov r14d, eax
mov dword [rbp + 0x100], eax
mov edx, 1
test eax, eax
je 0x1400ffd09
mov rcx, r14
call fcn.140018c30
test rax, rax
je 0x1401003b3
mov r15, rax
mov ecx, dword [rbp + 0x100]
mov rdx, rax
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x1400ffd20
cmp byte [r15], 1
mov qword [rbp + 0xf0], r14
jne 0x1401003c2
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.1400f9140
mov r14, qword [rbp + 0xa0]
movabs rax, 0x8000000000000000
cmp r14, rax
jne 0x1400ffd36
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
cmp word [rsi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x1400ffcb0
mov byte [rbp + 0x10f], 1
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.140125b40
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 0x1400ffd4c
xor ecx, ecx
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x140100050
jmp 0x14010040b
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.140018c10
jmp 0x140100050
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, [0x1401fc738]
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
mov qword [rbp - 0x30], r14
je 0x1400ffdd5
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], 8
xor eax, eax
mov qword [rbp + 0x100], rax
jmp 0x1400fff52
mov r15d, dword [rbp + 0xe4]
test r15, r15
je 0x1400ffe0f
lea rax, [r15*8]
lea rdi, [rax + rax*2]
movzx eax, byte [0x140236501]
mov edx, 8
mov rcx, rdi
call fcn.140018c00
test rax, rax
je 0x14010042c
mov rsi, rax
jmp 0x1400ffe14
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 0x1400ffe6c
mov edi, dword [rbp + 0xe4]
cmp edi, r15d
jbe 0x1400ffe9b
mov byte [rbp + 0x10d], 1
lea rcx, [rbp + 0xc0]
xor edx, edx
mov r8, rdi
call fcn.14012db80
mov rsi, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd0]
jmp 0x1400ffeb4
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 0x1400fff8d
mov eax, 0
mov qword [rbp + 0x100], rax
mov eax, 0
test edi, edi
je 0x1400fff52
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 0x1400ffed0
lea rcx, [rbp + 0xa0]
call fcn.140125b40
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 0x1400ffec0
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 0x1400fff8d
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 0x140100003
lea rcx, [rbp + 0x88]
call fcn.1400e2120
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 0x1400ffb90
call sub.netapi32.dll_NetApiBufferFree
jmp 0x1400ffb90
mov rcx, qword [rbp + 0x80]
cmp dword [rbp - 0xc], 0xea
jne 0x14010009a
test rcx, rcx
je 0x1400ffb10
call sub.netapi32.dll_NetApiBufferFree
jmp 0x1400ffb10
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1401000a4
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 0x1401000fc
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 0x140100148
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 0x14010011f
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 0x1401000f5
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 0x1401003a0
test rcx, rcx
je 0x1401003a0
cmp dword [rcx + 0x40], 3
je 0x1401001a5
movzx r12d, word [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.1400f8fb0
movabs rax, 0x8000000000000000
cmp qword [rbp + 0x20], rax
jne 0x1401001b7
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1401001aa
call sub.Secur32.dll_LsaFreeReturnBuffer
mov rcx, r14
cmp rcx, rsi
jne 0x140100148
jmp 0x1401000f5
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 0x14010025e
mov rdi, qword [rbp + 0x90]
shl rax, 4
lea rsi, [rax + rax*4]
xor r13d, r13d
jmp 0x140100209
add r13, 0x50
cmp rsi, r13
je 0x14010025e
cmp qword [rdi + r13 + 0x10], r15
jne 0x140100200
mov rcx, qword [rdi + r13 + 8]
mov rdx, qword [rbp + 0x100]
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140100200
mov rdx, qword [rbp + 0xc0]
test rdx, rdx
mov rsi, qword [rbp + 0xf0]
lea rdi, [rbp - 8]
lea r15, [rbp + 0x20]
je 0x14010019c
mov r8d, 1
mov rcx, qword [rbp + 0x100]
call fcn.140018c10
jmp 0x14010019c
mov byte [rbp + 0x10e], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp + 0xc0]
call fcn.1400f9140
lea r15, [rbp + 0x20]
mov rax, qword [rbp + 0xa0]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1401002dc
shr r12d, 1
mov byte [rbp + 0x10e], 1
mov rcx, r15
mov rdx, rbx
mov r8, r12
call fcn.140125b40
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 0x1401002ea
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 0x140100347
lea rcx, [rbp + 0x88]
call fcn.1400e2120
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 0x140100140
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x140100140
mov ecx, 1
mov rdx, r14
call fcn.1401369a0
jmp 0x140100440
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:UsersD3.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x1401fbfe8]
lea r9, [rbp + 0x20]
xor ecx, ecx
mov rdx, r15
call fcn.140131da0
jmp 0x140100440
mov qword [rbp + 0xf0], r14
mov qword [rbp - 0x38], 1
lea r8, str.C:UsersD3.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.140136d40
jmp 0x140100440
mov byte [rbp + 0x10d], 0
mov ecx, 8
mov rdx, rdi
call fcn.1401369a0
ud2