Function at 0x1400aca00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
lea rcx, [0x1401bf5b8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400aca2d
xor al, al
jmp 0x1400acc7c
mov r8, qword [rsp + 0xd0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x90]
call fcn.1400acc90
nop
lea rcx, [rsp + 0x90]
call fcn.1400a0760
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.1400acc90
nop
lea rcx, [rsp + 0x38]
call fcn.1400a0760
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 0x1400acb01
cmp dword [rsp + 0x28], 2
jne 0x1400acada
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.1400a0780
nop
lea rcx, [rsp + 0x90]
call fcn.1400a0780
movzx eax, byte [rsp + 0x20]
jmp 0x1400acc7c
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x38]
call fcn.1400a0780
nop
lea rcx, [rsp + 0x90]
call fcn.1400a0780
movzx eax, byte [rsp + 0x21]
jmp 0x1400acc7c
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.1400a2ba0
mov qword [rsp + 0x70], rax
lea rdx, [0x14009c1d0]
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, [0x1400a30e0]
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 0x1400acc11
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.1400a2ba0
mov qword [rsp + 0x88], rax
lea rdx, [0x1400a30e0]
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.1400a0760
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.1400a0780
nop
lea rcx, [rsp + 0x90]
call fcn.1400a0780
movzx eax, byte [rsp + 0x22]
jmp 0x1400acc7c
lea rcx, [rsp + 0x38]
call fcn.1400a0760
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400acc5a
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x38]
call fcn.1400a0780
nop
lea rcx, [rsp + 0x90]
call fcn.1400a0780
movzx eax, byte [rsp + 0x23]
jmp 0x1400acc7c
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x38]
call fcn.1400a0780
nop
lea rcx, [rsp + 0x90]
call fcn.1400a0780
movzx eax, byte [rsp + 0x24]
add rsp, 0xc8
ret