Function at 0x1400434b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [0x14016fb20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400434ef
xor al, al
jmp 0x140043731
mov r8, qword [rsp + 0xe0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x90]
call fcn.140042e00
nop
lea rcx, [rsp + 0x90]
call fcn.14003c780
mov rdx, rax
lea rcx, [rsp + 0xb0]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, qword [rsp + 0xe0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x70]
call fcn.140042e00
nop
lea rcx, [rsp + 0x70]
call fcn.14003c780
lea r8, [rsp + 0x68]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400435c2
cmp dword [rsp + 0x28], 2
jne 0x14004359b
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x70]
call fcn.1400365b0
nop
lea rcx, [rsp + 0x90]
call fcn.1400365b0
movzx eax, byte [rsp + 0x20]
jmp 0x140043731
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x70]
call fcn.1400365b0
nop
lea rcx, [rsp + 0x90]
call fcn.1400365b0
movzx eax, byte [rsp + 0x21]
jmp 0x140043731
mov rcx, qword [rsp + 0x68]
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 + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0xb0]
call qword [rsp + 0x40]
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.140030950
mov qword [rsp + 0x48], rax
lea rdx, [0x14003cc50]
mov rcx, qword [rsp + 0x48]
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 + 0x50], rax
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x50]
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 + 0x58], rax
lea rdx, [0x140035500]
mov rcx, qword [rsp + 0x58]
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 0x1400436c6
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.140030950
mov qword [rsp + 0x60], rax
lea rdx, [0x140035500]
mov rcx, qword [rsp + 0x60]
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 + 0x70]
call fcn.14003c780
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 + 0x70]
call fcn.1400365b0
nop
lea rcx, [rsp + 0x90]
call fcn.1400365b0
movzx eax, byte [rsp + 0x22]
jmp 0x140043731
lea rcx, [rsp + 0x70]
call fcn.14003c780
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14004370f
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x70]
call fcn.1400365b0
nop
lea rcx, [rsp + 0x90]
call fcn.1400365b0
movzx eax, byte [rsp + 0x23]
jmp 0x140043731
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x70]
call fcn.1400365b0
nop
lea rcx, [rsp + 0x90]
call fcn.1400365b0
movzx eax, byte [rsp + 0x24]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14015a6e0
add rsp, 0xd8
ret