Function at 0x1400a5ef0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.1401afbb0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x64], r9d
mov r14, r8
mov qword [rsp + 0x68], r8
mov rdi, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x70], r12d
mov qword [rbp - 0x68], r12
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
cmp word [rdi], 0x7d
je 0x1400a6561
mov ecx, 1
mov r13d, ecx
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400a5fa2
test esi, esi
je 0x1400a6089
mov rdx, rdi
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
cmp dword [rsp + 0x64], 0
je 0x1400a6089
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rax
mov rcx, rdi
movzx eax, word [rdi]
test ax, ax
je 0x1400a6002
nop dword [rax]
cmp ax, 0x5c
je 0x1400a5ff9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400a5fe0
jmp 0x1400a6002
test rcx, rcx
jne 0x1400a65c8
lea rbx, str.pA__
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400a6052
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x1400a6010
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], 0
mov qword [rbp - 0x80], 0
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.1400a5a40
test esi, esi
je 0x1400a6089
mov rdx, rdi
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
mov rdx, rdi
mov rcx, r15
call fcn.1400a5880
mov ebx, eax
test eax, eax
js 0x1400a6561
mov esi, dword [rsp + 0x64]
jmp 0x1400a628a
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400a60b5
xor r13d, r13d
mov rdx, rdi
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
lea rdx, [0x140404140]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400a61c1
lea rdx, [rbp + 0x1c0]
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
mov rdx, rdi
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
cmp word [rdi], 0x3d
jne 0x1400a65c8
mov esi, dword [rsp + 0x64]
test esi, esi
je 0x1400a6148
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], 0
mov qword [rbp - 0x80], 0
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rsp + 0x70]
mov rcx, r15
call fcn.1400a5290
mov ebx, eax
test eax, eax
js 0x1400a6561
jmp 0x1400a628a
cmp dword [rbp + 0x2240], 0
jne 0x1400a61b1
test r13d, r13d
je 0x1400a61b1
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.1400a5930
test eax, eax
jne 0x1400a65ad
lea rdx, [rbp + 0x1c0]
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x1400a6594
test rsi, rsi
je 0x1400a61b1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r15
call fcn.1400a5880
jmp 0x1400a5f52
mov rcx, rdi
movzx eax, word [rdi]
test ax, ax
je 0x1400a61f2
nop dword [rax]
cmp ax, 0x5c
je 0x1400a61e9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400a61d0
jmp 0x1400a61f2
test rcx, rcx
jne 0x1400a65c8
mov esi, dword [rsp + 0x64]
test esi, esi
je 0x1400a62e2
mov r9d, 0x2001f
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.1400a5930
test eax, eax
je 0x1400a624f
mov r9d, 0x20019
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.1400a5930
test eax, eax
je 0x1400a624f
mov dword [rsp + 0x28], 0x2001f
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.1400a5100
test eax, eax
jne 0x1400a65cf
mov rdx, rdi
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a65d8
cmp word [rdi], 0x3d
jne 0x1400a6286
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, r15
call fcn.1400a5290
mov ebx, eax
test eax, eax
js 0x1400a65d8
mov r12, qword [rbp - 0x78]
cmp word [rdi], 0x7b
jne 0x1400a5f5c
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400a62a0
cmp rax, 1
jne 0x1400a5f5c
mov dword [rsp + 0x20], 0
mov r9d, esi
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.1400a5ef0
mov ebx, eax
test eax, eax
js 0x1400a6561
mov rdx, rdi
mov rcx, r15
jmp 0x1400a5f4d
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x1400a6309
mov r9d, 0x20019
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x78]
call fcn.1400a5930
mov esi, eax
mov r12, qword [rbp - 0x78]
jmp 0x1400a630e
mov esi, 2
mov r14d, ebx
test esi, esi
mov eax, 1
cmovne r14d, eax
lea r9, [rax - 2]
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1402e6a3c
test eax, eax
je 0x1400a6359
cmp eax, 0xc
je 0x1400a65e5
cmp eax, 0x16
je 0x1400a65fb
cmp eax, 0x22
je 0x1400a65fb
cmp eax, 0x50
jne 0x1400a65f0
mov rdx, rdi
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
mov rdx, rdi
mov rcx, r15
call fcn.1400a5880
mov ebx, eax
test eax, eax
js 0x1400a6561
cmp word [rdi], 0x7b
jne 0x1400a63da
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400a6390
cmp rax, 1
jne 0x1400a63da
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.1400a5ef0
mov ebx, eax
test eax, eax
jns 0x1400a63c5
test r14d, r14d
je 0x1400a6561
mov rdx, rdi
mov rcx, r15
call fcn.1400a5d10
mov ebx, eax
test eax, eax
js 0x1400a6561
cmp esi, 2
je 0x1400a63f0
test esi, esi
je 0x1400a63fa
cmp dword [rbp + 0x2240], 0
je 0x1400a65de
mov r14, qword [rsp + 0x68]
jmp 0x1400a5f5c
xor r14d, r14d
cmp dword [rbp + 0x2240], r14d
je 0x1400a64a9
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400a64a9
cmp dword [rsp + 0x60], r14d
jbe 0x1400a64a9
lea rsi, str.pA__
nop
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400a63f0
add rsi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rsi, rax
jl 0x1400a6460
test r13d, r13d
je 0x1400a63f0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.1400a5a40
mov r12, qword [rbp - 0x78]
mov r14, qword [rsp + 0x68]
jmp 0x1400a5f5c
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, r14d
test eax, eax
jne 0x1400a64fb
cmp dword [rsp + 0x60], eax
seta sil
mov eax, r14d
test r12, r12
je 0x1400a6513
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, r14
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x70], r14d
test eax, eax
jne 0x1400a6558
mov r14, qword [rsp + 0x68]
test r13d, r13d
je 0x1400a5f5c
test esi, esi
jne 0x1400a5f5c
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], esi
mov qword [rbp - 0x80], 0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400a5bc0
test eax, eax
je 0x1400a5f5c
mov ecx, eax
call fcn.1400a5d00
mov ebx, eax
test r12, r12
je 0x1400a656f
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1401aed20
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.1400a5d00
mov ebx, eax
test rsi, rsi
je 0x1400a6561
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400a6561
mov ecx, eax
call fcn.1400a5d00
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400a6561
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400a6561
mov ebx, 0x80020009
jmp 0x1400a6561
mov ecx, eax
call fcn.1400a5d00
mov ebx, eax
mov r12, qword [rbp - 0x78]
jmp 0x1400a6561
mov ecx, esi
jmp 0x1400a655a
mov ecx, 0x8007000e
call fcn.140080080
int3
mov ecx, 0x80004005
call fcn.140080080
int3
mov ecx, 0x80070057
call fcn.140080080
int3