Function at 0x1400043f0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2208]
mov eax, 0x2308
call fcn.1400126a0
sub rsp, rax
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400354c0]
xor rax, rsp
mov qword [rbp + 0x21f0], rax
mov dword [rsp + 0x4c], r9d
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x68], rcx
mov ecx, dword [rbp + 0x2250]
mov dword [rsp + 0x70], ecx
mov rcx, rax
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
cmp word [rdi], 0x7d
je 0x140004ab7
mov dword [rsp + 0x48], 1
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 0x1400044b9
test esi, esi
je 0x1400045a3
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
cmp dword [rsp + 0x4c], 0
je 0x1400045a3
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rax
mov rcx, rdi
movzx eax, word [rdi]
test ax, ax
je 0x140004523
cmp ax, 0x5c
je 0x14000451a
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004501
jmp 0x140004523
test rcx, rcx
jne 0x140004a82
lea rbx, [0x140021950]
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004575
add rbx, 8
lea rax, [0x1400219b0]
cmp rbx, rax
jl 0x140004530
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rbp - 0x80], ebx
mov qword [rbp - 0x78], rbx
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140003cb0
mov qword [rsp + 0x78], rbx
test esi, esi
je 0x1400045a3
mov rdx, rdi
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
mov rdx, rdi
mov rcx, rsi
call fcn.140004ca0
jmp 0x1400047cd
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x1400045d5
mov dword [rsp + 0x48], eax
mov rdx, rdi
mov rcx, rsi
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
lea rdx, [0x140021818]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400046fb
lea rdx, [rbp + 0x1f0]
mov rcx, rsi
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
mov rdx, rdi
mov rcx, rsi
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
cmp word [rdi], 0x3d
jne 0x140004a82
cmp dword [rsp + 0x4c], 0
je 0x140004671
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x40], rax
xor eax, eax
mov dword [rbp - 0x38], eax
mov qword [rbp - 0x30], rax
mov r9, rdi
lea r8, [rbp + 0x1f0]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.140001c40
mov ebx, eax
mov qword [rbp - 0x40], 0
jmp 0x1400047cf
cmp dword [rbp + 0x2250], 0
jne 0x1400046eb
cmp dword [rsp + 0x48], 0
je 0x1400046eb
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], eax
mov qword [rbp - 0x60], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140003750
test eax, eax
jne 0x140004a68
lea rdx, [rbp + 0x1f0]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140004a4f
test rsi, rsi
je 0x1400046e6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.140004ca0
jmp 0x140004469
mov rcx, rdi
movzx eax, word [rdi]
test ax, ax
je 0x140004728
cmp ax, 0x5c
je 0x14000471f
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004706
jmp 0x140004728
test rcx, rcx
jne 0x140004a82
cmp dword [rsp + 0x4c], 0
je 0x14000482b
mov r9d, 0x2001f
mov r8, rdi
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140003750
test eax, eax
je 0x14000479f
mov r9d, 0x20019
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140003750
test eax, eax
je 0x14000479f
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140002700
test eax, eax
jne 0x140004aae
mov rdx, rdi
mov rcx, rsi
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
cmp word [rdi], 0x3d
jne 0x1400047d7
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140001c40
mov ebx, eax
test eax, eax
js 0x140004ab7
cmp word [rdi], 0x7b
jne 0x140004473
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400047e5
cmp rax, 1
jne 0x140004473
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x4c]
mov r8, qword [rsp + 0x58]
mov rdx, rdi
mov rcx, rsi
call fcn.1400043f0
mov ebx, eax
test eax, eax
js 0x140004ab7
mov rdx, rdi
mov rcx, rsi
jmp 0x140004464
cmp dword [rbp + 0x2250], 0
jne 0x140004854
mov r9d, 0x20019
mov r8, rdi
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140003750
mov esi, eax
test eax, eax
jne 0x140004859
jmp 0x140004863
mov esi, 2
mov dword [rbp + 0x2250], 1
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.140011990
test eax, eax
je 0x1400048a0
cmp eax, 0xc
je 0x140004a9f
cmp eax, 0x16
je 0x140004a94
cmp eax, 0x22
je 0x140004a94
cmp eax, 0x50
jne 0x140004a89
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140004ca0
mov ebx, eax
test eax, eax
js 0x140004ab7
cmp word [rdi], 0x7b
jne 0x140004939
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400048e0
cmp rax, 1
jne 0x140004939
mov eax, dword [rbp + 0x2250]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.1400043f0
mov ebx, eax
test eax, eax
jns 0x140004922
cmp dword [rbp + 0x2250], 0
je 0x140004ab7
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call fcn.140003590
mov ebx, eax
test eax, eax
js 0x140004ab7
mov eax, dword [rsp + 0x70]
mov dword [rbp + 0x2250], eax
cmp esi, 2
je 0x140004473
test esi, esi
je 0x14000495d
test eax, eax
je 0x140004aaa
jmp 0x140004473
test eax, eax
je 0x1400049c3
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call fcn.140003140
test eax, eax
je 0x1400049c3
lea rsi, [0x140021950]
nop dword [rax + rax]
mov rdx, qword [rsi]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004473
add rsi, 8
lea rax, [0x1400219b0]
cmp rsi, rax
jl 0x140004980
cmp dword [rsp + 0x48], 0
je 0x140004473
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.140003cb0
jmp 0x140004473
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call fcn.140003140
mov esi, eax
xor eax, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400049ed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x60], 0
test eax, eax
jne 0x140004aae
cmp dword [rsp + 0x48], eax
je 0x140004473
test esi, esi
jne 0x140004473
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x48], 0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x58]
call fcn.140002c00
mov qword [rbp - 0x58], 0
test eax, eax
jne 0x140004aae
jmp 0x140004473
mov ecx, eax
call fcn.140002240
mov ebx, eax
test rsi, rsi
je 0x140004ab7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004ab7
mov ecx, eax
call fcn.140002240
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140004ab7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004ab7
mov ebx, 0x80020009
jmp 0x140004ab7
mov ecx, 0x80004005
call fcn.140002430
int3
mov ecx, 0x80070057
call fcn.140002430
int3
mov ecx, 0x8007000e
call fcn.140002430
int3
mov ecx, esi
jmp 0x140004ab0
mov ecx, eax
call fcn.140002240
mov ebx, eax
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140004aca
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21f0]
xor rcx, rsp
call fcn.140012700
add rsp, 0x2308
pop rdi
pop rsi
pop rbx
pop rbp
ret