Function at 0x1400fb1e0
Capabilities:
Get logon sessions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x188]
sub rsp, 0x288
mov qword [rbp + 0x120], 0xfffffffffffffffe
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, r9
mov r15, r8
mov qword [rsp + 0x78], r8
mov qword [rbp - 0x40], rdx
mov rsi, rcx
mov qword [rbp + 0x128], rcx
xor r12d, r12d
mov dword [rsp + 0x4c], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r12
lea rcx, [rbp + 0x130]
call fcn.14003ead0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rbp + 0x160], r12
mov qword [rbp + 0x168], r12
mov qword [rbp + 0x168], reloc.WSOCK32.dll_ntohs
mov qword [rbp + 0x160], r12
mov byte [rbp + 0x150], r12b
mov byte [rsp + 0x30], r12b
lea rcx, [0x140000000]
lea rax, [rcx + 0x285d58]
mov qword [rbp + 0x20], rax
lea rax, [rcx + 0x287b88]
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x40], rax
lea r14, vtable.std::ios_base.0
mov qword [rbp + 0xb8], r14
lea r13, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb8], r13
mov dword [rsp + 0x4c], 3
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x1c], edx
mov qword [rbp + 0x28], r12
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
xor r8d, r8d
lea rdx, [rbp + 0x38]
call fcn.1400205a0
nop
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x2c], edx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [0x140285d40]
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x1c], edx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [0x140285d48]
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1c], edx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x38]
call fcn.140020400
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x38], rax
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400fb3d9
mov rbx, qword [rbx]
xor r9d, r9d
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.1400201f0
nop
mov byte [r15], 0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call sub.Secur32.dll_LsaEnumerateLogonSessions
mov ebx, eax
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x1400fb8b3
mov r14d, r12d
mov dword [rsp + 0x34], r12d
cmp dword [rsp + 0x48], r12d
jbe 0x1400fb8aa
nop dword [rax]
mov ecx, r14d
mov rax, qword [rsp + 0x70]
lea rcx, [rax + rcx*8]
lea rdx, [rsp + 0x38]
call sub.Secur32.dll_LsaGetLogonSessionData
mov ebx, eax
test eax, eax
jne 0x1400fb846
mov rcx, qword [rsp + 0x38]
mov edx, dword [rcx + 0x40]
lea eax, [rdx - 2]
test eax, 0xfffffff6
jne 0x1400fb878
cmp edx, 3
je 0x1400fb878
movzx eax, word [rcx + 0x10]
inc ax
movzx r14d, word [rcx + 0x20]
inc r14w
movzx eax, ax
mov qword [rsp + 0x40], rax
mov ecx, eax
call fcn.140113934
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140052f80
nop
mov rax, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x48], rax
mov r13, qword [rbp - 0x80]
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x50], r13
test rcx, rcx
je 0x1400fb4e6
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400fb4e6
mov rbx, qword [rbp - 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400fb4e6
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_htonl]
movzx r15d, r14w
mov ecx, r15d
call fcn.140113934
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140052f80
nop
mov r14, qword [rbp - 0x68]
mov rcx, qword [rsp + 0x68]
mov qword [rbp - 0x68], rcx
mov qword [rsp + 0x68], r14
mov r12, qword [rbp - 0x70]
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x60], r12
test rcx, rcx
je 0x1400fb55e
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400fb55e
mov rbx, qword [rbp - 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400fb55e
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, r13
call fcn.140141ad0
mov r8, r15
xor edx, edx
mov rcx, r12
call fcn.140141ad0
mov rdx, qword [rsp + 0x38]
movzx r8d, word [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
mov rcx, r13
call fcn.1400f9640
mov rdx, qword [rsp + 0x38]
movzx r8d, word [rdx + 0x20]
mov rdx, qword [rdx + 0x28]
mov rcx, r12
call fcn.1400f9640
mov rbx, qword [rbp - 0x40]
mov rdx, rbx
mov rcx, r12
call fcn.140158904
test eax, eax
jne 0x1400fb65b
lea r15, [rbx + 0x10]
mov rbx, rdi
lea rbx, [rbx + 1]
cmp byte [r15 + rbx], 0
jne 0x1400fb5c4
lea rcx, [rbx + 1]
call fcn.140113934
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140052f80
nop
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x30], r14
mov qword [rsp + 0x68], rax
mov rdx, qword [rbp - 0x38]
mov qword [rsp + 0x40], rdx
mov qword [rbp - 0x38], r12
mov qword [rsp + 0x60], rdx
test r14, r14
je 0x1400fb63c
mov eax, edi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x1400fb63c
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, edi
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x1400fb63c
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WSOCK32.dll_htonl]
mov r8, r15
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x40]
call fcn.140156f18
mov r12b, 1
mov byte [rsp + 0x30], r12b
mov rbx, qword [rbp - 0x40]
jmp 0x1400fb661
movzx r12d, byte [rsp + 0x30]
mov ecx, 0x90
call fcn.1400dba80
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1400fb691
mov byte [rsp + 0x20], r12b
mov r9, rbx
mov r8, qword [rsp + 0x60]
mov rdx, r13
mov rcx, rax
call fcn.140100d80
xor r12d, r12d
jmp 0x1400fb697
xor r12d, r12d
mov eax, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400d2b00
nop
mov r14, qword [rbp - 0x58]
mov rcx, qword [rsp + 0x58]
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x58], r14
mov r15, qword [rbp - 0x60]
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x50], r15
test rcx, rcx
je 0x1400fb703
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400fb703
mov rbx, qword [rbp - 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400fb703
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov r8b, 1
lea rdx, [rbp + 0x150]
mov rcx, r15
call fcn.140101220
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rbp - 8], reloc.WSOCK32.dll_ntohs
mov qword [rbp - 0x10], r12
mov byte [rbp - 0x20], 0
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x150]
lea rcx, [rbp - 0x20]
call fcn.140009e10
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x130]
call fcn.14003ee10
test al, al
jne 0x1400fb805
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x18], reloc.WSOCK32.dll_ntohs
mov qword [rbp + 0x10], r12
mov byte [rbp], 0
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x150]
lea rcx, [rbp]
call fcn.140009e10
nop
lea rdx, [rbp]
lea rcx, [rbp + 0x130]
call fcn.14003ece0
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x1400fb811
mov rcx, qword [rsi]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x1400fb811
lea rbx, [rsp + 0x50]
sub rbx, rcx
cmp rax, qword [rsi + 0x10]
jne 0x1400fb7d3
mov edx, 1
mov rcx, rsi
call fcn.1400fdd50
mov rcx, qword [rsi + 8]
and rbx, 0xfffffffffffffff0
add rbx, qword [rsi]
test rcx, rcx
je 0x1400fb800
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov r8, qword [rbx + 8]
mov rdx, qword [rbx]
test r8, r8
je 0x1400fb7fb
lock inc dword [r8 + 8]
call fcn.14001b0d0
add qword [rsi + 8], 0x10
mov r14d, dword [rsp + 0x34]
mov r15, qword [rsp + 0x78]
jmp 0x1400fb873
cmp rax, qword [rsi + 0x10]
jne 0x1400fb824
mov edx, 1
mov rcx, rsi
call fcn.1400fdd50
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400fb800
mov qword [rcx], r12
mov qword [rcx + 8], r12
test r14, r14
je 0x1400fb83e
lock inc dword [r14 + 8]
mov r8, r14
mov rdx, r15
jmp 0x1400fb7fb
mov byte [r15], 1
lea rdx, str.____Unable_to_get_session_information_for_user__
lea rcx, [rbp + 0x30]
call fcn.14003c240
mov rcx, rax
mov edx, ebx
call fcn.1400fa900
mov rcx, rax
lea rdx, [0x140222990]
call fcn.14003c240
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400fb887
call sub.Secur32.dll_LsaFreeReturnBuffer
mov qword [rsp + 0x38], r12
inc r14d
mov dword [rsp + 0x34], r14d
cmp r14d, dword [rsp + 0x48]
jb 0x1400fb420
lea r14, vtable.std::ios_base.0
lea r13, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
jmp 0x1400fb8e0
lea r14, vtable.std::ios_base.0
jmp 0x1400fb8e0
mov byte [r15], 1
lea rdx, str.____Unable_to_enumerate_logon_sessions__
lea rcx, [rbp + 0x30]
call fcn.14003c240
mov rcx, rax
mov edx, ebx
call fcn.1400fa900
mov rcx, rax
lea rdx, [0x140222990]
call fcn.14003c240
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400fb8f4
call sub.Secur32.dll_LsaFreeReturnBuffer
mov qword [rsp + 0x70], r12
lea rcx, [rbp + 0xb8]
call fcn.14001d190
lea rax, [rbp + 0xb8]
mov qword [rbp - 0x28], rax
mov qword [rbp + 0xb8], r13
mov qword [rbp + 0xb8], r14
lea rcx, [rbp + 0xb8]
call fcn.140115850
nop
mov rax, qword [rbp + 0x168]
cmp rax, 0x10
jb 0x1400fb982
inc rax
mov rcx, qword [rbp + 0x150]
cmp rax, 0x1000
jb 0x1400fb97d
test cl, 0x1f
je 0x1400fb950
call fcn.14014b4d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400fb95f
call fcn.14014b4d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400fb96e
call fcn.14014b4d8
int3
cmp rcx, 0x27
jbe 0x1400fb97a
call fcn.14014b4d8
int3
mov rcx, rax
call fcn.1400dbae0
mov qword [rbp + 0x168], reloc.WSOCK32.dll_ntohs
mov qword [rbp + 0x160], r12
mov byte [rbp + 0x150], 0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400fb9d6
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400fb9d6
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400fb9d6
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_htonl]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400fba11
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400fba11
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400fba11
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_htonl]
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400fba47
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400fba47
mov rbx, qword [rbp - 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400fba47
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_htonl]
nop
lea rcx, [rbp + 0x130]
call fcn.14003ebf0
mov rax, rsi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140113910
add rsp, 0x288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret