Function at 0x140009630
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x240
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14001f8c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov qword [rsp + 0x60], r12
test rdx, rdx
jne 0x140009691
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000968a
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x140009be5
mov eax, dword [0x1400188d0]
cmp dword [rcx], eax
jne 0x1400096d3
mov eax, dword [0x1400188d4]
cmp dword [rcx + 4], eax
jne 0x1400096d3
mov eax, dword [0x1400188d8]
cmp dword [rcx + 8], eax
jne 0x1400096d3
mov eax, dword [0x1400188dc]
cmp dword [rcx + 0xc], eax
jne 0x1400096d3
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400096cc
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x140009be5
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x140018350]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400188b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x140009712
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000970b
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x140009be5
cmp dword [rbx], 0
je 0x1400097f3
nop
nop
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x98]
mov eax, dword [rcx]
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
test ebp, ebp
je 0x14000978f
cmp dword [rbx], 1
jne 0x14000976b
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x98]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x28]
mov esi, eax
jmp 0x140009789
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x98]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x38]
mov esi, eax
test esi, esi
js 0x1400097dc
jmp 0x1400097ce
cmp dword [rbx], 1
jne 0x1400097b2
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x98]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x30]
jmp 0x1400097ce
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x98]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x40]
add rbx, 0x10
cmp dword [rbx], 0
je 0x1400097f3
jmp 0x140009720
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400097ec
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, esi
jmp 0x140009be5
test ebp, ebp
jne 0x140009bd3
lea r8d, [rbp + 0x40]
lea rdx, [rsp + 0x1b0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
call qword [0x14001f830]
mov qword [rsp + 0x90], r12
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call fcn.14000b710
test eax, eax
je 0x140009870
cmp eax, 0xc
je 0x140009865
cmp eax, 0x16
je 0x14000985a
cmp eax, 0x22
je 0x14000985a
cmp eax, 0x50
je 0x140009870
mov ecx, 0x80004005
call fcn.140003230
int3
mov ecx, 0x80070057
call fcn.140003230
int3
mov ecx, 0x8007000e
call fcn.140003230
int3
lea r8, [rsp + 0x1b0]
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call fcn.14000d110
test eax, eax
je 0x1400098c3
cmp eax, 0xc
je 0x1400098b8
cmp eax, 0x16
je 0x1400098ad
cmp eax, 0x22
je 0x1400098ad
cmp eax, 0x50
je 0x1400098c3
mov ecx, 0x80004005
call fcn.140003230
int3
mov ecx, 0x80070057
call fcn.140003230
int3
mov ecx, 0x8007000e
call fcn.140003230
int3
lea r8, str.Required_Categories
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call fcn.14000d110
test eax, eax
je 0x140009915
cmp eax, 0xc
je 0x14000990a
cmp eax, 0x16
je 0x1400098ff
cmp eax, 0x22
je 0x1400098ff
cmp eax, 0x50
je 0x140009915
mov ecx, 0x80004005
call fcn.140003230
int3
mov ecx, 0x80070057
call fcn.140003230
int3
mov ecx, 0x8007000e
call fcn.140003230
int3
mov qword [rsp + 0x80], 0xffffffff80000000
mov rbx, r12
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400099e4
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x1400099c4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x70], rbx
test rdi, rdi
jne 0x1400099e4
cmp dword [rsp + 0x68], edi
jne 0x1400099e4
lea rdx, [rsp + 0xb0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call fcn.14000b710
test eax, eax
je 0x140009a36
cmp eax, 0xc
je 0x140009a2b
cmp eax, 0x16
je 0x140009a20
cmp eax, 0x22
je 0x140009a20
cmp eax, 0x50
je 0x140009a36
mov ecx, 0x80004005
call fcn.140003230
int3
mov ecx, 0x80070057
call fcn.140003230
int3
mov ecx, 0x8007000e
call fcn.140003230
int3
lea r8, [rsp + 0x1b0]
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call fcn.14000d110
test eax, eax
je 0x140009a89
cmp eax, 0xc
je 0x140009a7e
cmp eax, 0x16
je 0x140009a73
cmp eax, 0x22
je 0x140009a73
cmp eax, 0x50
je 0x140009a89
mov ecx, 0x80004005
call fcn.140003230
int3
mov ecx, 0x80070057
call fcn.140003230
int3
mov ecx, 0x8007000e
call fcn.140003230
int3
lea r8, str.Implemented_Categories
mov edx, 0x80
lea rcx, [rsp + 0xb0]
call fcn.14000d110
test eax, eax
je 0x140009adb
cmp eax, 0xc
je 0x140009ad0
cmp eax, 0x16
je 0x140009ac5
cmp eax, 0x22
je 0x140009ac5
cmp eax, 0x50
je 0x140009adb
mov ecx, 0x80004005
call fcn.140003230
int3
mov ecx, 0x80070057
call fcn.140003230
int3
mov ecx, 0x8007000e
call fcn.140003230
int3
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009b2c
mov eax, r12d
test rbx, rbx
je 0x140009b22
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x70], rbx
cdqe
test rax, rax
jne 0x140009bab
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x140009b8a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x70], rbx
test rdi, rdi
jne 0x140009bab
cmp dword [rsp + 0x68], edi
jne 0x140009bab
lea rdx, [rsp + 0xb0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test rbx, rbx
je 0x140009bbe
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x80], r12
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140009be3
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000b9b0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret