Function at 0x1401354c0
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x1404779b8]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3c0]
call fcn.1402539e0
movups xmm0, xmmword [str.__sbattery]
movaps xmmword [rbp - 0x60], xmm0
mov eax, dword [0x14034d690]
mov dword [rbp - 0x50], eax
movzx eax, word [0x14034d694]
mov word [rbp - 0x4c], ax
xor edx, edx
mov r8d, 0x1f2
lea rcx, [rbp - 0x4a]
call fcn.1402539e0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.1402539e0
mov r8d, 0x104
lea rdx, [rbp + 0x3c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rbp - 0x60]
lea rdx, [0x14034bc88]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
cmp eax, 0xffffffff
je 0x140135756
xor r14d, r14d
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x30]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x1401355b1
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.USERENV.dll_CreateEnvironmentBlock
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, SafeArrayLock
mov edx, edi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1401355ee
mov rcx, qword [rsp + 0x48]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x140135756
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140135756
lea r8, [rsp + 0x7c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14013574b
mov dword [rsp + 0x78], 1
mov dword [rbp - 0x7c], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14013574b
mov dword [rsp + 0x38], edi
mov r9d, 4
lea r8, [rsp + 0x38]
lea edx, [r9 + 8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x14013574b
mov dword [rsp + 0x28], 1
lea rax, [rbp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3c0]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140135790
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.14010d460
nop
mov r8, rax
lea rdx, str._BatteryHealth__CheckASUSBatteryHealthAppExist__UWP_Exist:
lea rcx, [rsp + 0x58]
call fcn.1400eafe0
mov rcx, rax
call fcn.1401a7f60
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14013572a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140135725
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013577f
call fcn.14021ecec
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140135744
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebx, ebx
setne al
jmp 0x140135758
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.14021f250
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140260f54
int3