Function at 0x140094f20
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 rdi, rcx
xor ebx, ebx
lea rcx, [0x14030ebd8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x50], rax
test rax, rax
je 0x1400952ae
mov r15, qword [rdi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0x34
jb 0x1400952cc
mov r13, rdi
cmp qword [rdi + 0x18], 8
jb 0x140094f81
mov r13, qword [rdi]
mov qword [rbp - 0x20], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
lea r12, [r15 + 0x34]
mov ebx, 7
mov esi, ebx
lea r14, [rbp - 0x20]
lea eax, [rbx + 3]
cmp r12, rbx
jbe 0x140094fcb
mov rsi, r12
or rsi, rbx
cmp rsi, rcx
jbe 0x140094fb4
mov rsi, rcx
jmp 0x140094fbb
cmp rsi, rax
cmovb rsi, rax
lea rdx, [rsi + 1]
call fcn.14000ceb0
mov r14, rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], rsi
movaps xmm0, xmmword [str.RegistryMachineSystemCurrentControlSetServices_]
movups xmmword [r14], xmm0
movaps xmm1, xmmword [0x140312030]
movups xmmword [r14 + 0x10], xmm1
movaps xmm0, xmmword [0x140312040]
movups xmmword [r14 + 0x20], xmm0
movaps xmm1, xmmword [0x140312050]
movups xmmword [r14 + 0x30], xmm1
movaps xmm0, xmmword [0x140312060]
movups xmmword [r14 + 0x40], xmm0
movaps xmm1, xmmword [0x140312070]
movups xmmword [r14 + 0x50], xmm1
movsd xmm0, qword [0x140312080]
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 [rdi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0x22
jb 0x1400952c6
cmp qword [rdi + 0x18], 8
jb 0x140095080
mov rdi, qword [rdi]
mov qword [rbp - 0x40], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
lea r14, [r15 + 0x22]
lea rsi, [rbp - 0x40]
cmp r14, 7
jbe 0x1400950c8
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x1400950ab
mov rbx, rcx
jmp 0x1400950b8
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.14000ceb0
mov rsi, rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], rbx
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [0x140311f20]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [0x140311f30]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [0x140311f40]
movups xmmword [rsi + 0x30], xmm1
mov eax, dword [0x140311f50]
mov dword [rsi + 0x40], eax
lea rcx, [rsi + 0x44]
lea r8, [r15 + r15]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsi + 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 0x140095147
cmp eax, 2
sete bl
jmp 0x140095213
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.14000c8a0
lea rdx, [0x140002ef0]
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, [0x14000c860]
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 0x1400951ee
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.14000c8a0
lea rdx, [0x14000c860]
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 0x140095213
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 0x140095211
xor bl, bl
jmp 0x140095213
mov bl, 1
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140095256
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140095251
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140095251
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e124
movdqa xmm0, xmmword [0x1403156b0]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r13w
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400952ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400952a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400952a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007e124
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.140002dc0
nop
call fcn.140002dc0
int3