Function at 0x140012330
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, [0x140015700]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r13, rax
test rax, rax
je 0x140012705
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0x34
jb 0x140012723
mov qword [rbp + 0x48], rsi
cmp qword [rsi + 0x18], 7
jbe 0x140012393
mov rax, qword [rsi]
mov qword [rbp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea r12, [r15 + 0x34]
mov edi, 7
mov r14d, edi
lea rbx, [rbp - 0x20]
movabs rax, 0x7fffffffffffffff
mov edx, 0xa
cmp r12, rdi
jbe 0x140012436
mov r14, r12
or r14, rdi
cmp r14, rcx
jbe 0x14001240d
mov r14, rcx
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x14001242a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001272f
mov rcx, rax
call fcn.140012988
test rax, rax
je 0x1400126f6
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140012432
cmp r14, rdx
cmovb r14, rdx
lea rcx, [r14 + 1]
cmp rcx, rax
ja 0x14001272f
add rcx, rcx
jne 0x1400123d8
xor ebx, ebx
jmp 0x140012432
call fcn.140012988
mov rbx, rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r14
movaps xmm0, xmmword [str.RegistryMachineSystemCurrentControlSetServices_]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x14001e8b0]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14001e8c0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x14001e8d0]
movups xmmword [rbx + 0x30], xmm1
movaps xmm0, xmmword [0x14001e8e0]
movups xmmword [rbx + 0x40], xmm0
movaps xmm1, xmmword [0x14001e8f0]
movups xmmword [rbx + 0x50], xmm1
movsd xmm0, qword [0x14001e900]
movsd qword [rbx + 0x60], xmm0
lea rcx, [rbx + 0x68]
lea r8, [r15 + r15]
mov rdx, qword [rbp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov word [rbx + r12*2], ax
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova 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 0x140012729
cmp qword [rsi + 0x18], 7
jbe 0x1400124e4
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 rbx, [rbp - 0x40]
cmp r14, 7
jbe 0x140012590
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x140012557
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140012584
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001271d
mov rcx, rax
call fcn.140012988
test rax, rax
je 0x1400126a2
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001258c
cmp rdi, 0xa
mov eax, 0xa
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14001271d
add rcx, rcx
jne 0x140012522
xor eax, eax
jmp 0x140012589
call fcn.140012988
mov rbx, rax
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], rdi
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [0x14001e800]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [0x14001e810]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [0x14001e820]
movups xmmword [rbx + 0x30], xmm1
mov eax, dword [0x14001e830]
mov dword [rbx + 0x40], eax
lea rcx, [rbx + 0x44]
lea r8, [r15 + r15]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov word [rbx + r14*2], di
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
lea r8, [rbp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14001260e
cmp eax, 2
sete bl
jmp 0x14001266b
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x50]
call rax
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x140012651
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x14001266b
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x140012669
xor bl, bl
jmp 0x14001266b
mov bl, 1
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x1400126ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400126a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400126a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400129c4
movdqa xmm0, xmmword [0x14001e960]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], di
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140012702
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400126fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400126fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400129c4
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.1400066c0
nop
call fcn.140006760
nop
call fcn.140006760
nop
call fcn.1400066c0
int3