Function at 0x14001ecb0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x220
mov rax, qword [0x140030020]
xor rax, rsp
mov qword [rsp + 0x210], rax
xor r12d, r12d
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], r12
test rdx, rdx
je 0x14001ed4b
mov eax, dword [0x1400235b0]
cmp dword [rcx], eax
jne 0x14001ed13
mov eax, dword [0x1400235b4]
cmp dword [rcx + 4], eax
jne 0x14001ed13
mov eax, dword [0x1400235b8]
cmp dword [rcx + 8], eax
jne 0x14001ed13
mov eax, dword [0x1400235bc]
cmp dword [rcx + 0xc], eax
je 0x14001ed4b
xor edx, edx
lea rax, [rsp + 0x68]
lea r9, [0x140026528]
lea r8d, [rdx + 1]
lea rcx, [0x1400235d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14001ed52
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001ed4b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x14001f2fa
mov qword [rsp + 0x250], rsi
cmp dword [rbx], r12d
je 0x14001ee40
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x80]
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 0x14001edf4
cmp dword [rbx], 1
jne 0x14001edbb
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
mov r8d, 1
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov esi, eax
jmp 0x14001edd9
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
mov r8d, 1
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x38]
mov esi, eax
test esi, esi
jns 0x14001ee33
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001eded
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, esi
jmp 0x14001f2f2
cmp dword [rbx], 1
jne 0x14001ee17
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
mov r8d, 1
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x30]
jmp 0x14001ee33
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
mov r8d, 1
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x40]
add rbx, 0x10
cmp dword [rbx], r12d
jne 0x14001ed70
test ebp, ebp
jne 0x14001f2e0
lea r8d, [rbp + 0x40]
lea rdx, [rsp + 0x190]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, str.CLSID_
lea rcx, [rsp + 0x90]
mov edx, 0x80
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
test eax, eax
je 0x14001eeb0
cmp eax, 0xc
je 0x14001eea5
cmp eax, 0x16
je 0x14001ee9a
cmp eax, 0x22
je 0x14001ee9a
cmp eax, 0x50
je 0x14001eeb0
mov ecx, 0x80004005
call fcn.140002460
int3
mov ecx, 0x80070057
call fcn.140002460
int3
mov ecx, 0x8007000e
call fcn.140002460
int3
lea r8, [rsp + 0x190]
lea rcx, [rsp + 0x90]
mov edx, 0x80
call qword [sym.imp.MSVCR90.dll_wcscat_s]
test eax, eax
je 0x14001ef04
cmp eax, 0xc
je 0x14001eef9
cmp eax, 0x16
je 0x14001eeee
cmp eax, 0x22
je 0x14001eeee
cmp eax, 0x50
je 0x14001ef04
mov ecx, 0x80004005
call fcn.140002460
int3
mov ecx, 0x80070057
call fcn.140002460
int3
mov ecx, 0x8007000e
call fcn.140002460
int3
lea r8, str.Required_Categories
lea rcx, [rsp + 0x90]
mov edx, 0x80
call qword [sym.imp.MSVCR90.dll_wcscat_s]
test eax, eax
je 0x14001ef57
cmp eax, 0xc
je 0x14001ef4c
cmp eax, 0x16
je 0x14001ef41
cmp eax, 0x22
je 0x14001ef41
cmp eax, 0x50
je 0x14001ef57
mov ecx, 0x80004005
call fcn.140002460
int3
mov ecx, 0x80070057
call fcn.140002460
int3
mov ecx, 0x8007000e
call fcn.140002460
int3
lea rax, [rsp + 0x78]
lea rdx, [rsp + 0x90]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov rbx, r12
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x78], r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f084
mov rbx, qword [rsp + 0x78]
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
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r12
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x14001efeb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
test rdi, rdi
jne 0x14001f084
cmp dword [rsp + 0x60], r12d
jne 0x14001f084
cmp byte [0x140032678], r12b
jne 0x14001f04a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f03a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140032678], 1
mov qword [0x140032680], rax
jmp 0x14001f051
mov rax, qword [0x140032680]
mov byte [0x140032678], 1
jmp 0x14001f051
mov rax, qword [0x140032680]
test rax, rax
je 0x14001f06f
lea rdx, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
call rax
jmp 0x14001f084
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
lea rcx, [rsp + 0x90]
mov edx, 0x80
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
test eax, eax
je 0x14001f0d7
cmp eax, 0xc
je 0x14001f0cc
cmp eax, 0x16
je 0x14001f0c1
cmp eax, 0x22
je 0x14001f0c1
cmp eax, 0x50
je 0x14001f0d7
mov ecx, 0x80004005
call fcn.140002460
int3
mov ecx, 0x80070057
call fcn.140002460
int3
mov ecx, 0x8007000e
call fcn.140002460
int3
lea r8, [rsp + 0x190]
lea rcx, [rsp + 0x90]
mov edx, 0x80
call qword [sym.imp.MSVCR90.dll_wcscat_s]
test eax, eax
je 0x14001f12b
cmp eax, 0xc
je 0x14001f120
cmp eax, 0x16
je 0x14001f115
cmp eax, 0x22
je 0x14001f115
cmp eax, 0x50
je 0x14001f12b
mov ecx, 0x80004005
call fcn.140002460
int3
mov ecx, 0x80070057
call fcn.140002460
int3
mov ecx, 0x8007000e
call fcn.140002460
int3
lea r8, str.Implemented_Categories
lea rcx, [rsp + 0x90]
mov edx, 0x80
call qword [sym.imp.MSVCR90.dll_wcscat_s]
test eax, eax
je 0x14001f17e
cmp eax, 0xc
je 0x14001f173
cmp eax, 0x16
je 0x14001f168
cmp eax, 0x22
je 0x14001f168
cmp eax, 0x50
je 0x14001f17e
mov ecx, 0x80004005
call fcn.140002460
int3
mov ecx, 0x80070057
call fcn.140002460
int3
mov ecx, 0x8007000e
call fcn.140002460
int3
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f2bc
mov eax, r12d
test rbx, rbx
je 0x14001f1c4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x14001f2bc
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
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x14001f223
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
test rdi, rdi
jne 0x14001f2bc
cmp dword [rsp + 0x60], r12d
jne 0x14001f2bc
cmp byte [0x140032678], r12b
jne 0x14001f282
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f272
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140032678], 1
mov qword [0x140032680], rax
jmp 0x14001f289
mov rax, qword [0x140032680]
mov byte [0x140032678], 1
jmp 0x14001f289
mov rax, qword [0x140032680]
test rax, rax
je 0x14001f2a7
lea rdx, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
call rax
jmp 0x14001f2bc
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x14001f2ca
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001f2f0
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
mov rsi, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14001fb00
mov rbx, qword [rsp + 0x258]
add rsp, 0x220
pop r12
pop rdi
pop rbp
ret