Function at 0x140016951
Capabilities:
Delete registry key

Disassembly:
jmp 0x1400296c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4a8]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x14007efd3]
call fcn.140016b68
mov dword [rbp + 4], 0xc0000022
mov qword [rbp + 0x48], 0
lea rdx, [rbp + 0x28]
xor ecx, ecx
call fcn.14001675d
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002973b
jmp 0x14002992c
mov edx, 0x208
lea rcx, [rbp + 0x90]
call fcn.140016825
lea rdx, str.lzx32
lea rcx, [rbp + 0x90]
call fcn.1400161f9
lea rdx, str._shellopen
lea rcx, [rbp + 0x90]
call fcn.140016af0
lea rdx, [0x14004e5a0]
lea rcx, [rbp + 0x90]
call fcn.140016af0
lea rdx, str.command
lea rcx, [rbp + 0x90]
call fcn.140016af0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002981f
mov rcx, qword [rbp + 0x460]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x68]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0x460]
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x48]
call fcn.14001605f
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 4], 0
jge 0x14002982a
jmp 0x14002992c
mov qword [rbp + 0x48], 0
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x90]
call fcn.1400161f9
lea rdx, [0x14004e5a0]
lea rcx, [rbp + 0x90]
call fcn.140016af0
lea rdx, str.CurVer
lea rcx, [rbp + 0x90]
call fcn.140016af0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140029922
lea rcx, str.lzx32
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.lzx32
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x48]
call fcn.14001605f
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140029907
xor edx, edx
mov rcx, qword [rbp + 0x458]
call fcn.140016a37
test eax, eax
je 0x140029907
mov dword [rbp + 4], 0
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
test eax, eax
jne 0x140029722
lea rdx, str.lzx32
mov rcx, qword [rbp + 0x28]
call fcn.140016bcc
cmp qword [rbp + 0x28], 0
je 0x14002994d
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14004f9c0]
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x428]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret