Function at 0x14000ae74
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov esi, r8d
mov rbx, rcx
mov r14d, 0x8007000e
and dword [rsp + 0xd8], 0
lea rax, vtable.__SmartHANDLE.0
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x58], rax
lea r8, str.GlobalWMI_RevAdap_Set
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov r12, rax
mov qword [rsp + 0x58], rax
lea r8, str.GlobalWMI_RevAdap_ACK
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov r15, rax
mov qword [rsp + 0x68], rax
test r12, r12
je 0x14000af17
test rax, rax
je 0x14000af17
mov dword [rsp + 0xd8], 1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp eax, 1
jne 0x14000b215
test esi, esi
je 0x14000b129
xor esi, esi
mov qword [rsp + 0x70], rsi
and qword [rsp + 0x78], rsi
and qword [rsp + 0x80], rsi
and qword [rsp + 0xc8], rsi
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 0x10002
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesWmiApRplPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000afcb
mov rsi, qword [rsp + 0xc8]
mov qword [rsp + 0x70], rsi
lea rdx, [0x14001e518]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.First_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.Last_Counter
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
lea rdx, str.Last_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test rsi, rsi
je 0x14000afcb
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor esi, esi
mov qword [rsp + 0x70], rsi
lea rdx, str.LoadPerfCounterTextStringsW
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000b021
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x14000affd
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
test r15, r15
je 0x14000b00c
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test r12, r12
je 0x14000b01a
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
jmp 0x14000b23b
mov ecx, 1
call fcn.140009730
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000b112
and qword [rsp + 0x30], 0
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
mov rbx, rax
lea rcx, str.WmiApRpl
call qword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [rbx + 8]
add ecx, eax
mov qword [rsp + 0xc8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400192cc
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b0d9
lea rax, str.WmiApRpl
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, str.xx__s_s.ini
mov rdx, qword [rsp + 0xc8]
mov rcx, rbx
call fcn.140001b7c
mov edx, 1
mov rcx, rbx
mov rax, qword [rsp + 0x38]
call qword [0x14001dc18]
mov r14d, eax
test eax, eax
je 0x14000b0d9
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
jmp 0x14000b0fc
test rbx, rbx
je 0x14000b109
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, r13
call sub.msvcrt.dll_free
nop
test rsi, rsi
je 0x14000b1f9
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000b1f9
and qword [rsp + 0x30], 0
lea rdx, str.UnloadPerfCounterTextStringsW
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov r13, rax
test rax, rax
jne 0x14000b155
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x14000affd
lea rsi, str.WmiApRpl
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [rax + 4]
mov qword [rsp + 0xc8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400192cc
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000b1d3
mov r9, rsi
lea r8, str.xx__s
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.140001b7c
mov edx, 1
mov rcx, rbx
mov rax, r13
call qword [0x14001dc18]
mov r14d, eax
test eax, eax
je 0x14000b1d3
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
jmp 0x14000b1ec
test rbx, rbx
je 0x14000b1f9
mov rcx, rbx
call sub.msvcrt.dll_free
cmp dword [rsp + 0xd8], 0
je 0x14000b21b
mov edx, 0xbb8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x14000b21b
mov r14d, 0x80004005
test r15, r15
je 0x14000b22a
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
test r12, r12
je 0x14000b238
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, r14d
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rsi
ret