Function at 0x14011b660
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rdx
xor r15d, r15d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
mov edi, 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x80], r15w
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov r14d, edi
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x60], r15w
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
mov esi, edi
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x40], r15w
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rdi
mov word [rbp - 0x60], r15w
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8d, [r15 + 0x17]
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x14011bab8
mov rsi, qword [rsp + 0x30]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14011b730
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400739a0
lea rdx, [rsi + 0x2a]
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14011b750
lea rcx, [rsp + 0x60]
call fcn.1400739a0
lea rdx, [rsi + 0x4e]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14011b770
lea rcx, [rsp + 0x40]
call fcn.1400739a0
cmp dword [rsi + 0x490], 2
jne 0x14011b7de
add rsi, 0x494
je 0x14011b7de
movzx eax, word [rsi + 6]
movzx ecx, word [rsi + 4]
movzx r9d, word [rsi + 2]
movzx r8d, word [rsi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._03u._03u._03u._03u
lea rcx, [rbp - 0x40]
call fcn.14011eea0
lea rax, [rbp - 0x40]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14011b7c4
mov r8, rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.1400739a0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x14011b81f
lea r8, [rcx + 2]
mov qword [rbx + 0x10], r8
mov rax, rbx
cmp rdx, 8
jb 0x14011b811
mov rax, qword [rbx]
mov dword [rax + rcx*2], 0xa000d
mov word [rax + r8*2], r15w
jmp 0x14011b83f
lfence
mov qword [rsp + 0x20], 2
lea r9, [0x1405e494c]
mov edx, 2
mov rcx, rbx
call fcn.1400735a0
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x12
jb 0x14011b884
lea rsi, [rcx + 0x12]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x14011b867
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x24
lea rdx, str.RDP_session_from_
call fcn.14035bc80
mov word [rdi + rsi*2], r15w
jmp 0x14011b8a4
lfence
mov qword [rsp + 0x20], 0x12
lea r9, str.RDP_session_from_
mov edx, 0x12
mov rcx, rbx
call fcn.1400735a0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
mov rcx, rbx
call fcn.140073720
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x14011b903
lea rsi, [rcx + 3]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x14011b8e6
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 6
lea rdx, [0x1405f9f08]
call fcn.14035bc80
mov word [rdi + rsi*2], r15w
jmp 0x14011b923
lfence
mov qword [rsp + 0x20], 3
lea r9, [0x1405f9f08]
mov edx, 3
mov rcx, rbx
call fcn.1400735a0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
mov rcx, rbx
call fcn.140073720
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x14011b982
lea rsi, [rcx + 9]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x14011b965
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x12
lea rdx, str.__using_
call fcn.14035bc80
mov word [rdi + rsi*2], r15w
jmp 0x14011b9a2
lfence
mov qword [rsp + 0x20], 9
lea r9, str.__using_
mov edx, 9
mov rcx, rbx
call fcn.1400735a0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140073720
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rax, 1
jb 0x14011b9fa
lea rdx, [rcx + 1]
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp r8, 8
jb 0x14011b9e8
mov rax, qword [rbx]
mov r8d, 0x5c
mov word [rax + rcx*2], r8w
mov word [rax + rdx*2], r15w
jmp 0x14011ba1a
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x1405e45bc]
mov edx, 1
mov rcx, rbx
call fcn.1400735a0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140073720
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x14011ba88
lea rdi, [rcx + 3]
mov qword [rbx + 0x10], rdi
cmp rdx, 8
jb 0x14011ba5d
mov rbx, qword [rbx]
lea rcx, [rbx + rcx*2]
mov r8d, 6
lea rdx, [0x1405f9f38]
call fcn.14035bc80
mov word [rbx + rdi*2], r15w
mov rdi, qword [rbp - 0x68]
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x58]
jmp 0x14011bac5
lfence
mov qword [rsp + 0x20], 3
lea r9, [0x1405f9f38]
mov edx, 3
mov rcx, rbx
call fcn.1400735a0
mov rdi, qword [rbp - 0x68]
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x58]
jmp 0x14011bac5
lea rcx, str.WTSQuerySessionInformation
call fcn.1400892d0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14011bb06
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011bb00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011bbe2
call fcn.140359090
nop
cmp rsi, 8
jb 0x14011bb44
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011bb3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011bbe8
call fcn.140359090
nop
cmp r14, 8
jb 0x14011bb7e
lea rdx, [r14*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011bb78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011bbee
call fcn.140359090
nop
cmp rdi, 8
jb 0x14011bbb6
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011bbb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011bbdc
call fcn.140359090
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140359070
mov rbx, qword [rsp + 0x210]
add rsp, 0x1d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140368068
nop
call fcn.140368068
nop
call fcn.140368068
nop
call fcn.140368068
int3