Function at 0x140016951
Capabilities:
Delete registry key

Disassembly:
jmp 0x140029950
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 [0x140074400]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x14007dfd3]
call fcn.140016b68
nop
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 0x1400299cc
jmp 0x140029bc8
mov edx, 0x208
lea rcx, [rbp + 0x90]
call fcn.140016825
nop
lea rdx, str.lzx32
lea rcx, [rbp + 0x90]
call fcn.1400161f9
nop
lea rdx, str._shellopen
lea rcx, [rbp + 0x90]
call fcn.140016af0
nop
lea rdx, [0x14004e560]
lea rcx, [rbp + 0x90]
call fcn.140016af0
nop
lea rdx, str.command
lea rcx, [rbp + 0x90]
call fcn.140016af0
nop
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 0x140029ab6
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]
nop
cmp dword [rbp + 4], 0
jge 0x140029ac1
jmp 0x140029bc8
mov qword [rbp + 0x48], 0
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x90]
call fcn.1400161f9
nop
lea rdx, [0x14004e560]
lea rcx, [rbp + 0x90]
call fcn.140016af0
nop
lea rdx, str.CurVer
lea rcx, [rbp + 0x90]
call fcn.140016af0
nop
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 0x140029bbe
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 0x140029ba1
xor edx, edx
mov rcx, qword [rbp + 0x458]
call fcn.140016a37
test eax, eax
je 0x140029ba1
mov dword [rbp + 4], 0
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
xor eax, eax
test eax, eax
jne 0x1400299b3
lea rdx, str.lzx32
mov rcx, qword [rbp + 0x28]
call fcn.140016bd1
nop
cmp qword [rbp + 0x28], 0
je 0x140029beb
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x14004f980]
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