Function at 0x140012db0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14005a080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
xor r13d, r13d
lea rcx, [0x140049008]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x140013127
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140012e14
add r8, qword [rdi]
mov rdx, qword [rdi]
jmp 0x140012e1a
add r8, rdi
mov rdx, rdi
lea rcx, [rbp - 1]
call fcn.140013180
nop
lea r8, [rbp - 1]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x49]
call fcn.14000a350
mov rbx, rax
lea rax, [rbp - 1]
cmp rax, rbx
je 0x140012eb5
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x140012e84
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012e7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013160
call fcn.1400164f0
movdqa xmm0, xmmword [0x140052220]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], r13w
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 1], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0xf], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x140012ef5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ef0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013160
call fcn.1400164f0
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rdx, qword [rbp - 1]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r15, qword [rdi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 0x22
jb 0x140013166
cmp qword [rdi + 0x18], 0xf
jbe 0x140012f35
mov rdi, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
lea r14, [r15 + 0x22]
mov ebx, 0xf
lea rsi, [rbp - 0x21]
cmp r14, rbx
jbe 0x140012fd0
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140012f92
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400168bc
test rax, rax
je 0x14001316c
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140012fcc
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140012fba
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001315a
jmp 0x140012f73
test rcx, rcx
je 0x140012fc9
call fcn.1400168bc
mov rsi, rax
jmp 0x140012fcc
mov rsi, r13
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], rbx
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x140051ff0]
movups xmmword [rsi + 0x10], xmm1
movzx eax, word [0x140052000]
mov word [rsi + 0x20], ax
lea rcx, [rsi + 0x22]
mov r8, r15
mov rdx, rdi
call fcn.14003a3d0
mov byte [rsi + r14], 0
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rdx, qword [rbp - 0x21]
lea r8, [rbp - 0x29]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x140013037
cmp eax, 2
sete bl
jmp 0x14001309c
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x1f]
call rax
mov ebx, eax
mov edx, eax
lea rcx, str.___NtUnloadDriver_Status_0x_lx_n
call fcn.140001280
test ebx, ebx
je 0x140013077
lea rcx, str.____Driver_Unload_Failed___n
call fcn.140001280
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rdx, qword [rbp - 0x21]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x14001309a
xor bl, bl
jmp 0x14001309c
mov bl, 1
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x1400130d7
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400130d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001316c
call fcn.1400164f0
movdqa xmm0, xmmword [0x140052230]
movdqu xmmword [rbp - 0x11], xmm0
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x140013124
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001311f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013154
call fcn.1400164f0
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400164d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400202a0
nop
call fcn.1400019d0
nop
call fcn.1400202a0
int3
call fcn.140001a70
int3
call fcn.1400202a0
int3