Function at 0x1400cba60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
lea rdx, [0x140179fe0]
lea rcx, [rsp + 0xe0]
call fcn.1400b8550
mov rcx, rax
call fcn.1400bedc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400cbaa5
xor al, al
jmp 0x1400cbda9
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x17e]
call fcn.1400cb130
mov rcx, rax
call fcn.1400cbec0
mov r8, qword [rsp + 0x200]
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.1400caf40
nop
lea rcx, [rsp + 0xb0]
call fcn.14001f200
mov rdx, rax
lea rcx, [rsp + 0xd0]
call sub.ntdll.dll_RtlInitUnicodeString
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x136]
call fcn.1400b87f0
mov rcx, rax
call fcn.1400befc0
mov r8, qword [rsp + 0x200]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400caf40
nop
lea rcx, [rsp + 0x38]
call fcn.14001f200
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 0x1400cbba8
cmp dword [rsp + 0x28], 2
jne 0x1400cbb81
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x38]
call fcn.14001f250
nop
lea rcx, [rsp + 0xb0]
call fcn.14001f250
movzx eax, byte [rsp + 0x20]
jmp 0x1400cbda9
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x38]
call fcn.14001f250
nop
lea rcx, [rsp + 0xb0]
call fcn.14001f250
movzx eax, byte [rsp + 0x21]
jmp 0x1400cbda9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
lea rcx, [rsp + 0xeb]
call fcn.1400cb190
mov rcx, rax
call fcn.1400cbe60
mov rdx, rax
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 + 0xd0]
call qword [rsp + 0x68]
mov dword [rsp + 0x2c], eax
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0x78], rax
lea rdx, str.___NtUnloadDriver_Status_0x
lea rcx, [rsp + 0x117]
call fcn.1400cb0a0
mov rcx, rax
call fcn.1400cbde0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.1400b4300
mov qword [rsp + 0x80], rax
lea rdx, [0x1400c0440]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rsp + 0x88], rax
mov edx, dword [rsp + 0x2c]
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___long_int____ptr64]
mov qword [rsp + 0x90], rax
lea rdx, [0x1400b8be0]
mov rcx, qword [rsp + 0x90]
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 0x1400cbd3e
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rsp + 0xa0], rax
lea rdx, str.____Driver_Unload_Failed__
lea rcx, [rsp + 0xfb]
call fcn.1400b8640
mov rcx, rax
call fcn.1400bee00
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.1400b4300
mov qword [rsp + 0xa8], rax
lea rdx, [0x1400b8be0]
mov rcx, qword [rsp + 0xa8]
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.14001f200
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x38]
call fcn.14001f250
nop
lea rcx, [rsp + 0xb0]
call fcn.14001f250
movzx eax, byte [rsp + 0x22]
jmp 0x1400cbda9
lea rcx, [rsp + 0x38]
call fcn.14001f200
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400cbd87
mov byte [rsp + 0x23], 0
lea rcx, [rsp + 0x38]
call fcn.14001f250
nop
lea rcx, [rsp + 0xb0]
call fcn.14001f250
movzx eax, byte [rsp + 0x23]
jmp 0x1400cbda9
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x38]
call fcn.14001f250
nop
lea rcx, [rsp + 0xb0]
call fcn.14001f250
movzx eax, byte [rsp + 0x24]
add rsp, 0x1f8
ret