Function at 0x140006560
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x140041060]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
xor r15d, r15d
mov qword [rbp - 9], r15
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], 0xf
mov byte [rbp - 9], r15b
lea r8d, [r15 + 0x34]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 9]
call fcn.140001c50
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400065ca
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 9]
call fcn.1400038e0
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x140046c78], eax
jle 0x140006637
lea rcx, [0x140046c78]
call fcn.140009740
cmp dword [0x140046c78], 0xffffffff
jne 0x140006637
lea rcx, [0x14003b718]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUnloadDriver
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140046c88], rax
lea rcx, [0x140046c78]
call fcn.1400096e0
cmp qword [0x140046c88], 0
je 0x140006920
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rdx, qword [rbp - 9]
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0x17]
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov rax, qword [0x140046c88]
lea rcx, [rbp + 0x27]
call rax
test eax, eax
sete r14b
lea rcx, [rbp - 0x59]
call fcn.140005660
nop
lea rdx, [rbp - 0x79]
mov rcx, rax
call fcn.140004ad0
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400066a5
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400038e0
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x29], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x19], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x140006716
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000698b
call fcn.140009540
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], 0xf
mov byte [rbp - 0x79], 0
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140006766
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006761
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006991
call fcn.140009540
movdqa xmm0, xmmword [0x14003b7f0]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r15w
lea rdi, [0x140046ca0]
mov eax, dword [rsi]
cmp dword [0x140046cc0], eax
jle 0x1400067e3
lea rcx, [0x140046cc0]
call fcn.140009740
cmp dword [0x140046cc0], 0xffffffff
jne 0x1400067e3
mov qword [0x140046ca0], r15
movdqa xmm0, xmmword [0x14003b800]
movdqu xmmword [0x140046cb0], xmm0
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
mov rcx, rdi
call fcn.140001c50
lea rcx, [0x14002bfe0]
call fcn.140009a88
nop
lea rcx, [0x140046cc0]
call fcn.1400096e0
cmp qword [0x140046cb8], 0x10
cmovae rdi, qword [0x140046ca0]
lea r8, [rbp - 0x39]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp qword [rbx + 0x18], 0x10
jb 0x140006811
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x140006835
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140006835
mov sil, 1
jmp 0x140006838
xor sil, sil
mov rdi, qword [rbp - 0x19]
lea rbx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rbx, qword [rbp - 0x29]
call fcn.140008a74
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x31], rdi
lea r8, [rbp - 0x39]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140004980
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.14000909c
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x140006997
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400068cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400068ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400069ab
call fcn.140009540
test r14b, r14b
je 0x1400068e1
test sil, sil
je 0x1400068e1
test bl, bl
je 0x1400068e1
mov bl, 1
jmp 0x1400068e3
xor bl, bl
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x140006922
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006919
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400069b1
call fcn.140009540
jmp 0x140006922
xor bl, bl
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x140006959
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006954
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006985
call fcn.140009540
movzx eax, bl
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140009520
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001100c
nop
call fcn.14001100c
nop
call fcn.14001100c
nop
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, str.remove
call fcn.1400053d0
nop
call fcn.14001100c
nop
call fcn.14001100c
int3