Function at 0x1400d61f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
lea rcx, [0x140192f40]
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400d621d
xor al, al
jmp 0x1400d646c
mov r8, qword [rsp + 0xd0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x90]
call fcn.1400d6480
nop
lea rcx, [rsp + 0x90]
call fcn.140047710
mov rdx, rax
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8, qword [rsp + 0xd0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x38]
call fcn.1400d6480
nop
lea rcx, [rsp + 0x38]
call fcn.140047710
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400d62f1
cmp dword [rsp + 0x28], 2
jne 0x1400d62ca
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.140015de0
nop
lea rcx, [rsp + 0x90]
call fcn.140015de0
movzx eax, byte [rsp + 0x20]
jmp 0x1400d646c
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x38]
call fcn.140015de0
nop
lea rcx, [rsp + 0x90]
call fcn.140015de0
movzx eax, byte [rsp + 0x21]
jmp 0x1400d646c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xb0]
call qword [rsp + 0x68]
mov dword [rsp + 0x2c], eax
lea rdx, str.___NtUnloadDriver_Status_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400d6550
mov qword [rsp + 0x70], rax
lea rdx, [0x14000d610]
mov rcx, qword [rsp + 0x70]
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___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x78]
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]
mov qword [rsp + 0x80], rax
lea rdx, [0x1400ce7a0]
mov rcx, qword [rsp + 0x80]
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___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]
cmp dword [rsp + 0x2c], 0
je 0x1400d6401
lea rdx, str.____Driver_Unload_Failed__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400d6550
mov qword [rsp + 0x88], rax
lea rdx, [0x1400ce7a0]
mov rcx, qword [rsp + 0x88]
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___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]
lea rcx, [rsp + 0x38]
call fcn.140047710
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x38]
call fcn.140015de0
nop
lea rcx, [rsp + 0x90]
call fcn.140015de0
movzx eax, byte [rsp + 0x22]
jmp 0x1400d646c
lea rcx, [rsp + 0x38]
call fcn.140047710
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400d644a
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x38]
call fcn.140015de0
nop
lea rcx, [rsp + 0x90]
call fcn.140015de0
movzx eax, byte [rsp + 0x23]
jmp 0x1400d646c
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x38]
call fcn.140015de0
nop
lea rcx, [rsp + 0x90]
call fcn.140015de0
movzx eax, byte [rsp + 0x24]
add rsp, 0xc8
ret