Function at 0x1400085c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, reloc.OLEAUT32.dll_VARIANT_UserUnmarshal
sub rsp, 0x220
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor esi, esi
mov r14d, r8d
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140008ac5
mov eax, dword [0x14000d7b8]
cmp dword [rcx], eax
jne 0x140008636
mov eax, dword [0x14000d7bc]
cmp dword [rcx + 4], eax
jne 0x140008636
mov eax, dword [0x14000d7c0]
cmp dword [rcx + 8], eax
jne 0x140008636
mov eax, dword [0x14000d7c4]
cmp dword [rcx + 0xc], eax
je 0x140008ac5
xor edx, edx
lea rax, [rsp + 0x70]
lea r9, [0x14000eba8]
mov qword [rsp + 0x20], rax
lea rcx, [0x14000d7a8]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140008ac5
cmp dword [rbx], esi
je 0x1400086c3
nop word [rax + rax]
mov rax, qword [rbx + 8]
lea r9, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov r8d, 1
mov rdx, rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
mov rax, qword [rcx]
test r14d, r14d
je 0x1400086ae
cmp dword [rbx], r8d
jne 0x1400086a1
call qword [rax + 0x28]
jmp 0x1400086a4
call qword [rax + 0x38]
test eax, eax
js 0x140008ac7
jmp 0x1400086bb
cmp dword [rbx], 1
jne 0x1400086b8
call qword [rax + 0x30]
jmp 0x1400086bb
call qword [rax + 0x40]
add rbx, 0x10
cmp dword [rbx], esi
jne 0x140008670
test r14d, r14d
jne 0x140008ac9
lea r8d, [r14 + 0x40]
mov rcx, rdi
lea rdx, [rbp + 0x90]
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x1400086ed
lea eax, [r14 + 0xd]
jmp 0x140008ac7
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x140008730
cmp eax, 0xc
je 0x140008729
cmp eax, 0x16
je 0x140008722
cmp eax, 0x22
je 0x140008722
cmp eax, 0x50
je 0x140008730
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
lea r8, [rbp + 0x90]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140008773
cmp eax, 0xc
je 0x14000876c
cmp eax, 0x16
je 0x140008765
cmp eax, 0x22
je 0x140008765
cmp eax, 0x50
je 0x140008773
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
lea r8, str.Required_Categories
mov edx, 0x80
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x1400087b6
cmp eax, 0xc
je 0x1400087af
cmp eax, 0x16
je 0x1400087a8
cmp eax, 0x22
je 0x1400087a8
cmp eax, 0x50
je 0x1400087b6
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], esi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x60], rsi
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000000
mov rbx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400088c2
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
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 0x140008845
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
test rdi, rdi
jne 0x1400088c2
cmp dword [rsp + 0x68], esi
jne 0x1400088c2
cmp byte [0x140013f48], sil
jne 0x14000889b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000888b
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013f40], rax
mov byte [0x140013f48], 1
jmp 0x1400088a2
mov rax, qword [0x140013f40]
mov byte [0x140013f48], 1
jmp 0x1400088a2
mov rax, qword [0x140013f40]
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x1400088bc
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1400088c2
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
je 0x140008905
cmp eax, 0xc
je 0x1400088fe
cmp eax, 0x16
je 0x1400088f7
cmp eax, 0x22
je 0x1400088f7
cmp eax, 0x50
je 0x140008905
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
lea r8, [rbp + 0x90]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140008948
cmp eax, 0xc
je 0x140008941
cmp eax, 0x16
je 0x14000893a
cmp eax, 0x22
je 0x14000893a
cmp eax, 0x50
je 0x140008948
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
lea r8, str.Implemented_Categories
mov edx, 0x80
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x14000898b
cmp eax, 0xc
je 0x140008984
cmp eax, 0x16
je 0x14000897d
cmp eax, 0x22
je 0x14000897d
cmp eax, 0x50
je 0x14000898b
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegDeleteKey]
int3
call qword [sym.imp.mfc140u.dll_AfxRegisterMFCCtrlClasses]
int3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], 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 0x140008aa8
mov eax, esi
test rbx, rbx
je 0x1400089cc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x140008aa8
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x68]
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 0x140008a2b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
test rdi, rdi
jne 0x140008aa8
cmp dword [rsp + 0x68], esi
jne 0x140008aa8
cmp byte [0x140013f48], sil
jne 0x140008a81
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008a71
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140013f40], rax
mov byte [0x140013f48], 1
jmp 0x140008a88
mov rax, qword [0x140013f40]
mov byte [0x140013f48], 1
jmp 0x140008a88
mov rax, qword [0x140013f40]
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x140008aa2
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140008aa8
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x140008ab6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008ac9
mov eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140008ad9
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, esi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400092d0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret