Function at 0x1800bb930
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 [0x1801c2938]
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 0x1800bb9d1
mov eax, dword [0x180147a08]
cmp dword [rcx], eax
jne 0x1800bb999
mov eax, dword [0x180147a0c]
cmp dword [rcx + 4], eax
jne 0x1800bb999
mov eax, dword [0x180147a10]
cmp dword [rcx + 8], eax
jne 0x1800bb999
mov eax, dword [0x180147a14]
cmp dword [rcx + 0xc], eax
je 0x1800bb9d1
xor edx, edx
lea rax, [rsp + 0x68]
lea r9, [0x18015bc18]
lea r8d, [rdx + 1]
lea rcx, [0x180147a58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1800bb9d8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800bb9d1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x1800bbe9a
mov qword [rsp + 0x270], rsi
cmp dword [rbx], r13d
je 0x1800bba65
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 0x1800bba4f
cmp dword [rbx], r8d
jne 0x1800bba2f
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
jmp 0x1800bba32
call qword [rax + 0x38]
mov esi, eax
test eax, eax
jns 0x1800bba5c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800bba48
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, esi
jmp 0x1800bbe92
cmp dword [rbx], 1
jne 0x1800bba59
call qword [rax + 0x30]
jmp 0x1800bba5c
call qword [rax + 0x40]
add rbx, 0x10
cmp dword [rbx], r13d
jne 0x1800bb9f0
test r12d, r12d
jne 0x1800bbe80
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.1800c04a8
test eax, eax
je 0x1800bbad1
cmp eax, 0xc
je 0x1800bbac6
cmp eax, 0x16
je 0x1800bbabb
cmp eax, 0x22
je 0x1800bbabb
cmp eax, 0x50
je 0x1800bbad1
mov ecx, 0x80004005
call fcn.18003d350
int3
mov ecx, 0x80070057
call fcn.18003d350
int3
mov ecx, 0x8007000e
call fcn.18003d350
int3
lea r8, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cea64
test eax, eax
je 0x1800bbb1f
cmp eax, 0xc
je 0x1800bbb14
cmp eax, 0x16
je 0x1800bbb09
cmp eax, 0x22
je 0x1800bbb09
cmp eax, 0x50
je 0x1800bbb1f
mov ecx, 0x80004005
call fcn.18003d350
int3
mov ecx, 0x80070057
call fcn.18003d350
int3
mov ecx, 0x8007000e
call fcn.18003d350
int3
lea r8, str.Required_Categories
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cea64
test eax, eax
je 0x1800bbb6d
cmp eax, 0xc
je 0x1800bbb62
cmp eax, 0x16
je 0x1800bbb57
cmp eax, 0x22
je 0x1800bbb57
cmp eax, 0x50
je 0x1800bbb6d
mov ecx, 0x80004005
call fcn.18003d350
int3
mov ecx, 0x80070057
call fcn.18003d350
int3
mov ecx, 0x8007000e
call fcn.18003d350
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.180037250
test eax, eax
jne 0x1800bbc7f
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 0x1800bbbfc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
test rdi, rdi
jne 0x1800bbc7f
cmp dword [rsp + 0x60], r13d
jne 0x1800bbc7f
cmp byte [0x1801daba4], r13b
jne 0x1800bbc58
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800bbc48
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1801daba4], 1
mov qword [0x1801daba8], rax
jmp 0x1800bbc5f
mov rax, qword [0x1801daba8]
mov byte [0x1801daba4], 1
jmp 0x1800bbc5f
mov rax, qword [0x1801daba8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x1800bbc79
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1800bbc7f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.CLSID_
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800c04a8
test eax, eax
je 0x1800bbccd
cmp eax, 0xc
je 0x1800bbcc2
cmp eax, 0x16
je 0x1800bbcb7
cmp eax, 0x22
je 0x1800bbcb7
cmp eax, 0x50
je 0x1800bbccd
mov ecx, 0x80004005
call fcn.18003d350
int3
mov ecx, 0x80070057
call fcn.18003d350
int3
mov ecx, 0x8007000e
call fcn.18003d350
int3
lea r8, [rbp + 0xa0]
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cea64
test eax, eax
je 0x1800bbd1b
cmp eax, 0xc
je 0x1800bbd10
cmp eax, 0x16
je 0x1800bbd05
cmp eax, 0x22
je 0x1800bbd05
cmp eax, 0x50
je 0x1800bbd1b
mov ecx, 0x80004005
call fcn.18003d350
int3
mov ecx, 0x80070057
call fcn.18003d350
int3
mov ecx, 0x8007000e
call fcn.18003d350
int3
lea r8, str.Implemented_Categories
lea rcx, [rbp - 0x60]
mov edx, 0x80
call fcn.1800cea64
test eax, eax
je 0x1800bbd69
cmp eax, 0xc
je 0x1800bbd5e
cmp eax, 0x16
je 0x1800bbd53
cmp eax, 0x22
je 0x1800bbd53
cmp eax, 0x50
je 0x1800bbd69
mov ecx, 0x80004005
call fcn.18003d350
int3
mov ecx, 0x80070057
call fcn.18003d350
int3
mov ecx, 0x8007000e
call fcn.18003d350
int3
lea r8, [rbp - 0x60]
lea rcx, [rsp + 0x70]
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
call fcn.180037250
mov rbx, qword [rsp + 0x70]
test eax, eax
jne 0x1800bbe61
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 0x1800bbde3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r13
test rdi, rdi
jne 0x1800bbe61
cmp dword [rsp + 0x60], r13d
jne 0x1800bbe61
cmp byte [0x1801daba4], r13b
jne 0x1800bbe3a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800bbe2a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1801daba4], 1
mov qword [0x1801daba8], rax
jmp 0x1800bbe41
mov rax, qword [0x1801daba8]
mov byte [0x1801daba4], 1
jmp 0x1800bbe41
mov rax, qword [0x1801daba8]
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000000
test rax, rax
je 0x1800bbe5b
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1800bbe61
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x1800bbe6f
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 0x1800bbe90
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.1800bdf20
add rsp, 0x230
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret