Function at 0x140115400
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 [0x14039a678]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movups xmm0, xmmword [str.__sbattery]
movaps xmmword [rbp - 0x60], xmm0
mov eax, dword [0x14029c9a0]
mov dword [rbp - 0x50], eax
movzx eax, word [0x14029c9a4]
mov word [rbp - 0x4c], ax
xor edx, edx
mov r8d, 0x1f2
lea rcx, [rbp - 0x4a]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x3c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rbp - 0x60]
lea rdx, [0x14029b7c0]
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 0x140115696
xor r14d, r14d
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x30]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x1401154f1
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, SafeArrayGetLBound
mov edx, edi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14011552e
mov rcx, qword [rsp + 0x48]
movzx ebx, word [rcx]
call sub.WTSAPI32.dll_WTSFreeMemory
test bx, bx
jne 0x140115696
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 0x140115696
lea r8, [rsp + 0x7c]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14011568b
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 0x14011568b
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 0x14011568b
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.1401156d0
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400f3820
nop
mov r8, rax
lea rdx, str._BatteryHealth__CheckASUSBatteryHealthAppExist__UWP_Exist:
lea rcx, [rsp + 0x58]
call fcn.1400d13b0
mov rcx, rax
call fcn.14017eab0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x14011566a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140115665
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401156bf
call fcn.1401e3784
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140115684
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebx, ebx
setne al
jmp 0x140115698
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.1401e3ce0
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 sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3