Function at 0x140003530
Capabilities:
Get logon sessions

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x200
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14006c650]
xor rax, rsp
mov qword [rbp + 0xf0], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call qword [sym.imp.Secur32.dll_LsaEnumerateLogonSessions]
test eax, eax
js 0x140003947
xor r13d, r13d
mov edi, r13d
cmp dword [rsp + 0x28], r13d
jbe 0x14000393c
nop dword [rax]
mov qword [rsp + 0x20], r13
mov eax, edi
lea rsi, [rax*8]
mov rcx, qword [rsp + 0x30]
add rcx, rsi
lea rdx, [rsp + 0x20]
call qword [sym.imp.Secur32.dll_LsaGetLogonSessionData]
test eax, eax
js 0x140003930
mov rcx, qword [rsp + 0x20]
cmp dword [rcx + 0x40], 3
je 0x14000392a
lea rcx, [rbp - 0x60]
call fcn.1400043c0
nop
mov rax, qword [rsp + 0x20]
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xb0]
call fcn.140001210
mov r14, rax
mov rcx, qword [rsp + 0x20]
movups xmm0, xmmword [rcx + 0x10]
movaps xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xd0]
call fcn.140001210
mov r15, rax
mov rcx, qword [rsp + 0x20]
movups xmm0, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x80], xmm0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x90]
call fcn.140001210
mov r12, rax
mov rcx, qword [rbp - 0x60]
movsxd rdx, dword [rcx + 4]
lea rcx, [rbp - 0x60]
add rcx, rdx
lea rdx, [rsp + 0x50]
call fcn.14000dd40
nop
mov rcx, rax
call fcn.14000c040
mov rbx, rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000368d
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x14000368d
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbx]
mov dl, 0xa
mov rcx, rbx
call qword [rax + 0x60]
movzx edx, ax
lea rcx, [rbp - 0x60]
call fcn.14000b0f0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x18], 0
je 0x14000373b
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call fcn.14000dcc0
nop
cmp byte [rsp + 0x40], 0
je 0x14000370c
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp eax, 0xffffffff
jne 0x14000370c
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x60]
mov edx, dword [rcx + 0x10]
or edx, 4
cmp qword [rcx + 0x48], 0
jne 0x140003703
or edx, 4
xor r8d, r8d
call fcn.14000e550
nop
call fcn.1400157c0
test al, al
jne 0x14000371f
mov rcx, qword [rsp + 0x38]
call fcn.14000db70
mov rdx, qword [rsp + 0x38]
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rcx + rdx + 0x48]
test rcx, rcx
je 0x14000373b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x30]
lea rdx, str.Authentication_Id:
lea rcx, [rbp - 0x60]
call fcn.140009c40
mov rcx, rax
mov edx, dword [rbx + rsi + 4]
call fcn.140004080
mov rcx, rax
lea rdx, [0x14005ff48]
call fcn.140009c40
mov rcx, rax
mov edx, dword [rbx + rsi]
call fcn.140004220
mov rcx, rax
call fcn.14000a2e0
lea rdx, str.Authentication_Package:
mov rcx, rax
call fcn.140009c40
mov rcx, rax
mov rdx, r12
call fcn.14000a370
mov rcx, rax
call fcn.14000a2e0
lea rdx, str.Primary_User:
mov rcx, rax
call fcn.140009c40
mov rcx, rax
mov rdx, r15
call fcn.14000a370
mov rcx, rax
call fcn.14000a2e0
lea rdx, str.Authentication_Domain:
mov rcx, rax
call fcn.140009c40
mov rcx, rax
mov rdx, r14
call fcn.14000a370
mov rcx, rax
call fcn.14000a2e0
nop
cmp qword [rbp + 0xa8], 8
jb 0x1400037fb
mov rcx, qword [rbp + 0x90]
call fcn.140033ec8
mov qword [rbp + 0xa8], 7
mov qword [rbp + 0xa0], r13
mov word [rbp + 0x90], r13w
cmp qword [rbp + 0xe8], 8
jb 0x14000382b
mov rcx, qword [rbp + 0xd0]
call fcn.140033ec8
mov qword [rbp + 0xe8], 7
mov qword [rbp + 0xe0], r13
mov word [rbp + 0xd0], r13w
cmp qword [rbp + 0xc8], 8
jb 0x14000385b
mov rcx, qword [rbp + 0xb0]
call fcn.140033ec8
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x60]
call fcn.140004590
nop
mov rdx, rax
lea r14, [0x14006efa0]
mov rcx, r14
call fcn.14000a370
nop
cmp qword [rbp + 0xc8], 8
jb 0x140003895
mov rcx, qword [rbp + 0xb0]
call fcn.140033ec8
mov rcx, qword [rsp + 0x30]
add rcx, rsi
call fcn.140003480
mov rax, qword [0x14006efa0]
movsxd rcx, dword [rax + 4]
add rcx, r14
lea rdx, [rsp + 0x48]
call fcn.14000dd40
nop
mov rcx, rax
call fcn.14000c040
mov rbx, rax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400038e9
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x1400038e9
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbx]
mov dl, 0xa
mov rcx, rbx
call qword [rax + 0x60]
movzx edx, ax
mov rcx, r14
call fcn.14000b0f0
mov rcx, r14
call fcn.14000dc10
nop
lea rcx, [rbp + 0x28]
call fcn.140004510
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.14001082c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
inc edi
cmp edi, dword [rsp + 0x28]
jb 0x1400035a0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.Secur32.dll_LsaFreeReturnBuffer]
mov al, 1
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140033e20
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret