Function at 0x18002b9c0
Capabilities:
Get logon sessions
List user accounts

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov rbx, rcx
movabs r13, 0x8000000000000000
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx + 0x10]
mov qword [rcx + 0x10], 0
test rdi, rdi
je 0x18002ba5a
add rsi, 0x38
jmp 0x18002ba09
add rsi, 0x50
dec rdi
je 0x18002ba5a
mov rdx, qword [rsi - 0x38]
test rdx, rdx
je 0x18002ba21
mov rcx, qword [rsi - 0x30]
mov r8d, 1
call fcn.18000a8a0
mov rdx, qword [rsi - 0x20]
test rdx, rdx
je 0x18002ba39
mov rcx, qword [rsi - 0x18]
mov r8d, 1
call fcn.18000a8a0
mov rdx, qword [rsi - 8]
cmp rdx, r13
je 0x18002ba00
test rdx, rdx
je 0x18002ba00
mov rcx, qword [rsi]
add rdx, rdx
mov r8d, 2
call fcn.18000a8a0
jmp 0x18002ba00
mov dword [rsp + 0x128], 0
mov qword [rsp + 0x110], 0
lea r14, [rsp + 0x48]
lea r15, [rsp + 0xf8]
mov qword [rsp + 0x90], rbx
nop word cs:[rax + rax]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x12c], 0
lea rax, [rsp + 0x128]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x12c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0x60]
call sub.netapi32.dll_NetUserEnum
test eax, eax
je 0x18002bafb
cmp eax, 0xea
jne 0x18002be79
mov r12, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x6c]
test rbp, rbp
je 0x18002be5c
mov dword [rsp + 0x124], eax
shl rbp, 3
xor edi, edi
mov qword [rsp + 0x160], r12
mov qword [rsp + 0x158], rbp
jmp 0x18002bb3d
add rdi, 8
cmp rbp, rdi
je 0x18002be50
mov rsi, qword [r12 + rdi]
test rsi, rsi
je 0x18002bb30
mov qword [rsp + 0x48], 0
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x17
mov r9, r14
call sub.netapi32.dll_NetUserGetInfo
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x18002bb80
test rcx, rcx
jne 0x18002be43
jmp 0x18002bb30
mov rdx, qword [rcx + 0x20]
mov rcx, r15
call fcn.180015050
cmp qword [rsp + 0xf8], r13
je 0x18002be35
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x70]
call fcn.1800151d0
mov rbx, qword [rsp + 0x140]
cmp rbx, r13
jne 0x18002bc4a
mov rax, qword [r12 + rdi]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18002bc6c
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x50]
call fcn.180054b00
mov rbx, qword [rsp + 0xa0]
cmp rbx, r13
mov rax, qword [rsp + 0xb0]
mov ecx, 0
cmove rax, rcx
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0xa8]
mov eax, 1
cmove rdx, rax
mov qword [rsp + 0x98], rdx
mov eax, 0
mov qword [rsp + 0x110], rax
cmove rbx, rcx
jmp 0x18002bc87
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x118], rax
jmp 0x18002bc87
mov eax, 1
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x118], 0
xor ebx, ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x138], rax
mov r15, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rsi
lea rcx, [rsp + 0xa0]
call fcn.18004d990
mov rsi, rdx
mov rbp, rbx
test rdx, rdx
js 0x18002c1b6
mov r14, rax
lea rbx, [rsi + rsi]
lea rax, [r13 - 2]
cmp rbx, rax
ja 0x18002c1b6
test rbx, rbx
je 0x18002bd0b
mov rax, qword [0x180380fe8]
movzx eax, byte [rax]
mov edx, 2
mov rcx, rbx
call fcn.18000a890
test rax, rax
je 0x18002c1a1
mov r12, rax
mov r13, rsi
jmp 0x18002bd14
mov r12d, 2
xor r13d, r13d
mov rcx, r12
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], rbp
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], r13
mov qword [rsp + 0x130], r12
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xe0], rsi
mov dword [rsp + 0xe8], 0
mov byte [rsp + 0xec], 1
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rbx + 0x10]
cmp rsi, qword [rbx]
jne 0x18002bdbb
mov rcx, rbx
call fcn.1800284c0
mov rax, qword [rbx + 8]
lea rcx, [rsi + rsi*4]
shl rcx, 4
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rsp + 0xa0]
movups xmm1, xmmword [rsp + 0xb0]
movups xmm2, xmmword [rsp + 0xc0]
movups xmm3, xmmword [rsp + 0xd0]
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 [rbx + 0x10], rsi
movabs r13, 0x8000000000000000
lea r14, [rsp + 0x48]
lea r15, [rsp + 0xf8]
mov r12, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002bb30
call sub.netapi32.dll_NetApiBufferFree
jmp 0x18002bb30
mov r12, qword [rsp + 0x60]
mov eax, dword [rsp + 0x124]
cmp eax, 0xea
jne 0x18002be7e
test r12, r12
je 0x18002ba90
mov rcx, r12
call sub.netapi32.dll_NetApiBufferFree
jmp 0x18002ba90
mov r12, qword [rsp + 0x60]
test r12, r12
je 0x18002be8b
mov rcx, r12
call sub.netapi32.dll_NetApiBufferFree
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x50]
call sub.secur32.dll_LsaEnumerateLogonSessions
mov rdi, qword [rsp + 0x50]
test eax, eax
js 0x18002c17f
mov eax, dword [rsp + 0x48]
test rax, rax
je 0x18002c17f
lea r14, [rdi + rax*8]
lea r15, [rsp + 0xf8]
lea r12, [rsp + 0xa0]
mov qword [rsp + 0x58], r14
jmp 0x18002bf52
mov rax, qword [rbx + 8]
lea rcx, [rsi + rsi*4]
shl rcx, 4
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movaps xmm3, xmmword [rsp + 0xd0]
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 [rbx + 0x10], rsi
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x18002bf45
call sub.secur32.dll_LsaFreeReturnBuffer
add rdi, 8
cmp rdi, r14
je 0x18002c17a
mov qword [rsp + 0xf8], 0
mov rcx, rdi
mov rdx, r15
call sub.secur32.dll_LsaGetLogonSessionData
test eax, eax
sets al
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
sete dl
or dl, al
jne 0x18002bf3b
cmp dword [rcx + 0x40], 3
je 0x18002bf40
movzx esi, word [rcx + 0x10]
mov r13, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r12
call fcn.180015050
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xa0], rax
je 0x18002bf33
mov r15, qword [rsp + 0xb0]
mov qword [rsp + 0x80], r15
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x70], xmm0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x18002c062
mov rcx, qword [rsp + 0x90]
mov r14, qword [rcx + 8]
mov rbp, qword [rsp + 0x78]
shl rax, 4
lea rbx, [rax + rax*4]
xor r12d, r12d
jmp 0x18002c009
add r12, 0x50
cmp rbx, r12
je 0x18002c062
cmp qword [r14 + r12 + 0x10], r15
jne 0x18002c000
mov rcx, qword [r14 + r12 + 8]
mov rdx, rbp
mov r8, r15
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x18002c000
mov rdx, qword [rsp + 0x70]
test rdx, rdx
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x58]
lea r15, [rsp + 0xf8]
lea r12, [rsp + 0xa0]
je 0x18002bf33
mov r8d, 1
mov rcx, rbp
call fcn.18000a8a0
jmp 0x18002bf33
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x70]
call fcn.1800151d0
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x58]
lea r15, [rsp + 0xf8]
lea r12, [rsp + 0xa0]
mov rax, qword [rsp + 0x140]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x18002c0f6
shr esi, 1
mov rcx, r12
mov rdx, r13
mov r8, rsi
call fcn.1800e13d0
mov rax, qword [rsp + 0xa0]
movabs r9, 0x8000000000000000
cmp rax, r9
mov r8d, 0
cmove rax, r8
mov rcx, qword [rsp + 0xa8]
mov edx, 1
cmove rcx, rdx
mov rdx, qword [rsp + 0xb0]
cmove rdx, r8
jmp 0x18002c110
mov rcx, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x150]
movabs r9, 0x8000000000000000
mov r8, qword [rsp + 0x80]
mov qword [rsp + 0xb0], r8
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], rdx
mov qword [rsp + 0xd0], r9
mov dword [rsp + 0xe8], 0
mov byte [rsp + 0xec], 0
mov rsi, qword [rbx + 0x10]
cmp rsi, qword [rbx]
jne 0x18002bee0
mov rcx, rbx
call fcn.1800284c0
jmp 0x18002bee0
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18002c18c
mov rcx, rdi
call sub.secur32.dll_LsaFreeReturnBuffer
nop
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 2
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x130], rbx
mov rcx, qword [rsp + 0x110]
mov rdx, qword [rsp + 0x130]
call fcn.1800debd0
ud2