Function at 0x1400107e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rdi, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x140010ba7
mov rsi, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14001082b
mov rbx, qword [rdi]
add rsi, rbx
jmp 0x140010831
add rsi, rdi
mov rbx, rdi
xor r13d, r13d
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r13w
mov rdx, rsi
sub rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140006c00
lea rax, [rbp - 0x39]
mov qword [rbp + 0x77], rax
cmp rbx, rsi
je 0x1400108a5
movsx r9d, byte [rbx]
mov rcx, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x21]
cmp rcx, rdx
jae 0x140010894
lea rax, [rcx + 1]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x39]
cmp rdx, 8
cmovae rax, qword [rbp - 0x39]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r13w
jmp 0x14001089d
lea rcx, [rbp - 0x39]
call fcn.1400091a0
inc rbx
cmp rbx, rsi
jne 0x140010861
lea r8, [rbp - 0x39]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 7]
call fcn.1400089c0
mov rbx, rax
lea rax, [rbp - 0x39]
cmp rax, rbx
je 0x140010935
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140010905
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010900
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010bce
call fcn.140014b18
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r13w
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140010975
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010970
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010bce
call fcn.140014b18
lea rdx, str.RtlInitUnicodeString
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x49]
call rax
mov r15, qword [rdi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 0x22
jb 0x140010bd4
cmp qword [rdi + 0x18], 0x10
jb 0x1400109c1
mov rdi, qword [rdi]
mov qword [rbp - 9], r13
mov qword [rbp - 1], r13
lea r14, [r15 + 0x22]
mov ebx, 0xf
lea rsi, [rbp - 0x19]
cmp r14, rbx
jbe 0x140010a51
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140010a13
mov rbx, rcx
movabs rax, 0x8000000000000027
mov rcx, rax
call fcn.140014db8
test rax, rax
je 0x140010bda
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140010a4d
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140010a3b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140010bc8
jmp 0x1400109f4
test rcx, rcx
je 0x140010a4a
call fcn.140014db8
mov rsi, rax
jmp 0x140010a4d
mov rsi, r13
mov qword [rbp - 0x19], rsi
mov qword [rbp - 9], r14
mov qword [rbp - 1], rbx
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x140052018]
movups xmmword [rsi + 0x10], xmm1
movzx eax, word [0x140052028]
mov word [rsi + 0x20], ax
lea rcx, [rsi + 0x22]
mov r8, r15
mov rdx, rdi
call fcn.140016c30
mov byte [rsi + r14], 0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
lea r8, [rbp + 0x6f]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x140010ab8
cmp eax, 2
sete bl
jmp 0x140010b1d
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x49]
call rax
mov ebx, eax
mov edx, eax
lea rcx, str.___NtUnloadDriver_Status_0x_lx_n
call fcn.1400011d0
test ebx, ebx
je 0x140010af8
lea rcx, str.____Driver_Unload_Failed___n
call fcn.1400011d0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rdx, qword [rbp - 0x19]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x140010b1b
xor bl, bl
jmp 0x140010b1d
mov bl, 1
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x140010b58
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010b53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010bda
call fcn.140014b18
mov qword [rbp - 9], r13
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140010ba4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010b9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010bc2
call fcn.140014b18
movzx eax, bl
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001eb84
nop
call fcn.140001320
nop
call fcn.14001eb84
int3
call fcn.1400013c0
int3
call fcn.14001eb84
int3