Function at 0x140013970
Capabilities:
Get session information
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r14d, r14d
mov dword [rbp + 7], r14d
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_OOBEComplete]
test eax, eax
je 0x1400139bd
cmp dword [rbp + 7], r14d
je 0x140013b9c
call fcn.140013460
cmp eax, 0x12c
je 0x1400139da
mov byte [0x140075da0], r14b
call fcn.140014170
jmp 0x140013b9c
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov qword [rbp + 0x2f], r14
lea rcx, [rbp + 0x1f]
call fcn.1400135c0
mov rbx, qword [rbp + 0x1f]
mov rsi, qword [rbp + 0x27]
cmp rbx, rsi
je 0x140013aae
lea r15, str.GpuPreference1
nop word [rax + rax]
mov rdi, rbx
add rbx, 0x20
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
cmp qword [rdi + 0x18], 8
jb 0x140013a29
mov rdi, qword [rdi]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICIGPU
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013a8b
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], r15
lea r9d, [rax + 1]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140013aa5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp rbx, rsi
jne 0x140013a10
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf]
mov r8d, 8
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140013b4e
mov rcx, qword [rbp + 0xf]
cmp dword [rcx], 0
jne 0x140013b55
lea rdx, [rbp - 1]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140013b4e
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140013b55
lea rdx, [rbp - 9]
mov rcx, qword [rbp - 1]
call fcn.140014440
mov rbx, qword [rbp - 9]
test al, al
je 0x140013b29
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rbx, rbx
je 0x140013b37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x140013b55
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013b55
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140013b9c
mov rdx, qword [rbp + 0x27]
call fcn.140014890
mov rdx, qword [rbp + 0x2f]
mov rcx, qword [rbp + 0x1f]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013b97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013bc5
call fcn.14002a9dc
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140031340
int3