Function at 0x1800161a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x418]
sub rsp, 0x500
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x18004d370]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor esi, esi
xor eax, eax
mov qword [rbp - 0x3e], rax
mov dword [rbp - 0x38], 1
lea r15d, [rsi + 1]
mov dword [rbp - 0x40], 0x10001
mov dword [rbp - 0x3c], 0x10001
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.18001adc0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.18001adc0
lea rbx, str.ConchPicture
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x40]
lea r8, str._shellexContextMenuHandlers_
lea rdx, str._s_s_s
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x40]
lea r8, str._shellexDragDropHandlers_
lea rdx, str._s_s_s
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
lea r8d, [rsi + 6]
lea rdx, str.CLSID_
lea rcx, [rbp - 0x80]
call fcn.180009150
nop
lea r8d, [rsi + 0x26]
lea rdx, str.42CA8D45_DC86_41CE_B701_EEF835F50DEA
lea rcx, [rbp - 0x80]
call fcn.180008ea0
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.180009010
nop
lea r8d, [rsi + 0xf]
lea rdx, str.InprocServer32
lea rcx, [rsp + 0x60]
call fcn.180008ea0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180016364
lea rdx, str.42CA8D45_DC86_41CE_B701_EEF835F50DEA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1800156b0
mov rdi, rax
mov rbx, qword [rax]
movabs r14, 0x7fffffffffffffff
cmp rbx, qword [rax + 8]
je 0x1800165a5
cmp qword [rbx + 0x18], 8
jb 0x18001638f
mov rdx, qword [rbx]
jmp 0x180016392
mov rdx, rbx
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
cmp word [rdx], 0
jne 0x1800163ad
mov r8, rsi
jmp 0x1800163bc
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800163b1
lea rcx, [rbp - 0x60]
call fcn.180009150
nop
cmp word [rbp - 0x30], 0
jne 0x1800163d2
mov r8, rsi
jmp 0x1800163eb
lea rax, [rbp - 0x30]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800163e0
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call fcn.180008ea0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp qword [rbx + 0x18], 8
jb 0x18001641f
mov rdx, qword [rbx]
jmp 0x180016422
mov rdx, rbx
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
cmp word [rdx], 0
jne 0x180016440
mov r8, rsi
jmp 0x18001644f
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x180016444
lea rcx, [rsp + 0x40]
call fcn.180009150
nop
cmp word [rbp + 0x1e0], 0
jne 0x180016469
mov r8, rsi
jmp 0x18001647f
lea rax, [rbp + 0x1e0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180016474
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x40]
call fcn.180008ea0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x180016503
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, r14
ja 0x180016581
add rax, rax
cmp rax, 0x1000
jb 0x1800164fe
test cl, 0x1f
jne 0x18001657b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x180016575
sub rcx, rax
cmp rcx, 8
jb 0x18001656f
cmp rcx, 0x27
ja 0x180016569
mov rcx, rax
call fcn.18001793c
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
mov rax, qword [rbp - 0x48]
cmp rax, 8
jb 0x18001655c
inc rax
mov rcx, qword [rbp - 0x60]
cmp rax, r14
ja 0x18001659f
add rax, rax
cmp rax, 0x1000
jb 0x180016557
test cl, 0x1f
jne 0x180016599
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x180016593
sub rcx, rax
cmp rcx, 8
jb 0x18001658d
cmp rcx, 0x27
ja 0x180016587
mov rcx, rax
call fcn.18001793c
add rbx, 0x20
cmp rbx, qword [rdi + 8]
jmp 0x18001637d
call fcn.18001c0f0
int3
call fcn.18001c0f0
int3
call fcn.18001c0f0
int3
call fcn.18001c0f0
int3
call fcn.18001c0f0
nop
call fcn.18001c0f0
int3
call fcn.18001c0f0
int3
call fcn.18001c0f0
int3
call fcn.18001c0f0
int3
call fcn.18001c0f0
nop
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x18001660d
inc rax
mov rcx, qword [rsp + 0x60]
cmp rax, r14
jbe 0x1800165c3
call fcn.18001c0f0
int3
add rax, rax
cmp rax, 0x1000
jb 0x180016608
test byte [rsp + 0x60], 0x1f
je 0x1800165db
call fcn.18001c0f0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800165ea
call fcn.18001c0f0
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800165f9
call fcn.18001c0f0
int3
cmp rcx, 0x27
jbe 0x180016605
call fcn.18001c0f0
int3
mov rcx, rax
call fcn.18001793c
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
mov rax, qword [rbp - 0x68]
cmp rax, 8
jb 0x180016685
inc rax
mov rcx, qword [rbp - 0x80]
cmp rax, r14
jbe 0x18001663c
call fcn.18001c0f0
int3
add rax, rax
cmp rax, 0x1000
jb 0x180016680
test byte [rbp - 0x80], 0x1f
je 0x180016653
call fcn.18001c0f0
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180016662
call fcn.18001c0f0
int3
sub rcx, rax
cmp rcx, 8
jae 0x180016671
call fcn.18001c0f0
int3
cmp rcx, 0x27
jbe 0x18001667d
call fcn.18001c0f0
int3
mov rcx, rax
call fcn.18001793c
mov eax, r15d
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.180017e40
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret