Function at 0x14001bde0
Capabilities:
Execute command
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140107180]
xor rax, rsp
mov qword [rbp + 0x18], rax
xor r13d, r13d
lea rcx, str.for__f__tokens____i_in__Reg_query__HKLMSYSTEMCurrentControlSetEnum___s__f__StorPort___findstr__StorPort___do_Reg.exe_add____i___v__EnableIdlePowerManagement___t_REG_DWORD__d__0___f___nul_2_1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.FOR__F__eolE____a_in__REG_QUERY__HKLMSystemCurrentControlSetServices___s__EnableHIPM__FINDSTR__V__EnableHIPM___DO__Reg.exe_add____a___v__EnableHIPM___t_REG_DWORD__d__0___f____nul__Reg.exe_add____a___v__EnableDIPM___t_REG_DWORD__d__0___f___nul_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.for__f__tokens___i_in__reg_query__HKLMSYSTEMCurrentControlSetEnum___s__f__StorPort__findstr__StorPort___do_Reg.exe_add___i___v__EnableIdlePowerManagement___t_REG_DWORD__d__0___f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, str.EnableHIPM
mov qword [rbp], rax
lea rax, str.EnableDIPM
mov qword [rbp + 8], rax
lea rax, str.EnableHDDParking
mov qword [rbp + 0x10], rax
lea r12, [rbp]
lea r14, str.for__f__i_in__reg_query__HKLMSYSTEMCurrentControlSetServices___s__f__
movzx ebx, byte [rsp + 0x30]
nop dword [rax]
mov rdx, qword [r12]
lea rcx, [rbp - 0x40]
call fcn.140021bf0
mov r15, rax
mov rdx, qword [r12]
lea rcx, [rbp - 0x80]
call fcn.140021bf0
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rcx, rdx
sub rcx, r8
cmp rcx, 0x49
jb 0x14001bf3a
lea rax, [r8 + 0x49]
mov qword [rdi + 0x10], rax
mov rsi, rdi
cmp rdx, 0xf
jbe 0x14001bebc
mov rsi, qword [rdi]
lea rax, [0x1400dc7a9]
cmp rax, rsi
jbe 0x14001beea
lea rax, [rsi + r8]
cmp r14, rax
ja 0x14001beea
cmp rsi, r14
ja 0x14001bedb
mov r14, r13
jmp 0x14001bef0
mov r14, rsi
lea rax, str.for__f__i_in__reg_query__HKLMSYSTEMCurrentControlSetServices___s__f__
sub r14, rax
jmp 0x14001bef0
mov r14d, 0x49
lea rcx, [rsi + 0x49]
inc r8
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
lea rdx, str.for__f__i_in__reg_query__HKLMSYSTEMCurrentControlSetServices___s__f__
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + r14]
mov r8d, 0x49
sub r8, r14
lea rdx, str.for__f__i_in__reg_query__HKLMSYSTEMCurrentControlSetServices___s__f__
add rdx, 0x49
add rdx, r14
call sub.VCRUNTIME140.dll_memcpy
lea r14, str.for__f__i_in__reg_query__HKLMSYSTEMCurrentControlSetServices___s__f__
jmp 0x14001bf5d
mov qword [rsp + 0x28], 0x49
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x49]
mov rcx, rdi
call fcn.140023120
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0x2d
jb 0x14001bfe0
lea rax, [rcx + 0x2d]
mov qword [rsp + 0x48], rax
lea rdi, [rsp + 0x38]
cmp rdx, 0xf
cmova rdi, qword [rsp + 0x38]
add rdi, rcx
mov r8d, 0x2d
lea rdx, str.__findstr__HKEY___do_Reg.exe_add___i___v__
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 0x2d], 0
lea rax, [rsp + 0x38]
jmp 0x14001c001
mov qword [rsp + 0x20], 0x2d
lea r9, str.__findstr__HKEY___do_Reg.exe_add___i___v__
xor r8d, r8d
lea edx, [r8 + 0x2d]
lea rcx, [rsp + 0x38]
call fcn.140022a10
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r9, r15
lea r8, [rbp - 0x60]
movzx edx, bl
lea rcx, [rsp + 0x58]
call fcn.140022c60
nop
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x14001c085
lea rax, [rcx + 0x18]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x58]
cmp rdx, 0xf
cmova rdi, qword [rsp + 0x58]
add rdi, rcx
mov r8d, 0x18
lea rdx, str.___t_REG_DWORD__d__0___f
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 0x18], 0
lea rax, [rsp + 0x58]
jmp 0x14001c0a6
mov qword [rsp + 0x20], 0x18
lea r9, str.___t_REG_DWORD__d__0___f
xor r8d, r8d
lea edx, [r8 + 0x18]
lea rcx, [rsp + 0x58]
call fcn.140022a10
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14001c110
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c10b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c2ee
call fcn.1400720bc
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x58], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14001c15f
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c159
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c2f5
call fcn.1400720bc
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14001c19c
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c197
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c2fc
call fcn.1400720bc
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14001c1ea
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c1e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c303
call fcn.1400720bc
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14001c235
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c230
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c30a
call fcn.1400720bc
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14001c284
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c27f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c311
call fcn.1400720bc
add r12, 8
lea rax, [rbp + 0x18]
cmp r12, rax
jne 0x14001be70
lea rcx, str.for__f__i_in__call__resources_smartctl.exe____scan__do__call__resources_smartctl.exe___s_apm_off__i__call__resources_smartctl.exe___s_aam_off__i_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.Reg.exe_add__HKLMSYSTEMCurrentControlSetControlStorage___v__StorageD3InModernStandby___t_REG_DWORD__d__0___f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140007280
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140072060
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3