Function at 0x14002fef6
Capabilities:
Delete registry key

Disassembly:
jmp 0x140061eb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3d8]
mov rax, qword [0x1400b7040]
xor rax, rbp
mov qword [rbp + 0x380], rax
lea rcx, [0x1400c45b6]
call fcn.140030824
nop
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140061f19
xor al, al
jmp 0x14006218c
mov r8, qword [rbp + 0x3b0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x28]
call fcn.1400309d2
nop
lea rcx, [rbp + 0x28]
call fcn.14002f857
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.14003070c
nop
mov r8, qword [rbp + 0x3b0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xb8]
call fcn.1400309d2
nop
lea rcx, [rbp + 0xb8]
call fcn.14002f857
lea r8, [rbp + 0x98]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x140061fef
cmp dword [rbp + 0xf4], 2
jne 0x140061fc6
mov byte [rbp + 0x2d4], 1
lea rcx, [rbp + 0xb8]
call fcn.14003047d
nop
lea rcx, [rbp + 0x28]
call fcn.14003047d
movzx eax, byte [rbp + 0x2d4]
jmp 0x14006218c
mov byte [rbp + 0x2f4], 0
lea rcx, [rbp + 0xb8]
call fcn.14003047d
nop
lea rcx, [rbp + 0x28]
call fcn.14003047d
movzx eax, byte [rbp + 0x2f4]
jmp 0x14006218c
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, str.NtUnloadDriver
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x368], rax
lea rcx, [rbp + 0x68]
call qword [rbp + 0x368]
mov dword [rbp + 0x134], eax
lea rdx, str._Saturn__NtUnloadDriver_Status_0x
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14002fd2f
mov qword [rbp + 0x368], rax
lea rdx, [0x140030603]
mov rcx, qword [rbp + 0x368]
call qword [sym.imp.MSVCP140D.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___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rbp + 0x370], rax
mov edx, dword [rbp + 0x134]
mov rcx, qword [rbp + 0x370]
call qword [sym.imp.MSVCP140D.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]
mov qword [rbp + 0x378], rax
lea rdx, [0x14002fbd1]
mov rcx, qword [rbp + 0x378]
call qword [sym.imp.MSVCP140D.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___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
cmp dword [rbp + 0x134], 0
je 0x140062117
lea rdx, str._Saturn__Driver_Unload_Failed__
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14002fd2f
mov qword [rbp + 0x368], rax
lea rdx, [0x14002fbd1]
mov rcx, qword [rbp + 0x368]
call qword [sym.imp.MSVCP140D.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___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
lea rcx, [rbp + 0xb8]
call fcn.14002f857
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
mov byte [rbp + 0x314], 0
lea rcx, [rbp + 0xb8]
call fcn.14003047d
nop
lea rcx, [rbp + 0x28]
call fcn.14003047d
movzx eax, byte [rbp + 0x314]
jmp 0x14006218c
lea rcx, [rbp + 0xb8]
call fcn.14002f857
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x140062168
mov byte [rbp + 0x334], 0
lea rcx, [rbp + 0xb8]
call fcn.14003047d
nop
lea rcx, [rbp + 0x28]
call fcn.14003047d
movzx eax, byte [rbp + 0x334]
jmp 0x14006218c
mov byte [rbp + 0x354], 1
lea rcx, [rbp + 0xb8]
call fcn.14003047d
nop
lea rcx, [rbp + 0x28]
call fcn.14003047d
movzx eax, byte [rbp + 0x354]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400aa590]
call fcn.1400303dd
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rbp
call fcn.14002fbbd
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret