Function at 0x1400ea820
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, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], 0xfffffffffffffffe
mov qword [rcx], 0
mov qword [rcx + 8], 8
mov qword [rbp + 0x70], rcx
mov qword [rcx + 0x10], 0
mov dword [rbp - 0x2c], 0
lea rdi, [rbp + 0x98]
nop
mov qword [rbp + 0x60], 0
mov dword [rbp + 0x5c], 0
mov dword [rbp - 0x30], 0
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x60]
call sub.NETAPI32.dll_NetUserEnum
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
cmp eax, 0xea
je 0x1400ea8d1
test eax, eax
jne 0x1400eac77
mov r13, qword [rbp + 0x60]
mov eax, dword [rbp + 0x5c]
lea r12, [rax*8]
add r12, r13
jmp 0x1400ea8f5
call sub.NETAPI32.dll_NetApiBufferFree
cmp r13, r12
je 0x1400eac50
mov rbx, r13
add r13, 8
cmp qword [rbx], 0
je 0x1400ea8f5
mov qword [rbp + 0x98], 0
mov rdx, qword [rbx]
xor ecx, ecx
mov r8d, 0x17
mov r9, rdi
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
je 0x1400ea940
mov rcx, qword [rbp + 0x98]
test rcx, rcx
jne 0x1400ea8f0
jmp 0x1400ea8f5
mov rcx, qword [rbp + 0x98]
mov r15, qword [rcx + 0x20]
test r15, r15
je 0x1400ea8f0
mov rcx, r15
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1400ea92d
mov rcx, r15
call sub.ADVAPI32.dll_GetLengthSid
mov r14d, eax
mov ecx, eax
test eax, eax
mov qword [rbp + 0xb0], rcx
je 0x1400ea996
mov edx, 1
mov rcx, qword [rbp + 0xb0]
call fcn.140001f50
mov rcx, qword [rbp + 0xb0]
test rax, rax
jne 0x1400ea99b
jmp 0x1400eaf45
mov eax, 1
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rcx
mov ecx, r14d
mov qword [rbp + 0xa0], rax
mov rdx, rax
mov r8, r15
call sub.ADVAPI32.dll_CopySid
test eax, eax
mov rax, qword [rbp + 0xb0]
je 0x1400eaa1f
test r14d, r14d
mov rdx, qword [rbp + 0xa0]
je 0x1400eaf33
cmp byte [rdx], 1
jne 0x1400eaf51
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rax
mov byte [rbp + 0xbe], 1
lea rcx, [rbp + 0x78]
lea rdx, [rbp - 0x28]
call fcn.1400e9510
mov rax, qword [rbp + 0x80]
test rax, rax
je 0x1400eaa46
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x88]
jmp 0x1400eaa8d
test r14d, r14d
mov rcx, qword [rbp + 0xa0]
je 0x1400ea92d
mov r8d, 1
mov rdx, qword [rbp + 0xb0]
call fcn.140001f30
jmp 0x1400ea92d
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x1400eaa50
mov byte [rbp + 0xbe], 1
lea rcx, [rbp - 0x10]
call fcn.140119970
mov rcx, qword [rbp - 8]
test rcx, rcx
mov rdx, qword [rbp]
cmove rdx, rcx
mov rax, rcx
mov esi, 1
cmove rax, rsi
cmovne rcx, qword [rbp - 0x10]
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rdx
mov rdx, qword [rbx]
mov qword [rbp + 0xa8], 0
mov dword [rbp + 0x94], 0
mov dword [rbp - 0x34], 0
mov byte [rbp + 0xbc], 0
lea rax, [rbp - 0x34]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x94]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x14026ed88]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x1400eab21
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 8
mov qword [rbp + 0x88], 0
jmp 0x1400eab90
mov esi, dword [rbp + 0x94]
test rsi, rsi
je 0x1400eab4f
lea rax, [rsi*8]
lea rbx, [rax + rax*2]
mov edx, 8
mov rcx, rbx
call fcn.140001f20
test rax, rax
jne 0x1400eab54
jmp 0x1400eaf9f
mov eax, 8
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 0
mov r8, qword [rbp + 0xa8]
test r8, r8
je 0x1400eaba1
mov eax, dword [rbp + 0x94]
lea rdx, [r8 + rax*8]
mov byte [rbp + 0xbc], 1
lea rcx, [rbp + 0x78]
call fcn.1400eb800
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x1400eaba1
call sub.NETAPI32.dll_NetApiBufferFree
mov rcx, qword [rbp + 0xb0]
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp + 0xa0]
mov qword [rbp - 8], rax
mov qword [rbp], rcx
mov dword [rbp + 0x38], 0
mov rax, qword [rbp + 0x50]
lea rcx, [rbp + 8]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rbp + 0x88]
mov qword [rcx + 0x28], rax
movups xmm0, xmmword [rbp + 0x78]
movups xmmword [rcx + 0x18], xmm0
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx]
jne 0x1400eac04
mov rsi, rcx
call fcn.1400ebcd0
mov rdx, qword [rsi + 0x10]
mov rcx, rsi
mov rax, qword [rcx + 8]
lea rbx, [rdx + rdx*4]
shl rbx, 4
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rax + rbx + 0x40], xmm0
movups xmm0, xmmword [rbp - 0x10]
movups xmm1, xmmword [rbp]
movups xmm2, xmmword [rbp + 0x10]
movups xmm3, xmmword [rbp + 0x20]
movups xmmword [rax + rbx + 0x30], xmm3
movups xmmword [rax + rbx + 0x20], xmm2
movups xmmword [rax + rbx + 0x10], xmm1
movups xmmword [rax + rbx], xmm0
inc rdx
mov qword [rcx + 0x10], rdx
jmp 0x1400ea92d
cmp dword [rbp + 0x68], 0xea
jne 0x1400eac77
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x1400ea870
mov byte [rbp + 0xbf], 1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1400ea870
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x1400eac8c
mov byte [rbp + 0xbf], 1
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [rbp + 0x98], 0
mov qword [rbp + 0xa8], 0
lea rcx, [rbp + 0x98]
lea rdx, [rbp + 0xa8]
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x1400eace8
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x1400eacd0
mov byte [rbp + 0xbf], 0
call sub.Secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp + 0x70]
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rsi, qword [rbp + 0xa8]
mov eax, dword [rbp + 0x98]
lea r14, [rsi + rax*8]
lea r12, [rbp - 0x28]
lea r15, [rbp - 0x10]
mov qword [rbp + 0x68], r14
jmp 0x1400ead15
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400ead15
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp rsi, r14
je 0x1400eacb8
mov qword [rbp - 0x28], 0
mov rcx, rsi
mov rdx, r12
call sub.Secur32.dll_LsaGetLogonSessionData
add rsi, 8
mov rcx, qword [rbp - 0x28]
test eax, eax
jne 0x1400eaf20
test rcx, rcx
je 0x1400eaf20
cmp dword [rcx + 0x40], 3
je 0x1400ead10
movzx ebx, word [rcx + 0x10]
mov rdi, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r15
call fcn.1400e93a0
cmp qword [rbp - 8], 0
je 0x1400ead07
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xb0], rdi
mov r14, qword [rbp]
mov qword [rbp + 0x50], r14
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x40], xmm0
mov rax, qword [rbp + 0x70]
mov rax, qword [rax + 0x10]
mov rbx, qword [rbp + 0x48]
test rax, rax
je 0x1400eae00
mov rcx, qword [rbp + 0x70]
mov r12, qword [rcx + 8]
shl rax, 4
lea r13, [rax + rax*4]
xor r15d, r15d
jmp 0x1400eadb9
add r15, 0x50
cmp r13, r15
je 0x1400eae00
cmp qword [r12 + r15 + 0x10], r14
jne 0x1400eadb0
mov rcx, qword [r12 + r15 + 8]
mov rdx, rbx
mov r8, r14
call fcn.140122fd0
test eax, eax
jne 0x1400eadb0
mov rdx, qword [rbp + 0x40]
test rdx, rdx
mov r14, qword [rbp + 0x68]
lea r12, [rbp - 0x28]
lea r15, [rbp - 0x10]
je 0x1400ead07
mov r8d, 1
mov rcx, rbx
call fcn.140001f30
jmp 0x1400ead07
mov qword [rbp - 0x40], rbx
mov byte [rbp + 0xbd], 1
lea rcx, [rbp + 0x78]
lea rdx, [rbp + 0x40]
call fcn.1400e9510
lea r15, [rbp - 0x10]
mov rax, qword [rbp + 0x80]
test rax, rax
mov rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xa0]
je 0x1400eae43
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x88]
jmp 0x1400eae75
shr r8, 1
mov byte [rbp + 0xbd], 1
mov rcx, r15
call fcn.140119970
mov rcx, qword [rbp - 8]
test rcx, rcx
mov rdx, qword [rbp - 0x10]
cmove rdx, rcx
mov rax, rcx
mov ebx, 1
cmove rax, rbx
cmovne rcx, qword [rbp]
mov rbx, qword [rbp + 0x50]
mov qword [rbp], rbx
movaps xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x10], xmm0
mov dword [rbp + 0x38], 0
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 8
mov qword [rbp + 0x30], 0
mov rdi, qword [rbp + 0x70]
mov rdx, qword [rdi + 0x10]
cmp rdx, qword [rdi]
mov r14, qword [rbp + 0x68]
jne 0x1400eaed3
mov rcx, rdi
call fcn.1400ebcd0
lea r12, [rbp - 0x28]
mov rdx, qword [rdi + 0x10]
jmp 0x1400eaed7
lea r12, [rbp - 0x28]
mov rax, qword [rdi + 8]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movaps xmm0, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movaps xmm2, xmmword [rbp + 0x10]
movaps xmm3, xmmword [rbp + 0x20]
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 [rdi + 0x10], rdx
mov rcx, qword [rbp - 0x28]
nop word [rax + rax]
test rcx, rcx
je 0x1400ead15
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1400ead15
lea r8, str.C:Users_test.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8_sysinfo_0.29.10_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.14013c000
jmp 0x1400eafb3
mov edx, 1
call fcn.14013bd90
jmp 0x1400eafb3
mov qword [rbp - 0x10], 0
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rax, [0x14026eae0]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 0
lea rax, str.C:Users_test.cargo_registry_srcmirrors.ustc.edu.cn_61ef6e0cd06fb9b8_sysinfo_0.29.10_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14026eb78]
lea r9, [rbp - 0x10]
xor ecx, ecx
call fcn.140137e10
jmp 0x1400eafb3
mov byte [rbp + 0xbc], 0
mov edx, 8
mov rcx, rbx
call fcn.14013bd90
ud2