Function at 0x180002ac0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x70], rbx
test rdx, rdx
je 0x18000303b
mov eax, dword [0x1800178e0]
cmp dword [rcx], eax
jne 0x180002b3b
mov eax, dword [0x1800178e4]
cmp dword [rcx + 4], eax
jne 0x180002b3b
mov eax, dword [0x1800178e8]
cmp dword [rcx + 8], eax
jne 0x180002b3b
mov eax, dword [0x1800178ec]
cmp dword [rcx + 0xc], eax
je 0x18000303b
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [0x18001a288]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1800178d0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x18000303b
mov ecx, dword [rdi]
test ecx, ecx
je 0x180002bdb
nop dword [rax]
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
lea r9, [rbp - 0x70]
mov r8d, 1
mov rdx, rsi
test r14d, r14d
je 0x180002bb4
cmp ecx, r8d
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
jne 0x180002ba0
mov rax, qword [rax + 0x28]
jmp 0x180002ba4
mov rax, qword [rax + 0x38]
call qword [case.0x18000a30c.0]
test eax, eax
js 0x18000303d
jmp 0x180002bd1
cmp ecx, 1
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
jne 0x180002bc7
mov rax, qword [rax + 0x30]
jmp 0x180002bcb
mov rax, qword [rax + 0x40]
call qword [case.0x18000a30c.0]
add rdi, 0x10
mov ecx, dword [rdi]
test ecx, ecx
jne 0x180002b70
test r14d, r14d
jne 0x18000303f
lea r8d, [r14 + 0x40]
lea rdx, [rbp + 0xc0]
mov rcx, rsi
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x180002c05
lea eax, [r14 + 0xd]
jmp 0x18000303d
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x48], rbx
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x180002c4b
cmp eax, 0xc
je 0x1800030a0
cmp eax, 0x16
je 0x180003095
cmp eax, 0x22
je 0x180003095
cmp eax, 0x50
jne 0x18000308a
lea r8, [rbp + 0xc0]
mov edx, 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x180002c89
cmp eax, 0xc
je 0x1800030a0
cmp eax, 0x16
je 0x180003095
cmp eax, 0x22
je 0x180003095
cmp eax, 0x50
jne 0x18000308a
lea r8, str.Required_Categories
mov edx, 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x180002cc7
cmp eax, 0xc
je 0x1800030a0
cmp eax, 0x16
je 0x180003095
cmp eax, 0x22
je 0x180003095
cmp eax, 0x50
jne 0x18000308a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x60], 0xffffffff80000000
mov dword [rbp - 0x58], ebx
mov qword [rbp - 0x50], rbx
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
mov rdi, rbx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov qword [rbp - 0x78], rbx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
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]
test eax, eax
jne 0x180002e1b
mov dword [rbp - 0x80], ebx
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rdi
mov dword [rbp - 0x80], ebx
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 + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rsi, eax
test rdi, rdi
je 0x180002d97
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
test rsi, rsi
jne 0x180002e1b
cmp dword [rsp + 0x68], esi
jne 0x180002e1b
cmp byte [0x180022448], sil
jne 0x180002df0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002de0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180022440], rax
mov byte [0x180022448], 1
jmp 0x180002df7
mov rax, qword [0x180022440]
mov byte [0x180022448], 1
jmp 0x180002df7
mov rax, qword [0x180022440]
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x180002e15
xor r9d, r9d
xor r8d, r8d
call qword [case.0x18000a30c.0]
jmp 0x180002e1b
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x180002e59
cmp eax, 0xc
je 0x18000307f
cmp eax, 0x16
je 0x1800030b6
cmp eax, 0x22
je 0x1800030b6
cmp eax, 0x50
jne 0x1800030ab
lea r8, [rbp + 0xc0]
mov edx, 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x180002e97
cmp eax, 0xc
je 0x18000307f
cmp eax, 0x16
je 0x1800030b6
cmp eax, 0x22
je 0x1800030b6
cmp eax, 0x50
jne 0x1800030ab
lea r8, str.Implemented_Categories
mov edx, 0x80
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x180002ed5
cmp eax, 0xc
je 0x18000307f
cmp eax, 0x16
je 0x1800030b6
cmp eax, 0x22
je 0x1800030b6
cmp eax, 0x50
jne 0x1800030ab
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
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]
test eax, eax
jne 0x18000300f
mov eax, ebx
test rdi, rdi
je 0x180002f1b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rdi
mov dword [rbp - 0x80], ebx
test eax, eax
jne 0x18000300f
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 + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rsi, eax
test rdi, rdi
je 0x180002f8a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
test rsi, rsi
jne 0x18000300f
cmp dword [rsp + 0x68], esi
jne 0x18000300f
cmp byte [0x180022448], sil
jne 0x180002fe3
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002fd3
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180022440], rax
mov byte [0x180022448], 1
jmp 0x180002fea
mov rax, qword [0x180022440]
mov byte [0x180022448], 1
jmp 0x180002fea
mov rax, qword [0x180022440]
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x180003008
xor r9d, r9d
xor r8d, r8d
call qword [case.0x18000a30c.0]
jmp 0x18000300f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test rdi, rdi
je 0x180003022
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x60], rbx
mov dword [rbp - 0x58], ebx
jmp 0x18000303f
mov eax, ebx
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180003056
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x18000a30c.0]
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.180011d80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.180004820
nop
mov ecx, 0x80004005
call fcn.180004820
int3
mov ecx, 0x80070057
call fcn.180004820
int3
mov ecx, 0x8007000e
call fcn.180004820
nop
mov ecx, 0x80004005
call fcn.180004820
int3
mov ecx, 0x80070057
call fcn.180004820
int3