Function at 0x14000413c
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2228]
mov eax, 0x2328
call fcn.14004bd90
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x14009f1b0]
xor rax, rsp
mov qword [rbp + 0x2210], 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 r14d, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
call fcn.14000333c
test eax, eax
mov ebx, eax
js 0x140004576
cmp word [rdi], 0x7d
je 0x140004576
mov eax, 1
mov r13d, eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov esi, ebx
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400041f6
test esi, esi
je 0x1400042d0
mov rdx, rdi
mov rcx, r12
call fcn.14000333c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004576
cmp dword [rsp + 0x60], edx
je 0x1400042ce
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x50], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000423d
cmp ax, 0x5c
je 0x140004244
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000422b
jmp 0x14000424d
test rcx, rcx
jne 0x1400048e0
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004293
add rbx, 8
lea rax, [0x14008a2d0]
cmp rbx, rax
jl 0x140004254
mov qword [rbp - 0x60], r15
xor ebx, ebx
mov dword [rbp - 0x58], ebx
mov qword [rbp - 0x50], rbx
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140002a9c
mov qword [rbp - 0x60], rbx
jmp 0x140004295
xor ebx, ebx
test esi, esi
je 0x1400042d0
mov rdx, rdi
mov rcx, r12
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x140004576
mov rdx, rdi
mov rcx, r12
call fcn.140003abc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004576
mov esi, dword [rsp + 0x60]
jmp 0x1400045e4
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400042fc
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x140004576
lea rdx, [0x1400887b8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400043fd
lea rdx, [rbp + 0x210]
mov rcx, r12
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x140004576
mov rdx, rdi
mov rcx, r12
call fcn.14000333c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004576
cmp word [rdi], 0x3d
jne 0x1400048e0
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x14000438a
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], r15
mov dword [rbp - 0x40], edx
mov qword [rbp - 0x38], rdx
mov r9, rdi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x48]
mov rcx, r12
call fcn.1400034f4
mov ebx, eax
xor edx, edx
mov qword [rbp - 0x48], rdx
jmp 0x1400045e0
cmp dword [rbp + 0x2290], edx
jne 0x1400043ed
test r13d, r13d
je 0x1400043ed
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x20], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x30]
call fcn.1400029a0
test eax, eax
jne 0x1400048bf
lea rdx, [rbp + 0x210]
mov rsi, qword [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x1400048a8
test rsi, rsi
je 0x1400043ed
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.140003abc
jmp 0x1400041a4
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140004417
cmp ax, 0x5c
je 0x14000441e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004405
jmp 0x140004427
test rcx, rcx
jne 0x1400048e0
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004633
mov r13d, 0x2001f
mov r9d, r13d
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1400029a0
xor r14d, r14d
test eax, eax
je 0x1400045a9
lea r9d, [r13 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1400029a0
test eax, eax
je 0x1400045a9
mov qword [rsp + 0x78], r14
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x14000450a
cmp qword [rbx], r14
je 0x1400044fd
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
test rax, rax
jne 0x1400044a4
lea eax, [rdx + 1]
jmp 0x140004540
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor ecx, ecx
test rax, rax
je 0x140004503
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 0x14000453e
cmp dword [rbx + 8], r14d
jne 0x14000450a
mov eax, 1
jmp 0x14000453e
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_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x140004565
mov eax, edx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140004557
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14, qword [rsp + 0x78]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], edx
jmp 0x140004569
mov r14, qword [rbp - 0x80]
test eax, eax
je 0x1400045ad
mov ecx, eax
call fcn.1400026b4
mov ebx, eax
test r14, r14
je 0x140004584
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.14004b030
add rsp, 0x2328
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.14000333c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004576
cmp word [rdi], 0x3d
jne 0x1400045e4
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.1400034f4
mov ebx, eax
xor edx, edx
mov r14, qword [rbp - 0x80]
test eax, eax
js 0x140004576
cmp word [rdi], 0x7b
jne 0x1400041ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1400045f2
mov ecx, 1
cmp rax, rcx
jne 0x1400041ae
mov dword [rsp + 0x20], edx
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.14000413c
mov ebx, eax
test eax, eax
js 0x140004576
mov rdx, rdi
mov rcx, r12
jmp 0x14000419f
mov ebx, dword [rbp + 0x2290]
test ebx, ebx
jne 0x14000465a
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.1400029a0
mov esi, eax
mov r14, qword [rbp - 0x80]
jmp 0x14000465f
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.14005b290
test eax, eax
je 0x1400046aa
cmp eax, 0xc
je 0x1400048f1
cmp eax, 0x16
je 0x140004907
cmp eax, 0x22
je 0x140004907
cmp eax, 0x50
jne 0x1400048fc
mov rdx, rdi
mov rcx, r12
call fcn.14000333c
mov ebx, eax
test eax, eax
js 0x140004576
mov rdx, rdi
mov rcx, r12
call fcn.140003abc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004576
cmp word [rdi], 0x7b
jne 0x14000472f
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x1400046e0
mov ecx, 1
cmp rax, rcx
jne 0x14000472f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.14000413c
mov ebx, eax
test eax, eax
jns 0x140004718
test r15d, r15d
je 0x140004576
mov rdx, rdi
mov rcx, r12
call fcn.14000333c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004576
cmp esi, 2
je 0x140004744
test esi, esi
je 0x14000474e
cmp dword [rbp + 0x2290], edx
je 0x1400048ea
mov r15, qword [rsp + 0x68]
jmp 0x1400041ae
cmp dword [rbp + 0x2290], edx
je 0x1400047ef
mov dword [rsp + 0x78], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
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 edx, edx
test eax, eax
jne 0x1400047ef
cmp dword [rsp + 0x78], edx
jbe 0x1400047ef
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004744
add rsi, 8
lea rax, [0x14008a2d0]
cmp rsi, rax
jl 0x1400047af
test r13d, r13d
je 0x140004744
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140002a9c
mov r14, qword [rbp - 0x80]
jmp 0x140004744
mov dword [rsp + 0x78], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
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 edx, edx
mov esi, edx
test eax, eax
jne 0x140004841
cmp dword [rsp + 0x78], edx
seta sil
mov eax, edx
test r14, r14
je 0x14000485a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
test eax, eax
jne 0x14000456d
test r13d, r13d
je 0x140004744
mov r15, qword [rsp + 0x68]
test esi, esi
jne 0x1400041ae
and qword [rbp - 0x10], 0
mov qword [rbp - 0x18], r15
mov qword [rbp - 8], rdx
lea rdx, [rbp]
lea rcx, [rbp - 0x18]
call fcn.140002890
xor edx, edx
mov qword [rbp - 0x18], rdx
test eax, eax
jne 0x14000456d
jmp 0x1400041ae
mov ecx, eax
call fcn.1400026b4
mov ebx, eax
test rsi, rsi
je 0x140004576
mov rcx, rsi
jmp 0x1400048d5
mov ecx, eax
call fcn.1400026b4
mov ebx, eax
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140004576
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004576
mov ebx, 0x80020009
jmp 0x140004576
mov ecx, esi
jmp 0x14000456f
mov ecx, 0x8007000e
call fcn.140002500
int3
mov ecx, 0x80004005
call fcn.140002500
int3
mov ecx, 0x80070057
call fcn.140002500
int3