Function at 0x1400a4330
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rsi, rcx
lea rcx, [0x140320fb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x50], rax
test rax, rax
je 0x1400a46c2
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0x34
jb 0x1400a46e0
mov r13, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400a438f
mov r13, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea r12, [r15 + 0x34]
mov ebx, 7
mov edi, ebx
lea r14, [rbp - 0x20]
lea eax, [rbx + 3]
cmp r12, rbx
jbe 0x1400a43dc
mov rdi, r12
or rdi, rbx
cmp rdi, rcx
jbe 0x1400a43c5
mov rdi, rcx
jmp 0x1400a43cc
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
call fcn.1400116b0
mov r14, rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], rdi
movaps xmm0, xmmword [str.RegistryMachineSystemCurrentControlSetServices_]
movups xmmword [r14], xmm0
movaps xmm1, xmmword [0x140324420]
movups xmmword [r14 + 0x10], xmm1
movaps xmm0, xmmword [0x140324430]
movups xmmword [r14 + 0x20], xmm0
movaps xmm1, xmmword [0x140324440]
movups xmmword [r14 + 0x30], xmm1
movaps xmm0, xmmword [0x140324450]
movups xmmword [r14 + 0x40], xmm0
movaps xmm1, xmmword [0x140324460]
movups xmmword [r14 + 0x50], xmm1
movsd xmm0, qword [0x140324470]
movsd qword [r14 + 0x60], xmm0
lea rcx, [r14 + 0x68]
lea r8, [r15 + r15]
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
xor r13d, r13d
mov word [r14 + r12*2], r13w
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0x22
jb 0x1400a46da
cmp qword [rsi + 0x18], 8
jb 0x1400a4491
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea r14, [r15 + 0x22]
lea rdi, [rbp - 0x40]
cmp r14, 7
jbe 0x1400a44dc
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x1400a44bf
mov rbx, rcx
jmp 0x1400a44cc
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.1400116b0
mov rdi, rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], rbx
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [rdi], xmm0
movaps xmm1, xmmword [0x1403242a0]
movups xmmword [rdi + 0x10], xmm1
movaps xmm0, xmmword [0x1403242b0]
movups xmmword [rdi + 0x20], xmm0
movaps xmm1, xmmword [0x1403242c0]
movups xmmword [rdi + 0x30], xmm1
mov eax, dword [0x1403242d0]
mov dword [rdi + 0x40], eax
lea rcx, [rdi + 0x44]
lea r8, [r15 + r15]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + r14*2], r13w
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea r8, [rbp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1400a455b
cmp eax, 2
sete bl
jmp 0x1400a4627
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x50]
call rax
mov ebx, 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.140010de0
lea rdx, [0x140003070]
mov rcx, rax
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 edx, ebx
mov rcx, rax
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]
lea rdx, [0x140010da0]
mov rcx, rax
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]
test ebx, ebx
je 0x1400a4602
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.140010de0
lea rdx, [0x140010da0]
mov rcx, rax
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 rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x1400a4627
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x1400a4625
xor bl, bl
jmp 0x1400a4627
mov bl, 1
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1400a466a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a4665
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a4665
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008d6e4
movdqa xmm0, xmmword [0x140327a10]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r13w
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400a46bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a46ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a46ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008d6e4
movzx eax, bl
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140002e20
nop
call fcn.140002e20
int3