Function at 0x140004ae0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1128]
mov eax, 0x1228
call fcn.14004bd60
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1400991b0]
xor rax, rsp
mov qword [rbp + 0x1110], rax
mov dword [rsp + 0x60], r9d
mov r15, r8
mov qword [rsp + 0x68], r8
mov rdi, rdx
mov r12, rcx
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
xor r14d, r14d
mov qword [rbp - 0x80], r14
and dword [rbp - 0x78], eax
and qword [rbp - 0x70], rax
call fcn.140003cc8
test eax, eax
mov ebx, eax
js 0x140004f03
cmp byte [rdi], 0x7d
je 0x140004f03
mov eax, 1
mov r13d, eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor esi, esi
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004b9b
test esi, esi
je 0x140004c6e
mov rdx, rdi
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
cmp dword [rsp + 0x60], 0
je 0x140004c6e
and dword [rbp - 0x54], 0
and qword [rbp - 0x60], 0
and dword [rbp - 0x58], 0
and qword [rbp - 0x50], 0
mov rcx, rdi
mov al, byte [rdi]
jmp 0x140004be3
cmp al, 0x5c
je 0x140004be9
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004bd4
jmp 0x140004bf2
test rcx, rcx
jne 0x140005275
lea rbx, str.__b_
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004c37
add rbx, 8
lea rax, [0x1400848a0]
cmp rbx, rax
jl 0x140004bf9
mov qword [rbp - 0x60], r15
and dword [rbp - 0x58], 0
and qword [rbp - 0x50], 0
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140002a3c
and qword [rbp - 0x60], 0
test esi, esi
je 0x140004c6e
mov rdx, rdi
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
mov rdx, rdi
mov rcx, r12
call fcn.1400044b4
mov ebx, eax
test eax, eax
js 0x140004f03
mov esi, dword [rsp + 0x60]
jmp 0x140004f6c
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004c9a
xor r13d, r13d
mov rdx, rdi
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
lea rdx, [0x140082b38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004da2
lea rdx, [rbp + 0x110]
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
mov rdx, rdi
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
cmp byte [rdi], 0x3d
jne 0x140005275
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004d28
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x48], r15
and dword [rbp - 0x40], eax
and qword [rbp - 0x38], rax
mov r9, rdi
lea r8, [rbp + 0x110]
lea rdx, [rbp - 0x48]
mov rcx, r12
call fcn.140003e50
mov ebx, eax
and qword [rbp - 0x48], 0
jmp 0x140004f68
cmp dword [rbp + 0x1190], 0
jne 0x140004d92
test r13d, r13d
je 0x140004d92
and dword [rbp - 0x24], 0
and qword [rbp - 0x30], 0
and dword [rbp - 0x28], 0
and qword [rbp - 0x20], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x30]
call fcn.140002940
test eax, eax
jne 0x140005254
lea rdx, [rbp + 0x110]
mov rsi, qword [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x14000523d
test rsi, rsi
je 0x140004d92
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.1400044b4
jmp 0x140004b4c
mov rcx, rdi
mov al, byte [rdi]
jmp 0x140004db8
cmp al, 0x5c
je 0x140004dbe
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004da9
jmp 0x140004dc7
test rcx, rcx
jne 0x140005275
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004fbb
mov r13d, 0x2001f
mov r9d, r13d
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140002940
xor r14d, r14d
test eax, eax
je 0x140004f36
lea r9d, [r13 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140002940
test eax, eax
je 0x140004f36
mov qword [rsp + 0x78], r14
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140004e9c
cmp qword [rbx], r14
je 0x140004e8f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140004e95
lea rdx, str.RegCreateKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor ecx, ecx
test rax, rax
je 0x140004e95
mov qword [rsp + 0x50], rcx
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call r10
jmp 0x140004ed0
cmp dword [rbx + 8], r14d
jne 0x140004e9c
mov eax, 1
jmp 0x140004ed0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140004ef2
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140004ee3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x78]
mov qword [rbp - 0x80], r14
and dword [rbp - 0x78], 0
jmp 0x140004ef6
mov r14, qword [rbp - 0x80]
test eax, eax
je 0x140004f3a
mov ecx, eax
call fcn.140002654
mov ebx, eax
test r14, r14
je 0x140004f11
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1110]
xor rcx, rsp
call fcn.14004b000
add rsp, 0x1228
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rbp - 0x80]
mov rdx, rdi
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
cmp byte [rdi], 0x3d
jne 0x140004f6c
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.140003e50
mov ebx, eax
mov r14, qword [rbp - 0x80]
test eax, eax
js 0x140004f03
cmp byte [rdi], 0x7b
jne 0x140004b56
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140004f79
mov ecx, 1
cmp rax, rcx
jne 0x140004b56
and dword [rsp + 0x20], 0
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140004ae0
mov ebx, eax
test eax, eax
js 0x140004f03
mov rdx, rdi
mov rcx, r12
jmp 0x140004b47
mov ebx, dword [rbp + 0x1190]
test ebx, ebx
jne 0x140004fe2
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140002940
mov esi, eax
mov r14, qword [rbp - 0x80]
jmp 0x140004fe7
mov esi, 2
mov r15d, ebx
test esi, esi
mov eax, 1
cmovne r15d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp]
call fcn.140056294
test eax, eax
je 0x140005032
cmp eax, 0xc
je 0x140005286
cmp eax, 0x16
je 0x14000529c
cmp eax, 0x22
je 0x14000529c
cmp eax, 0x50
jne 0x140005291
mov rdx, rdi
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
mov rdx, rdi
mov rcx, r12
call fcn.1400044b4
mov ebx, eax
test eax, eax
js 0x140004f03
cmp byte [rdi], 0x7b
jne 0x1400050b2
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140005065
mov ecx, 1
cmp rax, rcx
jne 0x1400050b2
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140004ae0
mov ebx, eax
test eax, eax
jns 0x14000509d
test r15d, r15d
je 0x140004f03
mov rdx, rdi
mov rcx, r12
call fcn.140003cc8
mov ebx, eax
test eax, eax
js 0x140004f03
cmp esi, 2
je 0x1400050c8
test esi, esi
je 0x1400050d2
cmp dword [rbp + 0x1190], 0
je 0x14000527f
mov r15, qword [rsp + 0x68]
jmp 0x140004b56
cmp dword [rbp + 0x1190], 0
je 0x14000517e
and dword [rsp + 0x78], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000517e
cmp dword [rsp + 0x78], eax
jbe 0x14000517e
lea rsi, str.__b_
mov rdx, qword [rsi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400050c8
add rsi, 8
lea rax, [0x1400848a0]
cmp rsi, rax
jl 0x14000513a
test r13d, r13d
je 0x1400050c8
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140002a3c
mov r14, qword [rbp - 0x80]
jmp 0x1400050c8
and dword [rsp + 0x78], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
test eax, eax
jne 0x1400051d6
cmp dword [rsp + 0x78], esi
seta sil
xor eax, eax
test r14, r14
je 0x1400051ed
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r14d, r14d
mov qword [rbp - 0x80], r14
and dword [rbp - 0x78], 0
test eax, eax
jne 0x140004efa
test r13d, r13d
je 0x1400050c8
mov r15, qword [rsp + 0x68]
test esi, esi
jne 0x140004b56
and dword [rbp - 0xc], esi
mov qword [rbp - 0x18], r15
and dword [rbp - 0x10], esi
and qword [rbp - 8], 0
lea rdx, [rbp]
lea rcx, [rbp - 0x18]
call fcn.140002830
and qword [rbp - 0x18], 0
test eax, eax
jne 0x140004efa
jmp 0x140004b56
mov ecx, eax
call fcn.140002654
mov ebx, eax
test rsi, rsi
je 0x140004f03
mov rcx, rsi
jmp 0x14000526a
mov ecx, eax
call fcn.140002654
mov ebx, eax
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140004f03
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004f03
mov ebx, 0x80020009
jmp 0x140004f03
mov ecx, esi
jmp 0x140004efc
mov ecx, 0x8007000e
call fcn.1400024a0
int3
mov ecx, 0x80004005
call fcn.1400024a0
int3
mov ecx, 0x80070057
call fcn.1400024a0
int3