Function at 0x1400138d0
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 0x140013991
cmp eax, 0xea
jne 0x140013eb3
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 0x140013e90
mov rsi, qword [r13]
add r13, 8
test rsi, rsi
je 0x1400139b0
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 0x140013a00
test rcx, rcx
jne 0x140013e80
jmp 0x1400139b0
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x140013e70
mov rcx, rdi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x140013e70
mov rcx, rdi
call sub.ADVAPI32.dll_GetLengthSid
mov r14d, eax
mov dword [rbp + 0x100], eax
mov edx, 1
test eax, eax
je 0x140013b29
mov rcx, r14
call fcn.140008430
test rax, rax
je 0x1400141d3
mov r15, rax
mov ecx, dword [rbp + 0x100]
mov rdx, rax
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x140013b40
cmp byte [r15], 1
mov qword [rbp + 0xf0], r14
jne 0x1400141e2
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.14000e630
mov r14, qword [rbp + 0xa0]
movabs rax, 0x8000000000000000
cmp r14, rax
jne 0x140013b56
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
cmp word [rsi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140013ad0
mov byte [rbp + 0x10f], 1
lea rcx, [rbp + 0x20]
mov rdx, rsi
call fcn.14003ac70
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 0x140013b6c
xor ecx, ecx
mov r8, rdi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x140013e70
jmp 0x14001422b
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.140008410
jmp 0x140013e70
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, [0x140049e70]
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
mov qword [rbp - 0x30], r14
je 0x140013bf5
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xc8], 8
xor eax, eax
mov qword [rbp + 0x100], rax
jmp 0x140013d72
mov r15d, dword [rbp + 0xe4]
test r15, r15
je 0x140013c2f
lea rax, [r15*8]
lea rdi, [rax + rax*2]
movzx eax, byte [0x14005f181]
mov edx, 8
mov rcx, rdi
call fcn.140008400
test rax, rax
je 0x14001424c
mov rsi, rax
jmp 0x140013c34
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 0x140013c8c
mov edi, dword [rbp + 0xe4]
cmp edi, r15d
jbe 0x140013cbb
mov byte [rbp + 0x10d], 1
lea rcx, [rbp + 0xc0]
xor edx, edx
mov r8, rdi
call fcn.140041500
mov rsi, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd0]
jmp 0x140013cd4
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 0x140013dad
mov eax, 0
mov qword [rbp + 0x100], rax
mov eax, 0
test edi, edi
je 0x140013d72
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 0x140013cf0
lea rcx, [rbp + 0xa0]
call fcn.14003ac70
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 0x140013ce0
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 0x140013dad
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 0x140013e23
lea rcx, [rbp + 0x88]
call fcn.140015340
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 0x1400139b0
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1400139b0
mov rcx, qword [rbp + 0x80]
cmp dword [rbp - 0xc], 0xea
jne 0x140013eba
test rcx, rcx
je 0x140013930
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x140013930
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140013ec4
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 0x140013f1c
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 0x140013f68
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 0x140013f3f
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 0x140013f15
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 0x1400141c0
test rcx, rcx
je 0x1400141c0
cmp dword [rcx + 0x40], 3
je 0x140013fc5
movzx r12d, word [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.14000e4a0
movabs rax, 0x8000000000000000
cmp qword [rbp + 0x20], rax
jne 0x140013fd7
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140013fca
call sub.Secur32.dll_LsaFreeReturnBuffer
mov rcx, r14
cmp rcx, rsi
jne 0x140013f68
jmp 0x140013f15
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 0x14001407e
mov rdi, qword [rbp + 0x90]
shl rax, 4
lea rsi, [rax + rax*4]
xor r13d, r13d
jmp 0x140014029
add r13, 0x50
cmp rsi, r13
je 0x14001407e
cmp qword [rdi + r13 + 0x10], r15
jne 0x140014020
mov rcx, qword [rdi + r13 + 8]
mov rdx, qword [rbp + 0x100]
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140014020
mov rdx, qword [rbp + 0xc0]
test rdx, rdx
mov rsi, qword [rbp + 0xf0]
lea rdi, [rbp - 8]
lea r15, [rbp + 0x20]
je 0x140013fbc
mov r8d, 1
mov rcx, qword [rbp + 0x100]
call fcn.140008410
jmp 0x140013fbc
mov byte [rbp + 0x10e], 1
lea rcx, [rbp + 0xa0]
lea rdx, [rbp + 0xc0]
call fcn.14000e630
lea r15, [rbp + 0x20]
mov rax, qword [rbp + 0xa0]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400140fc
shr r12d, 1
mov byte [rbp + 0x10e], 1
mov rcx, r15
mov rdx, rbx
mov r8, r12
call fcn.14003ac70
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 0x14001410a
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 0x140014167
lea rcx, [rbp + 0x88]
call fcn.140015340
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 0x140013f60
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x140013f60
mov ecx, 1
mov rdx, r14
call fcn.140046480
jmp 0x140014260
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:Usersmarcr.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x140049958]
lea r9, [rbp + 0x20]
xor ecx, ecx
mov rdx, r15
call fcn.140043690
jmp 0x140014260
mov qword [rbp + 0xf0], r14
mov qword [rbp - 0x38], 1
lea r8, str.C:Usersmarcr.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.1400466e0
jmp 0x140014260
mov byte [rbp + 0x10d], 0
mov ecx, 8
mov rdx, rdi
call fcn.140046480
ud2