Function at 0x14000b9c4
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]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x68], rax
test r12, r12
je 0x14000ba79
test rax, rax
je 0x14000ba79
mov dword [rsp + 0xd8], 1
mov rcx, r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
cmp eax, 1
jne 0x14000be0c
test esi, esi
je 0x14000bcfb
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]
nop dword [rax + rax]
test eax, eax
jne 0x14000bb55
mov rsi, qword [rsp + 0xc8]
mov qword [rsp + 0x70], rsi
lea rdx, [0x140021c48]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
lea rdx, str.First_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
lea rdx, str.Last_Counter
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
lea rdx, str.Last_Help
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test rsi, rsi
je 0x14000bb55
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000bbc9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test rsi, rsi
je 0x14000bb99
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
test r15, r15
je 0x14000bbae
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test r12, r12
je 0x14000bbc2
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000be3e
mov ecx, 1
call fcn.14000a2b4
mov r13, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000bcde
and qword [rsp + 0x30], 0
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rbx, rax
lea rcx, str.WmiApRpl
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea rcx, [rbx + 8]
add rcx, rax
mov ecx, ecx
mov qword [rsp + 0xc8], rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001a244
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000bc97
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.140001d08
mov edx, 1
mov rcx, rbx
mov rax, qword [rsp + 0x38]
call qword [0x140020620]
mov r14d, eax
test eax, eax
je 0x14000bc97
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x14000bcba
test rbx, rbx
je 0x14000bcce
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x14000bdea
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14000bdea
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]
nop dword [rax + rax]
mov r13, rax
test rax, rax
jne 0x14000bd33
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14000bb99
lea rsi, str.WmiApRpl
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
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.14001a244
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000bdbd
mov r9, rsi
lea r8, str.xx__s
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.140001d08
mov edx, 1
mov rcx, rbx
mov rax, r13
call qword [0x140020620]
mov r14d, eax
test eax, eax
je 0x14000bdbd
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x14000bdd6
test rbx, rbx
je 0x14000bdea
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
cmp dword [rsp + 0xd8], 0
je 0x14000be12
mov edx, 0xbb8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14000be12
mov r14d, 0x80004005
test r15, r15
je 0x14000be27
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
test r12, r12
je 0x14000be3b
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, r14d
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rsi
ret