Function at 0x180085680
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1801044f8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15d, r8d
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x68], rbx
test rdx, rdx
je 0x180085c1a
mov eax, dword [0x1800d1ef8]
cmp dword [rcx], eax
jne 0x1800856f4
mov eax, dword [0x1800d1efc]
cmp dword [rcx + 4], eax
jne 0x1800856f4
mov eax, dword [0x1800d1f00]
cmp dword [rcx + 8], eax
jne 0x1800856f4
mov eax, dword [0x1800d1f04]
cmp dword [rcx + 0xc], eax
je 0x180085c1a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x1800d1388]
mov r14d, 1
mov r8d, r14d
xor edx, edx
lea rcx, [0x1800d1f18]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x180085c1a
mov ecx, dword [rdi]
test ecx, ecx
je 0x180085788
nop dword [rax + rax]
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
lea r9, [rbp - 0x50]
mov r8d, r14d
mov rdx, rsi
test r15d, r15d
je 0x180085769
cmp ecx, r14d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x18008575c
call qword [rax + 0x28]
jmp 0x18008575f
call qword [rax + 0x38]
test eax, eax
js 0x180085c1c
jmp 0x18008577e
cmp ecx, r14d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x18008577b
call qword [rax + 0x30]
jmp 0x18008577e
call qword [rax + 0x40]
add rdi, 0x10
mov ecx, dword [rdi]
test ecx, ecx
jne 0x180085730
test r15d, r15d
jne 0x180085c1e
lea r8d, [r15 + 0x40]
lea rdx, [rbp + 0xc0]
mov rcx, rsi
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x1800857b2
lea eax, [r15 + 0xd]
jmp 0x180085c1c
mov qword [rbp - 0x58], rbx
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x40]
call fcn.1800ac50c
test eax, eax
je 0x1800857f3
cmp eax, 0xc
je 0x180085c77
cmp eax, 0x16
je 0x180085c6c
cmp eax, 0x22
je 0x180085c6c
cmp eax, 0x50
jne 0x180085c61
lea r8, [rbp + 0xc0]
mov edx, 0x80
lea rcx, [rbp - 0x40]
call fcn.1800ac574
test eax, eax
je 0x180085830
cmp eax, 0xc
je 0x180085c77
cmp eax, 0x16
je 0x180085c6c
cmp eax, 0x22
je 0x180085c6c
cmp eax, 0x50
jne 0x180085c61
lea r8, str.Required_Categories
mov edx, 0x80
lea rcx, [rbp - 0x40]
call fcn.1800ac574
test eax, eax
je 0x18008586d
cmp eax, 0xc
je 0x180085c77
cmp eax, 0x16
je 0x180085c6c
cmp eax, 0x22
je 0x180085c6c
cmp eax, 0x50
jne 0x180085c61
mov qword [rbp - 0x70], 0xffffffff80000000
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x60], ebx
mov r9d, 0x20019
lea r8, [rbp - 0x40]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x70]
call fcn.180086330
mov rdi, qword [rsp + 0x70]
test eax, eax
jne 0x18008598b
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test rdi, rdi
je 0x18008590b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
test esi, esi
jne 0x18008598b
cmp dword [rsp + 0x60], esi
jne 0x18008598b
cmp byte [0x1801088e0], sil
jne 0x180085964
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180085954
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801088d8], rax
mov byte [0x1801088e0], 1
jmp 0x18008596b
mov rax, qword [0x1801088d8]
mov byte [0x1801088e0], 1
jmp 0x18008596b
mov rax, qword [0x1801088d8]
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x180085985
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x18008598b
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x40]
call fcn.1800ac50c
test eax, eax
je 0x1800859c8
cmp eax, 0xc
je 0x180085c56
cmp eax, 0x16
je 0x180085c8d
cmp eax, 0x22
je 0x180085c8d
cmp eax, 0x50
jne 0x180085c82
lea r8, [rbp + 0xc0]
mov edx, 0x80
lea rcx, [rbp - 0x40]
call fcn.1800ac574
test eax, eax
je 0x180085a05
cmp eax, 0xc
je 0x180085c56
cmp eax, 0x16
je 0x180085c8d
cmp eax, 0x22
je 0x180085c8d
cmp eax, 0x50
jne 0x180085c82
lea r8, str.Implemented_Categories
mov edx, 0x80
lea rcx, [rbp - 0x40]
call fcn.1800ac574
test eax, eax
je 0x180085a42
cmp eax, 0xc
je 0x180085c56
cmp eax, 0x16
je 0x180085c8d
cmp eax, 0x22
je 0x180085c8d
cmp eax, 0x50
jne 0x180085c82
mov qword [rbp - 0x78], rbx
mov rsi, qword [rbp - 0x80]
test rsi, rsi
je 0x180085ab4
cmp qword [rsi], 0
je 0x180085aae
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180085bed
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180085ada
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000000
call rax
jmp 0x180085ad7
cmp dword [rsi + 8], 0
je 0x180085ada
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
test r14d, r14d
jne 0x180085bed
mov r14d, ebx
test rdi, rdi
je 0x180085afc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14d, eax
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
mov rdi, qword [rbp - 0x78]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], ebx
test r14d, r14d
jne 0x180085bed
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test rdi, rdi
je 0x180085b6c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
test esi, esi
jne 0x180085bed
cmp dword [rsp + 0x60], esi
jne 0x180085bed
cmp byte [0x1801088e0], sil
jne 0x180085bc5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180085bb5
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801088d8], rax
mov byte [0x1801088e0], 1
jmp 0x180085bcc
mov rax, qword [0x1801088d8]
mov byte [0x1801088e0], 1
jmp 0x180085bcc
mov rax, qword [0x1801088d8]
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x180085be6
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180085bed
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test rdi, rdi
je 0x180085c00
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
jmp 0x180085c1e
mov eax, ebx
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180085c2e
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.180093c30
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.180030720
nop
mov ecx, 0x80004005
call fcn.180030720
int3
mov ecx, 0x80070057
call fcn.180030720
int3
mov ecx, 0x8007000e
call fcn.180030720
nop
mov ecx, 0x80004005
call fcn.180030720
int3
mov ecx, 0x80070057
call fcn.180030720
int3