Function at 0x14001ac58
Capabilities:
Delete registry key

Disassembly:
jmp 0x14003dca0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [0x140074f80]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x14008146e]
call fcn.14001b419
nop
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14003dd09
xor al, al
jmp 0x14003df42
mov r8, qword [rbp + 0x2d0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x28]
call fcn.14001b568
nop
lea rcx, [rbp + 0x28]
call fcn.14001a6ae
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.14001b338
nop
mov r8, qword [rbp + 0x2d0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xb8]
call fcn.14001b568
nop
lea rcx, [rbp + 0xb8]
call fcn.14001a6ae
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 0x14003dddf
cmp dword [rbp + 0xf4], 2
jne 0x14003ddb6
mov byte [rbp + 0x214], 1
lea rcx, [rbp + 0xb8]
call fcn.14001b126
nop
lea rcx, [rbp + 0x28]
call fcn.14001b126
movzx eax, byte [rbp + 0x214]
jmp 0x14003df42
mov byte [rbp + 0x234], 0
lea rcx, [rbp + 0xb8]
call fcn.14001b126
nop
lea rcx, [rbp + 0x28]
call fcn.14001b126
movzx eax, byte [rbp + 0x234]
jmp 0x14003df42
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
lea rcx, [rbp + 0x68]
call qword [rbp + 0x118]
mov dword [rbp + 0x134], eax
lea rdx, str.___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.14001aac3
lea rdx, [0x14001b266]
mov rcx, rax
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 edx, dword [rbp + 0x134]
mov rcx, rax
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]
lea rdx, [0x14001a9b0]
mov rcx, rax
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 0x14003decd
lea rdx, str.____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.14001aac3
lea rdx, [0x14001a9b0]
mov rcx, rax
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.14001a6ae
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0xf4], eax
mov byte [rbp + 0x254], 0
lea rcx, [rbp + 0xb8]
call fcn.14001b126
nop
lea rcx, [rbp + 0x28]
call fcn.14001b126
movzx eax, byte [rbp + 0x254]
jmp 0x14003df42
lea rcx, [rbp + 0xb8]
call fcn.14001a6ae
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x14003df1e
mov byte [rbp + 0x274], 0
lea rcx, [rbp + 0xb8]
call fcn.14001b126
nop
lea rcx, [rbp + 0x28]
call fcn.14001b126
movzx eax, byte [rbp + 0x274]
jmp 0x14003df42
mov byte [rbp + 0x294], 1
lea rcx, [rbp + 0xb8]
call fcn.14001b126
nop
lea rcx, [rbp + 0x28]
call fcn.14001b126
movzx eax, byte [rbp + 0x294]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140068100]
call fcn.14001b0a4
mov rax, rdi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.14001a997
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret