Function at 0x140004ad0
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.14004b4b0
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1400971b0]
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.140003cb8
test eax, eax
mov ebx, eax
js 0x140004ef3
cmp byte [rdi], 0x7d
je 0x140004ef3
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 0x140004b8b
test esi, esi
je 0x140004c5e
mov rdx, rdi
mov rcx, r12
call fcn.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
cmp dword [rsp + 0x60], 0
je 0x140004c5e
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 0x140004bd3
cmp al, 0x5c
je 0x140004bd9
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004bc4
jmp 0x140004be2
test rcx, rcx
jne 0x140005265
lea rbx, str._e_b_
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004c27
add rbx, 8
lea rax, [0x140083850]
cmp rbx, rax
jl 0x140004be9
mov qword [rbp - 0x60], r15
and dword [rbp - 0x58], 0
and qword [rbp - 0x50], 0
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140002a2c
and qword [rbp - 0x60], 0
test esi, esi
je 0x140004c5e
mov rdx, rdi
mov rcx, r12
call fcn.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
mov rdx, rdi
mov rcx, r12
call fcn.1400044a4
mov ebx, eax
test eax, eax
js 0x140004ef3
mov esi, dword [rsp + 0x60]
jmp 0x140004f5c
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004c8a
xor r13d, r13d
mov rdx, rdi
mov rcx, r12
call fcn.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
lea rdx, [0x140081b38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004d92
lea rdx, [rbp + 0x110]
mov rcx, r12
call fcn.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
mov rdx, rdi
mov rcx, r12
call fcn.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
cmp byte [rdi], 0x3d
jne 0x140005265
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004d18
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.140003e40
mov ebx, eax
and qword [rbp - 0x48], 0
jmp 0x140004f58
cmp dword [rbp + 0x1190], 0
jne 0x140004d82
test r13d, r13d
je 0x140004d82
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.140002930
test eax, eax
jne 0x140005244
lea rdx, [rbp + 0x110]
mov rsi, qword [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x14000522d
test rsi, rsi
je 0x140004d82
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.1400044a4
jmp 0x140004b3c
mov rcx, rdi
mov al, byte [rdi]
jmp 0x140004da8
cmp al, 0x5c
je 0x140004dae
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004d99
jmp 0x140004db7
test rcx, rcx
jne 0x140005265
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004fab
mov r13d, 0x2001f
mov r9d, r13d
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140002930
xor r14d, r14d
test eax, eax
je 0x140004f26
lea r9d, [r13 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140002930
test eax, eax
je 0x140004f26
mov qword [rsp + 0x78], r14
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140004e8c
cmp qword [rbx], r14
je 0x140004e7f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140004e85
lea rdx, str.RegCreateKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor ecx, ecx
test rax, rax
je 0x140004e85
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 0x140004ec0
cmp dword [rbx + 8], r14d
jne 0x140004e8c
mov eax, 1
jmp 0x140004ec0
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 0x140004ee2
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140004ed3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x78]
mov qword [rbp - 0x80], r14
and dword [rbp - 0x78], 0
jmp 0x140004ee6
mov r14, qword [rbp - 0x80]
test eax, eax
je 0x140004f2a
mov ecx, eax
call fcn.140002644
mov ebx, eax
test r14, r14
je 0x140004f01
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1110]
xor rcx, rsp
call fcn.14004a750
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.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
cmp byte [rdi], 0x3d
jne 0x140004f5c
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.140003e40
mov ebx, eax
mov r14, qword [rbp - 0x80]
test eax, eax
js 0x140004ef3
cmp byte [rdi], 0x7b
jne 0x140004b46
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140004f69
mov ecx, 1
cmp rax, rcx
jne 0x140004b46
and dword [rsp + 0x20], 0
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140004ad0
mov ebx, eax
test eax, eax
js 0x140004ef3
mov rdx, rdi
mov rcx, r12
jmp 0x140004b37
mov ebx, dword [rbp + 0x1190]
test ebx, ebx
jne 0x140004fd2
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140002930
mov esi, eax
mov r14, qword [rbp - 0x80]
jmp 0x140004fd7
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.1400559e4
test eax, eax
je 0x140005022
cmp eax, 0xc
je 0x140005276
cmp eax, 0x16
je 0x14000528c
cmp eax, 0x22
je 0x14000528c
cmp eax, 0x50
jne 0x140005281
mov rdx, rdi
mov rcx, r12
call fcn.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
mov rdx, rdi
mov rcx, r12
call fcn.1400044a4
mov ebx, eax
test eax, eax
js 0x140004ef3
cmp byte [rdi], 0x7b
jne 0x1400050a2
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140005055
mov ecx, 1
cmp rax, rcx
jne 0x1400050a2
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140004ad0
mov ebx, eax
test eax, eax
jns 0x14000508d
test r15d, r15d
je 0x140004ef3
mov rdx, rdi
mov rcx, r12
call fcn.140003cb8
mov ebx, eax
test eax, eax
js 0x140004ef3
cmp esi, 2
je 0x1400050b8
test esi, esi
je 0x1400050c2
cmp dword [rbp + 0x1190], 0
je 0x14000526f
mov r15, qword [rsp + 0x68]
jmp 0x140004b46
cmp dword [rbp + 0x1190], 0
je 0x14000516e
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 0x14000516e
cmp dword [rsp + 0x78], eax
jbe 0x14000516e
lea rsi, str._e_b_
mov rdx, qword [rsi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400050b8
add rsi, 8
lea rax, [0x140083850]
cmp rsi, rax
jl 0x14000512a
test r13d, r13d
je 0x1400050b8
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140002a2c
mov r14, qword [rbp - 0x80]
jmp 0x1400050b8
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 0x1400051c6
cmp dword [rsp + 0x78], esi
seta sil
xor eax, eax
test r14, r14
je 0x1400051dd
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 0x140004eea
test r13d, r13d
je 0x1400050b8
mov r15, qword [rsp + 0x68]
test esi, esi
jne 0x140004b46
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.140002820
and qword [rbp - 0x18], 0
test eax, eax
jne 0x140004eea
jmp 0x140004b46
mov ecx, eax
call fcn.140002644
mov ebx, eax
test rsi, rsi
je 0x140004ef3
mov rcx, rsi
jmp 0x14000525a
mov ecx, eax
call fcn.140002644
mov ebx, eax
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140004ef3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004ef3
mov ebx, 0x80020009
jmp 0x140004ef3
mov ecx, esi
jmp 0x140004eec
mov ecx, 0x8007000e
call fcn.140002490
int3
mov ecx, 0x80004005
call fcn.140002490
int3
mov ecx, 0x80070057
call fcn.140002490
int3