Function at 0x140010030
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, 0x1a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x110], xmm6
mov qword [rbp + 0x108], 0xfffffffffffffffe
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0x88], 8
xorps xmm6, xmm6
movups xmmword [rbp + 0x90], xmm6
mov dword [rbp - 4], 0
lea rbx, [rbp + 0x40]
lea r14, [rbp + 0xe8]
nop dword [rax + rax]
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x70], 0
mov dword [rbp - 8], 0
lea rax, [rbp - 4]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x78]
call sub.NETAPI32.dll_NetUserEnum
mov r12d, eax
test eax, eax
je 0x1400100f0
cmp r12d, 0xea
jne 0x1400105f7
mov r13, qword [rbp + 0x78]
mov eax, dword [rbp + 0x70]
lea r15, [rax*8]
add r15, r13
mov dword [rbp + 0x74], r12d
nop word cs:[rax + rax]
cmp r13, r15
je 0x1400105d0
mov rdi, r13
add r13, 8
cmp qword [rdi], 0
je 0x140010110
mov qword [rbp + 0xe8], 0
mov rdx, qword [rdi]
xor ecx, ecx
mov r8d, 0x17
mov r9, r14
call sub.NETAPI32.dll_NetUserGetInfo
mov rcx, qword [rbp + 0xe8]
test eax, eax
je 0x140010160
test rcx, rcx
jne 0x1400105c0
jmp 0x140010110
mov rsi, qword [rcx + 0x20]
test rsi, rsi
je 0x1400105b0
mov rcx, rsi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1400105b0
mov rcx, rsi
call sub.ADVAPI32.dll_GetLengthSid
mov ecx, eax
mov dword [rbp + 0xf8], eax
test eax, eax
mov qword [rbp + 0xf0], rcx
je 0x1400101ac
mov edx, 1
call fcn.140003a60
test rax, rax
jne 0x1400101b1
jmp 0x140010906
mov eax, 1
mov ecx, dword [rbp + 0xf8]
mov qword [rbp + 0x80], rax
mov rdx, rax
mov r8, rsi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x14001023b
cmp dword [rbp + 0xf8], 0
je 0x1400108f4
mov rdx, qword [rbp + 0x80]
cmp byte [rdx], 1
jne 0x140010919
mov qword [rbp - 0x30], rdx
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov byte [rbp + 0x106], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp - 0x30]
call fcn.1400090a0
mov rax, qword [rbp + 0xa0]
test rax, rax
je 0x140010266
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp], rax
mov r12, qword [rbp + 0xb0]
jmp 0x1400102b5
cmp dword [rbp + 0xf8], 0
je 0x1400105b0
mov r8d, 1
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0xf0]
call fcn.140003a40
jmp 0x1400105b0
mov rdx, qword [rdi]
mov r8, 0xffffffffffffffff
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140010270
mov byte [rbp + 0x106], 1
lea rcx, [rbp + 0x10]
call fcn.1400354b0
mov rcx, qword [rbp + 0x10]
test rcx, rcx
mov r12, qword [rbp + 0x20]
cmove r12, rcx
mov rax, qword [rbp + 0x18]
cmove rax, rcx
mov qword [rbp], rax
mov eax, 1
cmove rcx, rax
mov qword [rbp + 8], rcx
mov rdx, qword [rdi]
mov qword [rbp + 0xe0], 0
mov dword [rbp + 0xbc], 0
mov dword [rbp - 0xc], 0
mov byte [rbp + 0x105], 0
lea rax, [rbp - 0xc]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xbc]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x14004269c]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x140010337
mov qword [rbp + 0xc0], 8
lea rax, [rbp + 0xc8]
movups xmmword [rax], xmm6
jmp 0x1400104a0
mov ebx, dword [rbp + 0xbc]
test rbx, rbx
je 0x14001036f
lea rax, [rbx*8]
lea rdi, [rax + rax*2]
movzx eax, byte [0x140057181]
mov edx, 8
mov rcx, rdi
call fcn.140003a30
mov rsi, rax
test rax, rax
jne 0x140010374
jmp 0x14001095e
mov esi, 8
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], rbx
mov qword [rbp + 0xd0], 0
mov r14, qword [rbp + 0xe0]
test r14, r14
je 0x1400103cb
mov edi, dword [rbp + 0xbc]
cmp ebx, edi
jae 0x1400103fe
mov byte [rbp + 0x105], 1
lea rcx, [rbp + 0xc0]
xor edx, edx
mov r8, rdi
call fcn.14003afe0
mov rsi, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xd0]
jmp 0x140010410
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
lea rbx, [rbp + 0x40]
jmp 0x1400104db
mov eax, 0
mov edx, 0
test edi, edi
je 0x140010495
mov rdx, rax
xor ebx, ebx
jmp 0x14001044c
movaps xmmword [rbp + 0x60], xmm6
mov eax, 1
mov rdx, qword [rbp + 0xf8]
lea rcx, [rdx + rdx*2]
mov qword [rsi + rcx*8], rax
movaps xmm0, xmmword [rbp + 0x60]
movups xmmword [rsi + rcx*8 + 8], xmm0
inc rdx
inc rbx
cmp rbx, rdi
je 0x140010495
mov qword [rbp + 0xf8], rdx
mov rdx, qword [r14 + rbx*8]
mov r8, 0xffffffffffffffff
nop
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140010460
lea rcx, [rbp + 0xa0]
call fcn.1400354b0
mov rax, qword [rbp + 0xa0]
test rax, rax
je 0x140010420
lea rcx, [rbp + 0xa8]
movups xmm0, xmmword [rcx]
movaps xmmword [rbp + 0x60], xmm0
jmp 0x140010429
mov qword [rbp + 0xd0], rdx
lea rbx, [rbp + 0x40]
mov rcx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xb0], rax
test rcx, rcx
je 0x1400104db
call sub.NETAPI32.dll_NetApiBufferFree
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x58], 0
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], r12
mov rax, qword [rbp + 0xb0]
mov qword [rbx + 0x10], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbx], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbx + 8], rax
mov rdx, qword [rbp + 0x98]
cmp rdx, qword [rbp + 0x90]
jne 0x140010560
lea rcx, [rbp + 0x88]
call fcn.1400118d0
lea r14, [rbp + 0xe8]
mov r12d, dword [rbp + 0x74]
mov rdx, qword [rbp + 0x98]
jmp 0x14001056b
lea r14, [rbp + 0xe8]
mov r12d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x88]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x10]
movups xmm1, xmmword [rbp + 0x20]
movups xmm2, xmmword [rbp + 0x30]
movups xmm3, xmmword [rbp + 0x40]
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 [rbp + 0x98], rdx
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x140010110
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x140010110
mov rcx, qword [rbp + 0x78]
cmp r12d, 0xea
jne 0x1400105fb
test rcx, rcx
je 0x140010090
mov byte [rbp + 0x107], 1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x140010090
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14001060c
mov byte [rbp + 0x107], 1
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [rbp + 0xe8], 0
mov qword [rbp + 0xe0], 0
lea rcx, [rbp + 0xe8]
lea rdx, [rbp + 0xe0]
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov rsi, qword [rbp + 0xe0]
test eax, eax
jne 0x1400108a8
mov eax, dword [rbp + 0xe8]
lea rdi, [rsi + rax*8]
lea rbx, [rbp + 0x60]
lea r14, [rbp + 0x10]
xorps xmm6, xmm6
mov qword [rbp + 0xf0], rdi
jmp 0x14001066f
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14001066f
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp rsi, rdi
je 0x1400108a1
mov qword [rbp + 0x60], 0
mov rcx, rsi
mov rdx, rbx
call sub.Secur32.dll_LsaGetLogonSessionData
add rsi, 8
mov rcx, qword [rbp + 0x60]
test eax, eax
jne 0x140010880
test rcx, rcx
je 0x140010880
cmp dword [rcx + 0x40], 3
je 0x14001066a
movzx r13d, word [rcx + 0x10]
mov r12, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r14
call fcn.140008f30
cmp qword [rbp + 0x10], 0
je 0x140010661
mov r14, qword [rbp + 0x20]
mov qword [rbp + 0xd0], r14
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0xc0], xmm0
mov rax, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xc0]
mov qword [rbp + 0xf8], rcx
test rax, rax
je 0x14001076d
mov rbx, qword [rbp + 0x88]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x140010719
add r15, 0x50
cmp rdi, r15
je 0x14001076d
cmp qword [rbx + r15 + 0x10], r14
jne 0x140010710
mov rcx, qword [rbx + r15]
mov rdx, qword [rbp + 0xf8]
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140010710
mov rdx, qword [rbp + 0xc8]
test rdx, rdx
mov rdi, qword [rbp + 0xf0]
lea rbx, [rbp + 0x60]
lea r14, [rbp + 0x10]
je 0x140010661
mov r8d, 1
mov rcx, qword [rbp + 0xf8]
call fcn.140003a40
jmp 0x140010661
mov byte [rbp + 0x104], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp + 0xc0]
call fcn.1400090a0
lea r14, [rbp + 0x10]
mov rax, qword [rbp + 0xa0]
test rax, rax
je 0x1400107a0
lea rcx, [rbp + 0xa8]
jmp 0x1400107c9
shr r13d, 1
mov byte [rbp + 0x104], 1
mov rcx, r14
mov rdx, r12
mov r8, r13
call fcn.1400354b0
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x140010893
lea rcx, [rbp + 0x18]
movups xmm0, xmmword [rcx]
movaps xmmword [rbp - 0x30], xmm0
mov rcx, qword [rbp + 0xd0]
mov qword [rbp + 0x20], rcx
movaps xmm0, xmmword [rbp + 0xc0]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm0, xmmword [rbp - 0x30]
lea rcx, [rbp + 0x18]
movups xmmword [rcx + 0x18], xmm0
mov dword [rbp + 0x58], 0
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x40], 8
movups xmmword [rcx + 0x30], xmm6
mov rdx, qword [rbp + 0x98]
cmp rdx, qword [rbp + 0x90]
mov rdi, qword [rbp + 0xf0]
lea rbx, [rbp + 0x60]
jne 0x140010837
lea rcx, [rbp + 0x88]
call fcn.1400118d0
mov rdx, qword [rbp + 0x98]
mov rax, qword [rbp + 0x88]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movaps xmm0, xmmword [rbp + 0x50]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rbp + 0x10]
movaps xmm1, xmmword [rbp + 0x20]
movaps xmm2, xmmword [rbp + 0x30]
movaps xmm3, xmmword [rbp + 0x40]
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 [rbp + 0x98], rdx
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14001066f
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x14001066f
movaps xmmword [rbp - 0x30], xmm6
mov eax, 1
jmp 0x1400107d0
mov rsi, qword [rbp + 0xe0]
mov rax, qword [rbp + 0x98]
mov rcx, qword [rbp - 0x38]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0x88]
movups xmmword [rcx], xmm0
test rsi, rsi
je 0x1400108d5
mov byte [rbp + 0x107], 0
mov rcx, rsi
call sub.Secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp - 0x38]
movaps xmm6, xmmword [rbp + 0x110]
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.C:UsersDell.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.14003fbe0
jmp 0x140010972
mov ecx, 1
mov rdx, qword [rbp + 0xf0]
call fcn.14003f9a0
jmp 0x140010972
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 1
lea rax, [0x140041da8]
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
lea rax, str.C:UsersDell.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x140041f08]
lea r9, [rbp + 0x10]
xor ecx, ecx
call fcn.14003ae10
jmp 0x140010972
mov byte [rbp + 0x105], 0
mov ecx, 8
mov rdx, rdi
call fcn.14003f9a0
ud2