Function at 0x1800bc3c0
Capabilities:
Delete registry key

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r13d, r13d
mov r12d, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], r13
test rdx, rdx
je 0x1800bc461
mov eax, dword [0x180148a58]
cmp dword [rcx], eax
jne 0x1800bc429
mov eax, dword [0x180148a5c]
cmp dword [rcx + 4], eax
jne 0x1800bc429
mov eax, dword [0x180148a60]
cmp dword [rcx + 8], eax
jne 0x1800bc429
mov eax, dword [0x180148a64]
cmp dword [rcx + 0xc], eax
je 0x1800bc461
xor edx, edx
lea rax, [rsp + 0x68]
lea r9, [0x18015c7f8]
lea r8d, [rdx + 1]
lea rcx, [0x180148ab8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1800bc468
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800bc461
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x1800bc92a
mov qword [rsp + 0x270], rsi
cmp dword [rbx], r13d
je 0x1800bc4f5
nop dword [rax]
mov rcx, qword [rbx + 8]
lea r9, [rbp - 0x78]
mov r8d, 1
mov eax, dword [rcx]
mov rdx, rdi
mov dword [rbp - 0x78], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x74], eax
mov eax, dword [rcx + 8]
mov dword [rbp - 0x70], eax
mov eax, dword [rcx + 0xc]
mov rcx, qword [rsp + 0x68]
mov dword [rbp - 0x6c], eax
mov rax, qword [rcx]
test r12d, r12d
je 0x1800bc4df
cmp dword [rbx], r8d
jne 0x1800bc4bf
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
jmp 0x1800bc4c2
call qword [rax + 0x38]
mov esi, eax
test eax, eax
jns 0x1800bc4ec
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800bc4d8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, esi
jmp 0x1800bc922
cmp dword [rbx], 1
jne 0x1800bc4e9
call qword [rax + 0x30]
jmp 0x1800bc4ec
call qword [rax + 0x40]
add rbx, 0x10
cmp dword [rbx], r13d
jne 0x1800bc480
test r12d, r12d
jne 0x1800bc910
lea r8d, [r12 + 0x40]
lea rdx, [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, str.CLSID_
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800c0e64
test eax, eax
je 0x1800bc561
cmp eax, 0xc
je 0x1800bc556
cmp eax, 0x16
je 0x1800bc54b
cmp eax, 0x22
je 0x1800bc54b
cmp eax, 0x50
je 0x1800bc561
mov ecx, 0x80004005
call fcn.180040c70
int3
mov ecx, 0x80070057
call fcn.180040c70
int3
mov ecx, 0x8007000e
call fcn.180040c70
int3
lea r8, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cf504
test eax, eax
je 0x1800bc5af
cmp eax, 0xc
je 0x1800bc5a4
cmp eax, 0x16
je 0x1800bc599
cmp eax, 0x22
je 0x1800bc599
cmp eax, 0x50
je 0x1800bc5af
mov ecx, 0x80004005
call fcn.180040c70
int3
mov ecx, 0x80070057
call fcn.180040c70
int3
mov ecx, 0x8007000e
call fcn.180040c70
int3
lea r8, str.Required_Categories
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cf504
test eax, eax
je 0x1800bc5fd
cmp eax, 0xc
je 0x1800bc5f2
cmp eax, 0x16
je 0x1800bc5e7
cmp eax, 0x22
je 0x1800bc5e7
cmp eax, 0x50
je 0x1800bc5fd
mov ecx, 0x80004005
call fcn.180040c70
int3
mov ecx, 0x80070057
call fcn.180040c70
int3
mov ecx, 0x8007000e
call fcn.180040c70
int3
lea r8, [rbp - 0x60]
lea rcx, [rsp + 0x70]
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x80], r13
mov dword [rsp + 0x60], r13d
call fcn.18003a1c0
test eax, eax
jne 0x1800bc70f
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r13
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x1800bc68c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
test rdi, rdi
jne 0x1800bc70f
cmp dword [rsp + 0x60], r13d
jne 0x1800bc70f
cmp byte [0x1801dbbf4], r13b
jne 0x1800bc6e8
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800bc6d8
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1801dbbf4], 1
mov qword [0x1801dbbf8], rax
jmp 0x1800bc6ef
mov rax, qword [0x1801dbbf8]
mov byte [0x1801dbbf4], 1
jmp 0x1800bc6ef
mov rax, qword [0x1801dbbf8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x1800bc709
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1800bc70f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800c0e64
test eax, eax
je 0x1800bc75d
cmp eax, 0xc
je 0x1800bc752
cmp eax, 0x16
je 0x1800bc747
cmp eax, 0x22
je 0x1800bc747
cmp eax, 0x50
je 0x1800bc75d
mov ecx, 0x80004005
call fcn.180040c70
int3
mov ecx, 0x80070057
call fcn.180040c70
int3
mov ecx, 0x8007000e
call fcn.180040c70
int3
lea r8, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cf504
test eax, eax
je 0x1800bc7ab
cmp eax, 0xc
je 0x1800bc7a0
cmp eax, 0x16
je 0x1800bc795
cmp eax, 0x22
je 0x1800bc795
cmp eax, 0x50
je 0x1800bc7ab
mov ecx, 0x80004005
call fcn.180040c70
int3
mov ecx, 0x80070057
call fcn.180040c70
int3
mov ecx, 0x8007000e
call fcn.180040c70
int3
lea r8, str.Implemented_Categories
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cf504
test eax, eax
je 0x1800bc7f9
cmp eax, 0xc
je 0x1800bc7ee
cmp eax, 0x16
je 0x1800bc7e3
cmp eax, 0x22
je 0x1800bc7e3
cmp eax, 0x50
je 0x1800bc7f9
mov ecx, 0x80004005
call fcn.180040c70
int3
mov ecx, 0x80070057
call fcn.180040c70
int3
mov ecx, 0x8007000e
call fcn.180040c70
int3
lea r8, [rbp - 0x60]
lea rcx, [rsp + 0x70]
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
call fcn.18003a1c0
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x1800bc8f1
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rdi, eax
test rbx, rbx
je 0x1800bc873
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
test rdi, rdi
jne 0x1800bc8f1
cmp dword [rsp + 0x60], r13d
jne 0x1800bc8f1
cmp byte [0x1801dbbf4], r13b
jne 0x1800bc8ca
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800bc8ba
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1801dbbf4], 1
mov qword [0x1801dbbf8], rax
jmp 0x1800bc8d1
mov rax, qword [0x1801dbbf8]
mov byte [0x1801dbbf4], 1
jmp 0x1800bc8d1
mov rax, qword [0x1801dbbf8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x1800bc8eb
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1800bc8f1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x1800bc8ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800bc920
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800be9b0
add rsp, 0x230
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret