Function at 0x14007c318
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400c9088]
xor esi, esi
and qword [rax + 8], rsi
mov r13, r9
mov r12, r8
mov ebp, edx
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
inc dword [rbx + 0x2c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rbx + 0x28], eax
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14007c3c8
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14007c3c6
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14007c3a4
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14007c3c8
cmp rax, rcx
je 0x14007c3c8
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14007c3c8
test edx, edx
je 0x14007c3bf
mov rax, qword [rax + 0x10]
jmp 0x14007c3a9
mov rsi, rax
xor edi, edi
jmp 0x14007c3c8
mov edi, eax
test edi, edi
jne 0x14007c4aa
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14007c94c
mov edi, eax
test eax, eax
js 0x14007c4b4
mov r14, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [r14 + 0x28]
mov rdx, rbp
call fcn.140009820
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x14007c47c
mov qword [rsp + 0x70], r13
lea r8, [0x1400aa9d8]
mov rax, qword [rsi + 0x30]
lea r9, str.SoftwareMicrosoftWindows_NTCurrentVersionWindowsSessionDefaultDevices
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.1400027f0
mov ecx, eax
call fcn.140006040
mov edi, eax
test eax, eax
js 0x14007c47c
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400c9078]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], r13d
jne 0x14007c4b4
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov dword [r12], edx
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov rcx, r14
call qword [0x1400a8400]
jmp 0x14007c4b4
test edi, edi
mov eax, 0x80004005
cmovns edi, eax
test rsi, rsi
je 0x14007c4d7
mov rax, qword [rsi]
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov edx, 1
mov rcx, rsi
call qword [0x1400a8400]
test edi, edi
jns 0x14007c50c
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14007c50c
test byte [rcx + 0x44], 0x20
je 0x14007c50c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aaa40]
mov edx, 0xd
mov r9d, edi
call fcn.14001635c
add dword [rbx + 0x2c], 0xffffffff
mov eax, dword [rbx + 0x2c]
jne 0x14007c519
and dword [rbx + 0x28], 0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret