Function at 0x180004650
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1802489a8]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor esi, esi
mov r14d, r8d
mov qword [rsp + 0x68], rsi
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x180004ad2
mov eax, dword [0x18020e580]
cmp dword [rcx], eax
jne 0x1800046c6
mov eax, dword [0x18020e584]
cmp dword [rcx + 4], eax
jne 0x1800046c6
mov eax, dword [0x18020e588]
cmp dword [rcx + 8], eax
jne 0x1800046c6
mov eax, dword [0x18020e58c]
cmp dword [rcx + 0xc], eax
je 0x180004ad2
xor edx, edx
lea rax, [rsp + 0x68]
lea r9, [0x1801c32d8]
mov qword [rsp + 0x20], rax
lea rcx, [0x18020e5c0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x180004ad2
mov ecx, dword [rbx]
test ecx, ecx
je 0x18000475c
nop dword [rax + rax]
mov rax, qword [rbx + 8]
lea r9, [rbp - 0x80]
mov r8d, 1
mov rdx, rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
test r14d, r14d
je 0x18000473c
cmp ecx, r8d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x18000472f
call qword [rax + 0x28]
jmp 0x180004732
call qword [rax + 0x38]
test eax, eax
js 0x180004ad4
jmp 0x180004751
cmp ecx, 1
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x18000474e
call qword [rax + 0x30]
jmp 0x180004751
call qword [rax + 0x40]
mov ecx, dword [rbx + 0x10]
add rbx, 0x10
test ecx, ecx
jne 0x180004700
test r14d, r14d
jne 0x180004ad6
lea r8d, [r14 + 0x40]
mov rcx, rdi
lea rdx, [rbp + 0x90]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x180004786
lea eax, [r14 + 0xd]
jmp 0x180004ad4
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.18019c248
test eax, eax
je 0x1800047b1
cmp eax, 0xc
je 0x180004b0f
cmp eax, 0x50
jne 0x180004b15
lea r8, [rbp + 0x90]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.18019c1d0
test eax, eax
je 0x1800047dc
cmp eax, 0xc
je 0x180004b0f
cmp eax, 0x50
jne 0x180004b15
lea r8, str.Required_Categories
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.18019c1d0
test eax, eax
je 0x180004807
cmp eax, 0xc
je 0x180004b0f
cmp eax, 0x50
jne 0x180004b15
lea rax, [rsp + 0x70]
mov dword [rsp + 0x60], esi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x70], rsi
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000000
mov rbx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004913
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rsi
xor r9d, r9d
mov qword [rsp + 0x50], rsi
xor r8d, r8d
mov qword [rsp + 0x48], rsi
xor edx, edx
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x180004896
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
test rdi, rdi
jne 0x180004913
cmp dword [rsp + 0x60], esi
jne 0x180004913
cmp byte [0x18024e8b8], sil
jne 0x1800048ec
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800048dc
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18024e8b0], rax
mov byte [0x18024e8b8], 1
jmp 0x1800048f3
mov rax, qword [0x18024e8b0]
mov byte [0x18024e8b8], 1
jmp 0x1800048f3
mov rax, qword [0x18024e8b0]
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x18000490d
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180004913
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.18019c248
test eax, eax
je 0x18000493e
cmp eax, 0xc
je 0x180004b0f
cmp eax, 0x50
jne 0x180004b15
lea r8, [rbp + 0x90]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.18019c1d0
test eax, eax
je 0x180004969
cmp eax, 0xc
je 0x180004b0f
cmp eax, 0x50
jne 0x180004b15
lea r8, str.Implemented_Categories
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.18019c1d0
test eax, eax
je 0x180004994
cmp eax, 0xc
je 0x180004b0f
cmp eax, 0x50
jne 0x180004b15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], rsi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004ab5
mov eax, esi
test rbx, rbx
je 0x1800049d5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x78]
test eax, eax
jne 0x180004ab5
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rsi
xor r9d, r9d
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
xor edx, edx
mov qword [rsp + 0x38], rsi
mov rcx, rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x180004a34
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
test rdi, rdi
jne 0x180004ac3
cmp dword [rsp + 0x60], esi
jne 0x180004ab5
cmp byte [0x18024e8b8], sil
jne 0x180004a8e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004a7e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18024e8b0], rax
mov byte [0x18024e8b8], 1
jmp 0x180004a95
mov rax, qword [0x18024e8b0]
mov byte [0x18024e8b8], 1
jmp 0x180004a95
mov rax, qword [0x18024e8b0]
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x180004aaf
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180004ab5
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x180004ac3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180004ad6
mov eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180004ae6
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, esi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.180192360
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.18000e048
int3
call fcn.18000e024
int3