Function at 0x140016951
Capabilities:
Delete registry key

Disassembly:
jmp 0x140029690
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 [0x140073340]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x14007cfd3]
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 0x14002970b
jmp 0x1400298fc
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, [0x14004d560]
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 0x1400297ef
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 0x1400297fa
jmp 0x1400298fc
mov qword [rbp + 0x48], 0
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x90]
call fcn.1400161f9
lea rdx, [0x14004d560]
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 0x1400298f2
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 0x1400298d7
xor edx, edx
mov rcx, qword [rbp + 0x458]
call fcn.140016a37
test eax, eax
je 0x1400298d7
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 0x1400296f2
lea rdx, str.lzx32
mov rcx, qword [rbp + 0x28]
call fcn.140016bcc
cmp qword [rbp + 0x28], 0
je 0x14002991d
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, [0x14004e980]
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