Function at 0x140008960
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal], rax
mov r14d, r8d
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x68], rsi
test rdx, rdx
je 0x140008db8
mov eax, dword [0x14000d7c8]
cmp dword [rcx], eax
jne 0x1400089d6
mov eax, dword [0x14000d7cc]
cmp dword [rcx + 4], eax
jne 0x1400089d6
mov eax, dword [0x14000d7d0]
cmp dword [rcx + 8], eax
jne 0x1400089d6
mov eax, dword [0x14000d7d4]
cmp dword [rcx + 0xc], eax
je 0x140008db8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x14000ec80]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14000d7b8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140008db8
mov ecx, dword [rbx]
test ecx, ecx
je 0x140008a6b
nop dword [rax + rax]
mov rax, qword [rbx + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
lea r9, [rbp - 0x78]
mov r8d, 1
mov rdx, rdi
test r14d, r14d
je 0x140008a4c
cmp ecx, r8d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x140008a3f
call qword [rax + 0x28]
jmp 0x140008a42
call qword [rax + 0x38]
test eax, eax
js 0x140008dba
jmp 0x140008a61
cmp ecx, 1
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
jne 0x140008a5e
call qword [rax + 0x30]
jmp 0x140008a61
call qword [rax + 0x40]
add rbx, 0x10
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140008a10
test r14d, r14d
jne 0x140008dbc
lea r8d, [r14 + 0x40]
lea rdx, [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x140008a95
lea eax, [r14 + 0xd]
jmp 0x140008dba
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x140008ac1
cmp eax, 0xc
je 0x140008c9c
cmp eax, 0x50
jne 0x140008c95
lea r8, [rbp + 0xa0]
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140008aed
cmp eax, 0xc
je 0x140008c9c
cmp eax, 0x50
jne 0x140008c95
lea r8, str.Required_Categories
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140008b19
cmp eax, 0xc
je 0x140008c9c
cmp eax, 0x50
jne 0x140008c95
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rsi
mov qword [rbp - 0x80], rsi
mov dword [rsp + 0x60], esi
mov r9d, 0x20019
lea r8, [rbp - 0x60]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x70]
call fcn.140004f70
test eax, eax
jne 0x140008c29
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x140008ba7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
test rdi, rdi
jne 0x140008c29
cmp dword [rsp + 0x60], esi
jne 0x140008c29
cmp byte [0x140013fe0], dil
jne 0x140008c01
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008bf1
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013fd8], rax
mov byte [0x140013fe0], 1
jmp 0x140008c08
mov rax, qword [0x140013fd8]
mov byte [0x140013fe0], 1
jmp 0x140008c08
mov rax, qword [0x140013fd8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x140008c22
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140008c29
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x140008c4d
cmp eax, 0xc
je 0x140008c9c
cmp eax, 0x50
jne 0x140008c95
lea r8, [rbp + 0xa0]
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140008c71
cmp eax, 0xc
je 0x140008c9c
cmp eax, 0x50
jne 0x140008c95
lea r8, str.Implemented_Categories
mov edx, 0x80
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140008ca3
cmp eax, 0xc
je 0x140008c9c
cmp eax, 0x50
je 0x140008ca3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
mov r9d, 0x20019
lea r8, [rbp - 0x60]
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x70]
call fcn.140004f70
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x140008d9b
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
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 0x140008d1d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
test rdi, rdi
jne 0x140008d9b
cmp dword [rsp + 0x60], edi
jne 0x140008d9b
cmp byte [0x140013fe0], dil
jne 0x140008d73
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008d63
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013fd8], rax
mov byte [0x140013fe0], 1
jmp 0x140008d7a
mov rax, qword [0x140013fd8]
mov byte [0x140013fe0], 1
jmp 0x140008d7a
mov rax, qword [0x140013fd8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x140008d94
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140008d9b
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test rbx, rbx
je 0x140008da9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008dbc
mov eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140008dcd
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov eax, esi
mov rcx, qword [rbp + reloc.OLEAUT32.dll_VARIANT_UserUnmarshal]
xor rcx, rsp
call fcn.1400092d0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret