Function at 0x7ff605166870
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x7ff60566c600]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
lea rcx, [0x7ff60551e478]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x7ff605166a7e
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x34
jb 0x7ff605166aa9
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x7ff6051668db
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, [0x7ff605629dc0]
lea rcx, [rsp + 0x68]
call fcn.7ff605163df0
nop
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbx + 0x10]
sub rdi, rax
cmp rdi, 0x22
jb 0x7ff605166aa3
cmp qword [rbx + 0x18], 7
jbe 0x7ff60516693d
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x22
lea r9, [0x7ff605629c30]
lea rcx, [rsp + 0x48]
call fcn.7ff605163df0
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
test eax, eax
je 0x7ff605166994
cmp eax, 2
sete bl
jmp 0x7ff605166a66
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea rdx, [0x7ff605629fa0]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rcx, [rsp + 0x88]
call rax
mov ebx, eax
lea rdx, [0x7ff605629fb0]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff605162760
lea rdx, [0x7ff60515e0a0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_ios_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ios_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
test ebx, ebx
je 0x7ff605166a42
lea rdx, [0x7ff605629fd0]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.7ff605162760
lea rdx, [0x7ff6051625d0]
mov rcx, rax
call qword [0x7ff605431740]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x7ff605166a66
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
test eax, eax
jne 0x7ff605166a3e
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.7ff6051622c0
nop
lea rcx, [rsp + 0x68]
call fcn.7ff6051622c0
movzx eax, bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.7ff60542acb0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.7ff60515dfc0
nop
call fcn.7ff60515dfc0
int3