Function at 0x14002b2a0
Capabilities:
Delete registry key
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [0x1401970c0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x90], 0
lea rcx, [0x140178610]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14002b2f0
xor al, al
jmp 0x14002b76e
mov r8, qword [rsp + 0x1a0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x150]
call fcn.14002ab10
nop
lea rax, [rsp + 0x150]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 7
jbe 0x14002b33a
mov dword [rsp + 0x30], 1
jmp 0x14002b342
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14002b371
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x170]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, qword [rsp + 0x1a0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x130]
call fcn.14002ab10
nop
lea rax, [rsp + 0x130]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 7
jbe 0x14002b3ed
mov dword [rsp + 0x34], 1
jmp 0x14002b3f5
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x14002b424
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea r8, [rsp + 0x128]
mov rdx, qword [rsp + 0xc0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14002b4c4
cmp dword [rsp + 0x2c], 2
jne 0x14002b49a
mov byte [rsp + 0x22], 1
lea rcx, [rsp + 0x130]
call fcn.140022740
nop
lea rcx, [rsp + 0x150]
call fcn.140022740
movzx eax, byte [rsp + 0x22]
jmp 0x14002b76e
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x130]
call fcn.140022740
nop
lea rcx, [rsp + 0x150]
call fcn.140022740
movzx eax, byte [rsp + 0x23]
jmp 0x14002b76e
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x170]
call qword [rsp + Ordinal_211]
mov dword [rsp + 0x38], 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.140015510
mov qword [rsp + 0xd8], rax
lea rdx, [0x140022e00]
mov rcx, qword [rsp + 0xd8]
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 + 0xe0], rax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xe0]
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 + 0xe8], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0xe8]
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 + 0x38], 0
je 0x14002b681
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.140015510
mov qword [rsp + 0xf0], rax
lea rdx, [0x14001a850]
mov rcx, qword [rsp + 0xf0]
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 rax, [rsp + 0x130]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 7
jbe 0x14002b5e4
mov dword [rsp + 0x3c], 1
jmp 0x14002b5ec
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x14002b61e
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x2c], eax
mov byte [rsp + 0x25], 0
lea rcx, [rsp + 0x130]
call fcn.140022740
nop
lea rcx, [rsp + 0x150]
call fcn.140022740
movzx eax, byte [rsp + 0x25]
jmp 0x14002b76e
lea rax, [rsp + 0x130]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 7
jbe 0x14002b6ae
mov dword [rsp + 0x40], 1
jmp 0x14002b6b6
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
test eax, eax
je 0x14002b6e5
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14002b749
mov byte [rsp + 0x27], 0
lea rcx, [rsp + 0x130]
call fcn.140022740
nop
lea rcx, [rsp + 0x150]
call fcn.140022740
movzx eax, byte [rsp + 0x27]
jmp 0x14002b76e
mov byte [rsp + 0x28], 1
lea rcx, [rsp + 0x130]
call fcn.140022740
nop
lea rcx, [rsp + 0x150]
call fcn.140022740
movzx eax, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140163a00
add rsp, 0x198
ret