Function at 0x14002f860
Capabilities:
Get session information
Get session user name

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x300
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x110]
call fcn.140052ed0
nop
lea rdx, [0x1402d078c]
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
mov dword [rsp + 0x20], 0x20019
mov r9, 0xffffffff80000003
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x110]
call fcn.1400535a0
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r15d, r15d
mov qword [rsp + 0x58], r15
lea rdx, [0x1402d078c]
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x110]
call fcn.140053090
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
lea rcx, [rbp - 0x48]
call fcn.14001cac0
nop
mov r14d, r15d
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
sub rcx, r8
movabs r12, 0x6666666666666667
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14002fe7a
mov eax, r15d
nop word [rax + rax]
lea rax, [rax + rax*4]
lea rdx, [r8 + rax*8]
lea rcx, [rbp + 8]
call fcn.14001c0d0
nop
lea rdx, str.S_1_5_21_
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
mov r8b, 1
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 8]
call fcn.140025ef0
movzx ebx, al
lea rcx, [rsp + 0x68]
call fcn.14001d440
test bl, bl
je 0x14002fe41
lea rcx, [rbp + 8]
call fcn.140026e10
cmp eax, 0x19
jle 0x14002fe41
lea rdx, str._Classes
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 8]
call fcn.140025fb0
movzx ebx, al
lea rcx, [rsp + 0x68]
call fcn.14001d440
test bl, bl
jne 0x14002fe41
lea rcx, [rbp + 0x30]
call fcn.14002dfd0
lea rcx, [rbp + 0x48]
cmp dword [rbp + 0x3c], 5
jne 0x14002fa30
call fcn.14001d440
mov al, 1
jmp 0x14002fa37
call fcn.14001d440
xor al, al
test al, al
je 0x14002fbe2
lea rcx, [rbp + 0x30]
call fcn.140052ed0
nop
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorer
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
lea r8, [rsp + 0x68]
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x70]
call fcn.14001da00
nop
mov dword [rsp + 0x20], 0x20019
mov r9, 0xffffffff80000003
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400535a0
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
lea rdx, str.Logon_User_Name
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x30]
call fcn.140053480
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r15d
lea rcx, [0x1402d4bc8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
lea rdx, str.WTSGetActiveConsoleSessionId
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002ff05
call rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov r8d, 5
mov edx, eax
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov ebx, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.14001c950
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14002fb4b
mov rcx, qword [rsp + 0x40]
call sub.WTSAPI32.dll_WTSFreeMemory
lea rdx, [0x1402d03d8]
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x48]
call fcn.140021aa0
nop
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.14001d690
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
lea rcx, [rbp - 0x48]
call fcn.140028de0
test al, al
je 0x14002fbcf
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.140026070
test al, al
jne 0x14002fed9
test ebx, ebx
je 0x14002fed9
lea rcx, [rbp - 0x20]
call fcn.14001f680
test al, al
jne 0x14002fed9
lea rcx, [rbp - 0x20]
call fcn.14001d440
nop
lea rcx, [rbp + 0x30]
jmp 0x14002fe3b
lea rcx, [rbp + 0x30]
call fcn.14002dfd0
lea rcx, [rbp + 0x48]
cmp dword [rbp + 0x3c], 6
jl 0x14002fbfe
call fcn.14001d440
mov al, 1
jmp 0x14002fc05
call fcn.14001d440
xor al, al
test al, al
je 0x14002fe41
lea rcx, [rbp + 0x180]
call fcn.140052ed0
nop
lea rdx, str.Volatile_Environment
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
lea r8, [rbp - 0x70]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x30]
call fcn.14001da00
nop
mov dword [rsp + 0x20], 0x20019
mov r9, 0xffffffff80000003
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x180]
call fcn.1400535a0
nop
lea rcx, [rbp + 0x30]
call fcn.14001d440
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
lea rdx, str.USERNAME
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x180]
call fcn.140053480
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
lea rcx, [rbp - 0x20]
call fcn.14001cac0
nop
lea rcx, [rbp + 0xa0]
call fcn.140052ed0
nop
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUI
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
mov dword [rsp + 0x20], 0x20019
mov r9, 0xffffffff80000002
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xa0]
call fcn.1400535a0
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
lea rdx, [0x1402d4fa8]
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xa0]
call fcn.140053480
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
lea rdx, [0x1402d03d8]
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140021aa0
nop
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14001d690
nop
lea rcx, [rbp + 0x30]
call fcn.14001d440
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
lea rcx, [rsp + 0x68]
call fcn.14001cac0
nop
call fcn.14002d8d0
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x3c], r15d
lea rcx, [rsp + 0x3c]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov r8d, 5
mov edx, eax
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14002fdd4
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.14001d690
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
mov rcx, qword [rsp + 0x30]
call sub.WTSAPI32.dll_WTSFreeMemory
lea rcx, [rbp - 0x48]
call fcn.140028de0
test al, al
je 0x14002fe12
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.140026070
test al, al
jne 0x14002ffe6
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x48]
call fcn.140026070
test al, al
jne 0x14002ffe6
lea rcx, [rsp + 0x68]
call fcn.14001d440
nop
lea rcx, [rbp + 0xa0]
call fcn.140052f10
nop
lea rcx, [rbp - 0x20]
call fcn.14001d440
nop
lea rcx, [rbp + 0x180]
call fcn.140052f10
nop
lea rcx, [rbp + 8]
call fcn.14001d440
inc r14d
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
sub rcx, r8
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, r14d
cmp rax, rdx
jb 0x14002f980
lea rdx, [0x1402d078c]
mov rcx, rdi
call fcn.14001c950
nop
lea rcx, [rbp - 0x48]
call fcn.14001d440
nop
lea rcx, [rsp + 0x48]
call fcn.140002cd0
nop
lea rcx, [rbp + 0x110]
call fcn.140052f10
mov rax, rdi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.14001c050
nop
lea rcx, [rbp - 0x20]
call fcn.14001d440
nop
lea rcx, [rbp + 0x30]
call fcn.140052f10
nop
lea rcx, [rbp + 8]
call fcn.14001d440
jmp 0x14002fe8a
lea rcx, [rbp + 0xa0]
call fcn.140052ed0
nop
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
mov dword [rsp + 0x20], 0x20019
mov r9, 0xffffffff80000002
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xa0]
call fcn.1400535a0
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
lea rcx, [rsp + 0x68]
call fcn.14001cac0
nop
lea rdx, str.DefaultUserName
lea rcx, [rbp - 0x70]
call fcn.14001c950
nop
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xa0]
call fcn.140053480
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
lea rcx, [rbp - 0x48]
call fcn.140028de0
test al, al
je 0x14002ffd5
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x48]
call fcn.140026070
test al, al
je 0x14002ffd5
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.14001c050
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
nop
lea rcx, [rbp + 0xa0]
call fcn.140052f10
jmp 0x14002fef0
lea rdx, [0x1402d078c]
mov rcx, rdi
call fcn.14001c950
jmp 0x14002ffb9
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.14001c050
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
nop
lea rcx, [rbp + 0xa0]
call fcn.140052f10
nop
lea rcx, [rbp - 0x20]
call fcn.14001d440
nop
lea rcx, [rbp + 0x180]
jmp 0x14002fef4