Function at 0x140003c30
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rax, qword [0x14006b9c0]
xor rax, rsp
mov qword [rbp + 0x60], rax
lea r8, str.SaveSettings
mov qword [rbp - 0x78], r8
lea rax, str.ThpsrvLib.cpp
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], 0x282
lea rax, str.__SaveSettings_
mov qword [rbp - 0x60], rax
lea rax, [0x1400278f0]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x70]
call fcn.1400013f0
nop
lea rdx, str.SYSTEMCurrentControlSetServicesDSDHDDProtectService
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x140003fe7
lea rdx, str.Parameters
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140003d40
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003fe7
mov eax, dword [0x14006d588]
and eax, 1
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x140028478]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
and eax, 1
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.EnableSerialization
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
test al, 0x20
je 0x140003e36
shr eax, 0xc
and eax, 3
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.PtlvTabletBatteryMode
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
shr eax, 5
and eax, 1
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.TabletPC
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
shr eax, 0xa
and eax, 3
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1400284d0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
shr eax, 8
and eax, 3
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1400284f8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
shr eax, 1
and eax, 1
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x140028518]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
shr eax, 2
and eax, 1
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x140028538]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
shr eax, 3
and eax, 1
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x140028568]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14006d588]
shr eax, 4
and eax, 1
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x140028588]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.SYSTEMCurrentControlSetServicesmsahciController0
call fcn.140004a90
lea rcx, str.SYSTEMCurrentControlSetServices_storahciController0
call fcn.140004a90
lea rcx, str.SYSTEMCurrentControlSetServices_storahciParametersDevice
call fcn.140004a90
mov ebx, 1
mov r8, qword [rbp - 0x78]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x70]
call fcn.1400013f0
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000b090
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rbp
ret