Function at 0x1400087f4
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
xor r12d, r12d
lea rdx, [rbp + 0x1a8]
xor ecx, ecx
mov qword [rbp + 0x1b0], r12
mov r14b, r12b
mov dword [rbp + 0x1a0], r12d
mov r15, r9
mov esi, 0xc0000022
call fcn.14000b9d8
mov rbx, qword [rbp + 0x1a8]
lea r13, str.command
test eax, eax
js 0x1400089b1
xor eax, eax
lea rdi, [rsp + 0x50]
mov ecx, 0x208
lea rdx, str.AppX82a6gwre4fdg3bt635tn5ctqjf8msdd2
rep stosb byte [rdi], al
lea rcx, [rsp + 0x50]
call fcn.140001a5c
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rdx, [0x14001f628]
lea rcx, [rsp + 0x50]
call fcn.140001a20
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rax, [rbp + 0x1b0]
mov edi, 0x2000000
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400088fe
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, str.pe386
mov rcx, rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test eax, eax
sete r14b
lea rdx, [0x1400207bc]
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rax, [rbp + 0x1a0]
mov qword [rbp + 0x1b0], r12
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x50]
lea rax, [rbp + 0x1b0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400089b1
mov rcx, qword [rbp + 0x1b0]
mov rdx, r15
call fcn.14000807c
test eax, eax
js 0x1400089b1
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, r13
mov qword [rbp + 0x1b0], r12
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
mov r9d, 5
mov dword [rsp + 0x20], 0x2ee0
xor r8d, r8d
lea rcx, str.WSReset.exe
xor edx, edx
call fcn.14000a0b0
test eax, eax
cmovne esi, r12d
mov rcx, qword [rbp + 0x1b0]
test rcx, rcx
je 0x1400089c3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.AppX82a6gwre4fdg3bt635tn5ctqjf8msdd2
lea rcx, [rsp + 0x50]
call fcn.140001a5c
lea rdx, str._shellopen
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rdx, [0x14001f628]
lea rcx, [rsp + 0x50]
call fcn.140001a20
test r14b, r14b
je 0x140008a55
lea rdi, [rsp + 0x50]
cmp word [rsp + 0x50], r12w
je 0x140008a12
add rdi, 2
cmp word [rdi], r12w
jne 0x140008a08
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.pe386
mov word [rdi], r12w
lea rcx, [rsp + 0x50]
call fcn.140001a20
mov r8, r13
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
jmp 0x140008a70
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140001a20
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x140008a7e
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x2b8]
mov eax, esi
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret