Function at 0x1401c3390
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, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 8
mov qword [rbp + 0x88], 0
mov dword [rbp - 0x24], 0
lea rbx, [rbp + 0xd8]
nop word cs:[rax + rax]
mov qword [rbp + 0x68], 0
mov dword [rbp + 0x60], 0
mov dword [rbp - 0x28], 0
lea rax, [rbp - 0x24]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x68]
call sub.NETAPI32.dll_NetUserEnum
mov r14d, eax
test eax, eax
je 0x1401c3450
cmp r14d, 0xea
jne 0x1401c3977
mov r12, qword [rbp + 0x68]
mov eax, dword [rbp + 0x60]
lea r15, [r12 + rax*8]
mov dword [rbp + 0x64], r14d
nop
cmp r12, r15
je 0x1401c3950
mov rdi, r12
add r12, 8
cmp qword [rdi], 0
je 0x1401c3460
mov qword [rbp + 0xd8], 0
mov rdx, qword [rdi]
xor ecx, ecx
mov r8d, 0x17
mov r9, rbx
call sub.NETAPI32.dll_NetUserGetInfo
mov rcx, qword [rbp + 0xd8]
test eax, eax
je 0x1401c34b0
test rcx, rcx
jne 0x1401c3946
jmp 0x1401c3460
mov rsi, qword [rcx + 0x20]
test rsi, rsi
je 0x1401c3936
mov rcx, rsi
call sub.ADVAPI32.dll_IsValidSid
test eax, eax
je 0x1401c3936
mov rcx, rsi
call sub.ADVAPI32.dll_GetLengthSid
mov r13d, eax
mov ecx, eax
test eax, eax
mov qword [rbp + 0xe8], rcx
je 0x1401c34f9
mov edx, 1
call fcn.14001a150
test rax, rax
jne 0x1401c34fe
jmp 0x1401c3cae
mov eax, 1
mov dword [rbp + 0xf0], r13d
mov ecx, r13d
mov qword [rbp + 0x70], rax
mov rdx, rax
mov r8, rsi
call sub.ADVAPI32.dll_CopySid
test eax, eax
je 0x1401c35e6
cmp dword [rbp + 0xf0], 0
mov rax, qword [rbp + 0xe8]
mov rdx, qword [rbp + 0x70]
je 0x1401c3c9c
cmp byte [rdx], 1
jne 0x1401c3cc1
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], rax
mov byte [rbp + 0xfe], 1
lea rcx, [rbp + 0x90]
lea rdx, [rbp + 0x48]
call fcn.1401bd400
mov rcx, qword [rbp + 0x90]
movabs rax, 0x8000000000000000
cmp rcx, rax
jne 0x1401c360e
mov rdx, qword [rdi]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x1401c3590
mov byte [rbp + 0xfe], 1
lea rcx, [rbp - 0x10]
call fcn.1401faeb0
mov rdx, qword [rbp - 0x10]
movabs rax, 0x8000000000000000
cmp rdx, rax
mov r14, qword [rbp]
mov eax, 0
cmove r14, rax
mov r8, qword [rbp - 8]
mov ecx, 1
cmove r8, rcx
mov qword [rbp - 0x18], r8
cmove rdx, rax
mov qword [rbp - 0x20], rdx
jmp 0x1401c3624
cmp dword [rbp + 0xf0], 0
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x70]
je 0x1401c3936
mov r8d, 1
call fcn.14001a130
jmp 0x1401c3936
mov qword [rbp - 0x20], rcx
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x18], rax
mov r14, qword [rbp + 0xa0]
mov rdx, qword [rdi]
mov qword [rbp + 0xe0], 0
mov dword [rbp + 0xd4], 0
mov dword [rbp - 0x2c], 0
mov byte [rbp + 0xfd], 0
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xd4]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140b17de8]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x1401c36b0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], 8
xor eax, eax
mov qword [rbp + 0xf0], rax
jmp 0x1401c3832
mov r13d, dword [rbp + 0xd4]
test r13, r13
je 0x1401c36e9
lea rax, [r13*8]
lea rdi, [rax + rax*2]
movzx eax, byte [0x140b65265]
mov edx, 8
mov rcx, rdi
call fcn.14001a120
mov rsi, rax
test rax, rax
jne 0x1401c36ee
jmp 0x1401c3d06
mov esi, 8
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], 0
mov rbx, qword [rbp + 0xe0]
test rbx, rbx
je 0x1401c3746
mov edi, dword [rbp + 0xd4]
cmp r13d, edi
jae 0x1401c3775
mov byte [rbp + 0xfd], 1
lea rcx, [rbp + 0xb0]
xor edx, edx
mov r8, rdi
call fcn.1402114e0
mov rsi, qword [rbp + 0xb8]
mov rax, qword [rbp + 0xc0]
jmp 0x1401c378e
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x98], rax
jmp 0x1401c386d
mov eax, 0
mov qword [rbp + 0xf0], rax
mov eax, 0
test edi, edi
je 0x1401c3832
mov qword [rbp + 0xf0], rax
xor r13d, r13d
nop dword [rax + rax]
mov rdx, qword [rbx + r13*8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x1401c37b0
lea rcx, [rbp + 0x90]
call fcn.1401faeb0
mov rax, qword [rbp + 0x90]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov rcx, qword [rbp + 0xa0]
mov r8d, 0
cmove rcx, r8
mov rdx, qword [rbp + 0x98]
mov r9d, 1
cmove rdx, r9
cmove rax, r8
mov r9, qword [rbp + 0xf0]
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 + 0xf0], r9
inc r13
cmp r13, rdi
jne 0x1401c37a0
mov rcx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xa0], rax
test rcx, rcx
je 0x1401c386d
call sub.NETAPI32.dll_NetApiBufferFree
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp + 0x70]
mov qword [rbp - 8], rcx
mov qword [rbp], rax
mov dword [rbp + 0x38], 0
mov rax, qword [rbp - 0x20]
mov qword [rbp + 8], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], r14
mov rax, qword [rbp + 0xa0]
lea rcx, [rbp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x90]
mov qword [rcx], rax
mov rax, qword [rbp + 0x98]
mov qword [rcx + 8], rax
mov rdx, qword [rbp + 0x88]
cmp rdx, qword [rbp + 0x78]
lea rbx, [rbp + 0xd8]
jne 0x1401c38ed
lea rcx, [rbp + 0x78]
call fcn.1401c7720
mov r14d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x88]
jmp 0x1401c38f1
mov r14d, dword [rbp + 0x64]
mov rax, qword [rbp + 0x80]
lea rcx, [rdx + rdx*4]
shl rcx, 4
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rbp - 0x10]
movups xmm1, xmmword [rbp]
movups xmm2, xmmword [rbp + 0x10]
movups 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 [rbp + 0x88], rdx
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x1401c3460
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1401c3460
mov rcx, qword [rbp + 0x68]
cmp r14d, 0xea
jne 0x1401c397b
test rcx, rcx
je 0x1401c33f0
mov byte [rbp + 0xff], 1
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1401c33f0
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x1401c398c
mov byte [rbp + 0xff], 1
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0
lea rcx, [rbp + 0xd8]
lea rdx, [rbp + 0xe0]
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov rsi, qword [rbp + 0xe0]
test eax, eax
jne 0x1401c3c5a
mov eax, dword [rbp + 0xd8]
lea rdi, [rsi + rax*8]
lea rbx, [rbp + 0x48]
lea r14, [rbp - 0x10]
mov qword [rbp + 0xe8], rdi
jmp 0x1401c39ec
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1401c39ec
call sub.Secur32.dll_LsaFreeReturnBuffer
cmp rsi, rdi
je 0x1401c3c53
mov qword [rbp + 0x48], 0
mov rcx, rsi
mov rdx, rbx
call sub.Secur32.dll_LsaGetLogonSessionData
add rsi, 8
mov rcx, qword [rbp + 0x48]
test eax, eax
jne 0x1401c3c40
test rcx, rcx
je 0x1401c3c40
cmp dword [rcx + 0x40], 3
je 0x1401c39e7
movzx r13d, word [rcx + 0x10]
mov r12, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r14
call fcn.1401bd280
movabs rax, 0x8000000000000000
cmp qword [rbp - 0x10], rax
je 0x1401c39de
mov r14, qword [rbp]
mov qword [rbp + 0xc0], r14
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0xb0], xmm0
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xb8]
mov qword [rbp + 0xf0], rcx
test rax, rax
je 0x1401c3aee
mov rbx, qword [rbp + 0x80]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x1401c3a99
add r15, 0x50
cmp rdi, r15
je 0x1401c3aee
cmp qword [rbx + r15 + 0x10], r14
jne 0x1401c3a90
mov rcx, qword [rbx + r15 + 8]
mov rdx, qword [rbp + 0xf0]
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1401c3a90
mov rdx, qword [rbp + 0xb0]
test rdx, rdx
mov rdi, qword [rbp + 0xe8]
lea rbx, [rbp + 0x48]
lea r14, [rbp - 0x10]
je 0x1401c39de
mov r8d, 1
mov rcx, qword [rbp + 0xf0]
call fcn.14001a130
jmp 0x1401c39de
mov byte [rbp + 0xfc], 1
lea rcx, [rbp + 0x90]
lea rdx, [rbp + 0xb0]
call fcn.1401bd400
lea r14, [rbp - 0x10]
mov rax, qword [rbp + 0x90]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1401c3b6c
shr r13d, 1
mov byte [rbp + 0xfc], 1
mov rcx, r14
mov rdx, r12
mov r8, r13
call fcn.1401faeb0
mov rax, qword [rbp - 0x10]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov r8d, 0
cmove rax, r8
mov rcx, qword [rbp - 8]
mov edx, 1
cmove rcx, rdx
mov rdx, qword [rbp]
cmove rdx, r8
jmp 0x1401c3b7a
mov rcx, qword [rbp + 0x98]
mov rdx, qword [rbp + 0xa0]
mov r8, qword [rbp + 0xc0]
mov qword [rbp], r8
movaps xmm0, xmmword [rbp + 0xb0]
movaps xmmword [rbp - 0x10], xmm0
mov dword [rbp + 0x38], 0
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 8
mov qword [rbp + 0x30], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, qword [rbp + 0x78]
mov rdi, qword [rbp + 0xe8]
jne 0x1401c3be5
lea rcx, [rbp + 0x78]
call fcn.1401c7720
lea rbx, [rbp + 0x48]
mov rdx, qword [rbp + 0x88]
jmp 0x1401c3be9
lea rbx, [rbp + 0x48]
mov rax, qword [rbp + 0x80]
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 [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x48]
nop word cs:[rax + rax]
test rcx, rcx
je 0x1401c39ec
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1401c39ec
mov rsi, qword [rbp + 0xe0]
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp - 0x38]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0x78]
movups xmmword [rcx], xmm0
test rsi, rsi
je 0x1401c3c84
mov byte [rbp + 0xff], 0
mov rcx, rsi
call sub.Secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp - 0x38]
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.10_srcwindows_sid.rs
xor ecx, ecx
xor edx, edx
call fcn.14021d300
jmp 0x1401c3d1a
mov ecx, 1
mov rdx, qword [rbp + 0xe8]
call fcn.14021cf70
jmp 0x1401c3d1a
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rax, [0x140b17508]
mov qword [rbp], rax
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
lea rax, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.10_srcwindows_sid.rs
mov qword [rsp + 0x20], rax
lea r8, reloc.WS2_32.dll_accept
lea r9, [rbp - 0x10]
xor ecx, ecx
call fcn.140219e20
jmp 0x1401c3d1a
mov byte [rbp + 0xfd], 0
mov ecx, 8
mov rdx, rdi
call fcn.14021cf70
ud2