Function at 0x140017da0
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, 0x1b8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x120], xmm6
mov qword [rbp + 0x118], 0xfffffffffffffffe
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0xc0], 8
xorps xmm6, xmm6
movups xmmword [rbp + 0xc8], xmm6
mov dword [rbp + 0x64], 0
lea rbx, [rbp + 0xd8]
nop word cs:[rax + rax]
mov qword [rbp + 0xb8], 0
mov dword [rbp + 0xb4], 0
mov dword [rbp + 0x60], 0
lea rax, [rbp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xb4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0xb8]
call sub.NETAPI32.dll_NetUserEnum
mov edi, eax
test eax, eax
je 0x140017e6a
cmp edi, 0xea
jne 0x1400182b9
mov r12, qword [rbp + 0xb8]
mov eax, dword [rbp + 0xb4]
lea r14, [r12 + rax*8]
nop dword [rax + rax]
cmp r12, r14
je 0x140018290
mov r13, r12
add r12, 8
cmp qword [r13], 0
je 0x140017e80
mov qword [rbp + 0xd8], 0
mov rdx, qword [r13]
xor ecx, ecx
mov r8d, 0x17
mov r9, rbx
call sub.NETAPI32.dll_NetUserGetInfo
mov rcx, qword [rbp + 0xd8]
test eax, eax
je 0x140017ed0
test rcx, rcx
jne 0x140018282
jmp 0x140017e80
mov rsi, qword [rcx + 0x20]
test rsi, rsi
je 0x140018272
mov rcx, rsi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x140018272
mov rcx, rsi
call sub.ADVAPI32.dll_GetLengthSid
mov r15d, eax
mov ebx, edi
mov edi, eax
test eax, eax
je 0x140017f17
mov edx, 1
mov rcx, rdi
call fcn.140007960
test rax, rax
jne 0x140017f1c
jmp 0x1400185d6
mov eax, 1
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], rdi
mov ecx, r15d
mov qword [rbp + 0x108], rax
mov rdx, rax
mov r8, rsi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x140017fac
test r15d, r15d
mov rdx, qword [rbp + 0x108]
je 0x1400185c4
cmp byte [rdx], 1
jne 0x1400185e5
lea rax, [rbp + 0xf0]
movdqu xmm0, xmmword [rax]
lea rax, [rbp + 0x70]
movdqu xmmword [rax], xmm0
mov qword [rbp + 0x68], rdx
mov byte [rbp + 0x116], 1
lea rcx, [rbp + 0xe8]
lea rdx, [rbp + 0x68]
call fcn.14000a2a0
mov edi, ebx
mov rax, qword [rbp + 0xe8]
test rax, rax
je 0x140017fd4
lea rcx, [rbp + 0xf0]
movdqu xmm0, xmmword [rcx]
jmp 0x140018012
test r15d, r15d
mov rcx, qword [rbp + 0x108]
je 0x140017fc6
mov r8d, 1
mov rdx, rdi
call fcn.140007940
mov edi, ebx
lea rbx, [rbp + 0xd8]
jmp 0x140018272
mov rdx, qword [r13]
mov r8, 0xffffffffffffffff
nop
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140017fe0
mov byte [rbp + 0x116], 1
mov rcx, rbp
call fcn.14006a9e0
mov rax, qword [rbp]
test rax, rax
je 0x1400180ee
lea rcx, [rbp + 0x18]
movdqu xmm0, xmmword [rcx - 0x10]
movdqa xmmword [rbp + 0x80], xmm0
movups xmm0, xmmword [rbp + 0x70]
movaps xmmword [rbp - 0x10], xmm0
mov qword [rbp - 0x30], rax
movdqa xmm0, xmmword [rbp + 0x80]
lea rax, [rbp - 0x28]
movdqu xmmword [rax], xmm0
mov rdx, qword [r13]
mov qword [rbp + 0x100], 0
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x5c], 0
mov byte [rbp + 0x114], 0
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xe4]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x14007af20]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x1400180b9
mov qword [rbp + 0xe8], 8
lea rax, [rbp + 0xf0]
movups xmmword [rax], xmm6
jmp 0x140018148
mov edi, dword [rbp + 0xe4]
test rdi, rdi
je 0x1400180ff
lea rax, [rdi*8]
lea rsi, [rax + rax*2]
movzx eax, byte [0x1400a31c1]
mov edx, 8
mov rcx, rsi
call fcn.140007930
test rax, rax
jne 0x140018104
jmp 0x14001862b
movaps xmmword [rbp + 0x80], xmm6
mov eax, 1
jmp 0x14001801a
mov eax, 8
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], 0
mov rdx, qword [rbp + 0x100]
test rdx, rdx
je 0x140018185
mov eax, dword [rbp + 0xe4]
lea r8, [rdx + rax*8]
mov byte [rbp + 0x114], 1
lea rcx, [rbp + 0xe8]
call fcn.140018e20
mov edi, ebx
mov rcx, qword [rbp + 0x100]
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0xa0], rax
test rcx, rcx
je 0x1400181b1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1400181b1
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x98], rax
mov edi, ebx
mov rax, qword [rbp + 0x108]
mov qword [rbp], rax
movaps xmm0, xmmword [rbp - 0x10]
movups xmmword [rbp + 8], xmm0
mov dword [rbp + 0x48], 0
mov rax, qword [rbp - 0x20]
lea rcx, [rbp + 0x18]
mov qword [rcx + 0x10], rax
movdqu xmm0, xmmword [rbp - 0x30]
movdqu xmmword [rcx], xmm0
mov rax, qword [rbp + 0xa0]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x90]
mov qword [rcx + 0x18], rax
mov rax, qword [rbp + 0x98]
mov qword [rcx + 0x20], rax
mov rdx, qword [rbp + 0xd0]
cmp rdx, qword [rbp + 0xc8]
lea rbx, [rbp + 0xd8]
jne 0x14001822b
lea rcx, [rbp + 0xc0]
call fcn.140019aa0
mov rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xc0]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + rcx + 0x40], xmm0
movdqu xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movdqu xmmword [rax + rcx], xmm0
inc rdx
mov qword [rbp + 0xd0], rdx
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x140017e80
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x140017e80
mov rcx, qword [rbp + 0xb8]
cmp edi, 0xea
jne 0x1400182c0
test rcx, rcx
je 0x140017e00
mov byte [rbp + 0x117], 1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x140017e00
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x1400182d1
mov byte [rbp + 0x117], 1
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [rbp + 0x100], 0
mov qword [rbp + 0x80], 0
lea rcx, [rbp + 0x100]
lea rdx, [rbp + 0x80]
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov rsi, qword [rbp + 0x80]
test eax, eax
jne 0x140018578
mov eax, dword [rbp + 0x100]
lea rdi, [rsi + rax*8]
lea rbx, [rbp + 0x68]
mov r14, rbp
xorps xmm6, xmm6
mov qword [rbp - 0x10], rdi
jmp 0x140018330
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140018330
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp rsi, rdi
je 0x140018571
mov qword [rbp + 0x68], 0
mov rcx, rsi
mov rdx, rbx
call sub.Secur32.dll_LsaGetLogonSessionData
add rsi, 8
mov rcx, qword [rbp + 0x68]
test eax, eax
jne 0x140018550
test rcx, rcx
je 0x140018550
cmp dword [rcx + 0x40], 3
je 0x14001832b
movzx r15d, word [rcx + 0x10]
mov r12, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r14
call fcn.14000a130
cmp qword [rbp], 0
je 0x140018322
mov r14, qword [rbp + 0x10]
mov qword [rbp + 0xa0], r14
movdqu xmm0, xmmword [rbp]
movdqa xmmword [rbp + 0x90], xmm0
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rbp + 0x90]
mov qword [rbp + 0x108], rcx
test rax, rax
je 0x140018429
mov rbx, qword [rbp + 0xc0]
shl rax, 4
lea rdi, [rax + rax*4]
xor r13d, r13d
jmp 0x1400183d9
add r13, 0x50
cmp rdi, r13
je 0x140018429
cmp qword [rbx + r13 + 0x10], r14
jne 0x1400183d0
mov rcx, qword [rbx + r13]
mov rdx, qword [rbp + 0x108]
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400183d0
mov rdx, qword [rbp + 0x98]
test rdx, rdx
mov rdi, qword [rbp - 0x10]
lea rbx, [rbp + 0x68]
mov r14, rbp
je 0x140018322
mov r8d, 1
mov rcx, qword [rbp + 0x108]
call fcn.140007940
jmp 0x140018322
mov byte [rbp + 0x115], 1
lea rcx, [rbp + 0xe8]
lea rdx, [rbp + 0x90]
call fcn.14000a2a0
mov r14, rbp
mov rax, qword [rbp + 0xe8]
test rax, rax
je 0x14001845f
lea rcx, [rbp + 0xf0]
movdqu xmm0, xmmword [rcx]
jmp 0x14001848d
shr r15d, 1
mov byte [rbp + 0x115], 1
mov rcx, r14
mov rdx, r12
mov r8, r15
call fcn.14006a9e0
mov rax, qword [rbp]
test rax, rax
je 0x140018563
lea rcx, [rbp + 0x18]
movdqu xmm0, xmmword [rcx - 0x10]
movdqa xmmword [rbp - 0x30], xmm0
mov rcx, qword [rbp + 0xa0]
mov qword [rbp + 0x10], rcx
movaps xmm0, xmmword [rbp + 0x90]
movaps xmmword [rbp], xmm0
movdqa xmm0, xmmword [rbp - 0x30]
lea rcx, [rbp + 0x20]
movdqu xmmword [rcx], xmm0
mov dword [rbp + 0x48], 0
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x30], 8
movups xmmword [rcx + 0x18], xmm6
mov rdx, qword [rbp + 0xd0]
cmp rdx, qword [rbp + 0xc8]
mov rdi, qword [rbp - 0x10]
lea rbx, [rbp + 0x68]
jne 0x1400184f7
lea rcx, [rbp + 0xc0]
call fcn.140019aa0
mov rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xc0]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movaps xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + rcx + 0x40], xmm0
movdqa xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmm2, xmmword [rbp + 0x20]
movaps xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movdqu xmmword [rax + rcx], xmm0
inc rdx
mov qword [rbp + 0xd0], rdx
mov rcx, qword [rbp + 0x68]
nop word cs:[rax + rax]
test rcx, rcx
je 0x140018330
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x140018330
movaps xmmword [rbp - 0x30], xmm6
mov eax, 1
jmp 0x140018492
mov rsi, qword [rbp + 0x80]
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rbp - 0x38]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0xc0]
movups xmmword [rcx], xmm0
test rsi, rsi
je 0x1400185a5
mov byte [rbp + 0x117], 0
mov rcx, rsi
call sub.Secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp - 0x38]
movaps xmm6, xmmword [rbp + 0x120]
add rsp, 0x1b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.C:UsersJohnny.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.4_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.140077cd0
jmp 0x14001863f
mov ecx, 1
mov rdx, rdi
call fcn.140077aa0
jmp 0x14001863f
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, [0x14007a3e8]
mov qword [rbp + 0x10], rax
pxor xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
lea rax, str.C:UsersJohnny.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.4_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14007a548]
mov r9, rbp
xor ecx, ecx
call fcn.140072400
jmp 0x14001863f
mov byte [rbp + 0x114], 0
mov ecx, 8
mov rdx, rsi
call fcn.140077aa0
ud2