Function at 0x140051880
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x1400e5040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
lea r8d, [rdi + 0x34]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 7]
call fcn.140001c30
nop
lea rbx, [0x140139af8]
mov rdx, rbx
cmp qword [0x140139b10], 0xf
cmova rdx, qword [0x140139af8]
mov r8, qword [0x140139b08]
lea rcx, [rbp + 7]
call fcn.140004e50
mov esi, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x14013c318], eax
jle 0x140051960
lea rcx, [0x14013c318]
call fcn.1400b3a0c
cmp dword [0x14013c318], 0xffffffff
jne 0x140051960
lea rcx, [0x1400ba068]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtUnloadDriver
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013c330], rax
lea rcx, [0x14013c318]
call fcn.1400b39a0
cmp qword [0x14013c330], 0
je 0x140051b67
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdx, qword [rbp + 7]
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 0x37]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea rcx, [rbp + 0x37]
call qword [0x14013c330]
mov r14d, eax
lea rcx, [rbp - 0x49]
call fcn.140050a70
nop
lea rdx, [rbp - 0x69]
mov rcx, rax
call fcn.140050830
nop
mov rdx, rbx
cmp qword [0x140139b10], 0xf
cmova rdx, qword [0x140139af8]
mov r8, qword [0x140139b08]
mov rcx, rax
call fcn.140004e50
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rbp - 0x69]
call fcn.140001b10
nop
lea rcx, [rbp - 0x49]
call fcn.14004a960
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rdi, [0x14013c340]
mov eax, dword [rsi + rax]
cmp dword [0x14013c360], eax
jle 0x140051a93
lea rcx, [0x14013c360]
call fcn.1400b3a0c
cmp dword [0x14013c360], 0xffffffff
jne 0x140051a93
xorps xmm0, xmm0
movups xmmword [0x14013c340], xmm0
xorps xmm1, xmm1
movdqu xmmword [0x14013c350], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
mov rcx, rdi
call fcn.140001c30
lea rcx, [0x1400b82f0]
call fcn.1400b3d7c
nop
lea rcx, [0x14013c360]
call fcn.1400b39a0
cmp qword [0x14013c358], 0xf
cmova rdi, qword [0x14013c340]
lea r8, [rbp - 0x29]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp qword [0x140139b10], 0xf
cmova rbx, qword [0x140139af8]
mov rdx, rbx
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x140051aeb
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140051aeb
mov sil, 1
jmp 0x140051aee
xor sil, sil
mov rdi, qword [rbp - 9]
lea rbx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rbx, qword [rbp - 0x19]
call fcn.1400b2bdc
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rdi
lea r8, [rbp - 0x29]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140048550
nop
lea rcx, [rsp + 0x20]
cmp qword [rbp - 0x71], 7
cmova rcx, qword [rsp + 0x20]
call fcn.1400b33bc
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x140051b9e
lea rcx, [rsp + 0x20]
call fcn.14004a960
test r14d, r14d
jne 0x140051b5a
test sil, sil
je 0x140051b5a
test bl, bl
je 0x140051b5a
mov bl, 1
jmp 0x140051b5c
xor bl, bl
lea rcx, [rbp - 0x19]
call fcn.140001b10
jmp 0x140051b69
xor bl, bl
lea rcx, [rbp + 7]
call fcn.140001b10
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400b3750
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
shr rbx, 0x20
lea r8, [rsp + 0x20]
mov edx, ebx
lea rcx, [0x1400c30e8]
call fcn.140048ad0
int3