Function at 0x140089b3c
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x60
and qword [rax - 0x20], 0
and qword [rax - 0x28], 0
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov rcx, qword [str.P5_n_]
lea r15, str.P5_n_
mov r13d, 2
cmp rcx, r15
je 0x140089ba8
test byte [rcx + 0x1c], r13b
je 0x140089ba8
cmp byte [rcx + 0x19], 5
jb 0x140089ba8
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x67]
lea r8, [0x140008c50]
call fcn.14000ffa8
lea rax, [rsp + 0x58]
lea rdx, [0x14000e530]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140089c03
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089f40
test byte [rcx + 0x1c], r13b
je 0x140089f40
cmp byte [rcx + 0x19], r13b
jb 0x140089f40
mov edx, 0x6a
jmp 0x140089f2d
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], 0x2000000
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x140089c85
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089e63
test byte [rcx + 0x1c], r13b
je 0x140089e63
cmp byte [rcx + 0x19], r13b
jb 0x140089e63
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c50]
mov edx, 0x6b
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.140011a18
jmp 0x140089e63
mov rcx, qword [rsp + 0x50]
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14000e020]
mov r9, rdi
mov edx, 1
call fcn.14007b2b4
test eax, eax
jne 0x140089cdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089e63
test byte [rcx + 0x1c], r13b
je 0x140089e63
cmp byte [rcx + 0x19], r13b
jb 0x140089e63
mov edx, 0x6c
jmp 0x140089e1e
mov rcx, qword [rsp + 0x50]
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14000dfe8]
mov r9, rsi
mov edx, r13d
call fcn.14007b2b4
test eax, eax
jne 0x140089d33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089e63
test byte [rcx + 0x1c], r13b
je 0x140089e63
cmp byte [rcx + 0x19], r13b
jb 0x140089e63
mov edx, 0x6d
jmp 0x140089e1e
mov rcx, qword [rsp + 0x50]
or esi, 0xffffffff
mov r9, rbp
lea ebp, [rsi + 2]
lea r8, [0x14000e000]
mov dword [rsp + 0x20], esi
mov edx, ebp
call fcn.14007b2b4
test eax, eax
jne 0x140089d8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089e63
test byte [rcx + 0x1c], r13b
je 0x140089e63
cmp byte [rcx + 0x19], r13b
jb 0x140089e63
lea edx, [rsi + 0x6f]
jmp 0x140089e1e
mov rcx, qword [rsp + 0x50]
lea r8, [0x14000e040]
mov r9, r12
mov edx, ebp
mov dword [rsp + 0x20], esi
call fcn.14007b2b4
test eax, eax
jne 0x140089ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089e63
test byte [rcx + 0x1c], r13b
je 0x140089e63
cmp byte [rcx + 0x19], r13b
jb 0x140089e63
mov edx, 0x6f
jmp 0x140089e1e
mov r8d, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x14000dfd0]
call fcn.14007b1f0
test eax, eax
jne 0x140089e33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089e63
test byte [rcx + 0x1c], r13b
je 0x140089e63
cmp byte [rcx + 0x19], r13b
jb 0x140089e63
mov edx, 0x70
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c50]
mov r9d, eax
call fcn.1400100e0
jmp 0x140089e63
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089eb8
test byte [rcx + 0x1c], r13b
je 0x140089eb8
cmp byte [rcx + 0x19], 5
jb 0x140089eb8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c50]
mov edx, 0x71
mov r9, rdi
call fcn.14001011c
test ebx, ebx
je 0x140089eb8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140089efc
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x140089eb8
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089eb8
test byte [rcx + 0x1c], r13b
je 0x140089eb8
cmp byte [rcx + 0x19], r13b
jb 0x140089eb8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c50]
mov edx, 0x72
mov r9d, eax
call fcn.1400100e0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140089efc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140089efc
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089efc
test byte [rcx + 0x1c], r13b
je 0x140089efc
cmp byte [rcx + 0x19], r13b
jb 0x140089efc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c50]
mov edx, 0x73
mov r9d, eax
call fcn.1400100e0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140089f40
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140089f40
mov rcx, qword [str.P5_n_]
cmp rcx, r15
je 0x140089f40
test byte [rcx + 0x1c], r13b
je 0x140089f40
cmp byte [rcx + 0x19], r13b
jb 0x140089f40
mov edx, 0x74
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008c50]
mov r9d, eax
call fcn.1400100e0
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret