Function at 0x140004f40
Capabilities:
Delete registry key
Execute command
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140070030]
xor rax, rsp
mov qword [rbp - 8], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_SearchVolumeInfoCacheH_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
test eax, eax
jne 0x14000503f
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], al
xor r8d, r8d
lea rdx, [0x140055b1b]
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x140004fe2
lea r8d, [rbx + 0x1e]
lea rdx, str.Success_Deleted_Registry_Keys_
jmp 0x140004fef
mov r8d, 0x20
lea rdx, str.Failed_To_Deleted_Registry_Keys.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140005033
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000502e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000502e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005058
mov r8d, 0x1b
lea rdx, str.Failed_to_open_registry_key
lea rcx, [0x1400700b0]
call fcn.140003d00
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov r8d, 0x3b
lea rdx, str.SYSTEMControlSet001ControlSession_ManagerAppCompatCache
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x1400050b6
lea r8d, [rax + 0x1e]
lea rdx, str.Success_Deleted_Registry_Keys_
jmp 0x1400050c3
mov r8d, 0x20
lea rdx, str.Failed_To_Deleted_Registry_Keys.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140005107
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005102
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005102
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov r8d, 0x3b
lea rdx, str.SYSTEMControlSet001ControlSession_ManagerAppCompatCache
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x140005165
lea r8d, [rax + 0x1e]
lea rdx, str.Success_Deleted_Registry_Keys_
jmp 0x140005172
mov r8d, 0x20
lea rdx, str.Failed_To_Deleted_Registry_Keys.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400051b6
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov r8d, 0x54
lea rdx, str.SOFTWAREClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionTrayNotify
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x140005214
lea r8d, [rax + 0x1e]
lea rdx, str.Success_Deleted_Registry_Keys_
jmp 0x140005221
mov r8d, 0x20
lea rdx, str.Failed_To_Deleted_Registry_Keys.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140005265
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005260
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005260
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov r8d, 0x27
lea rdx, str.SOFTWAREMicrosoftWindowsShellBagMRU
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x1400052c3
lea r8d, [rax + 0x1e]
lea rdx, str.Success_Deleted_Registry_Keys_
jmp 0x1400052d0
mov r8d, 0x20
lea rdx, str.Failed_To_Deleted_Registry_Keys.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140005314
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000530f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000530f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov r8d, 0x25
lea rdx, str.REG_DELETE_HKCUSOFTWAREAMDHKIDs__f
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x14000536b
lea r8d, [rax + 0x11]
lea rdx, str.Executed_command_
jmp 0x140005378
mov r8d, 0x1b
lea rdx, str.Failed_to_execute_commands.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400053bc
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400053b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov r8d, 0x1f
lea rdx, str.REG_ADD_HKCUSOFTWAREAMDHKIDs
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x140005413
lea r8d, [rax + 0x11]
lea rdx, str.Executed_command_
jmp 0x140005420
mov r8d, 0x1b
lea rdx, str.Failed_to_execute_commands.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140005464
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000545f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000545f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov r8d, 0x57
lea rdx, str.REG_DELETE__HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_SearchVolumeInfoCacheH:___F
lea rcx, [rbp - 0x30]
call fcn.140003d00
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x1400700b0]
test eax, eax
jne 0x1400054bb
lea r8d, [rax + 0x11]
lea rdx, str.Executed_command_
jmp 0x1400054c8
mov r8d, 0x1b
lea rdx, str.Failed_to_execute_commands.
call fcn.140003d00
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14000550c
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005507
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005507
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d00
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140052ce0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret