Function at 0x1400139dc
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.1400e77f0
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x14010d0f8]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x68], r9d
mov r15, r8
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r12, rcx
xor eax, eax
mov esi, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
call fcn.1400137f0
test eax, eax
mov ebx, eax
js 0x14001417d
cmp word [rdi], 0x7d
je 0x14001417d
mov eax, 1
mov r13d, eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
xor ebx, ebx
mov r14d, ebx
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140013aa0
test r14d, r14d
je 0x140013b79
mov rdx, rdi
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001417d
cmp dword [rsp + 0x68], edx
je 0x140013b77
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140013aed
cmp ax, 0x5c
je 0x140013af4
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140013ad5
jmp 0x140013afd
test rcx, rcx
jne 0x1400141d6
lea rbx, [0x1400ee690]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140013b3a
add rbx, 8
lea rax, [0x1400ee6f0]
cmp rbx, rax
jl 0x140013b04
mov qword [rbp - 0x70], r15
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140013568
xor ebx, ebx
test r14d, r14d
je 0x140013b79
mov rdx, rdi
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
test eax, eax
js 0x14001417d
mov rdx, rdi
mov rcx, r12
call fcn.1400134b8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001417d
mov r14d, dword [rsp + 0x68]
jmp 0x140013e5e
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140013bab
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
test eax, eax
js 0x14001417d
lea rdx, [0x1400f1c98]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x140013cc0
lea rdx, [rbp + 0x1d0]
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
test eax, eax
js 0x14001417d
mov rdx, rdi
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001417d
cmp word [rdi], 0x3d
jne 0x1400141d6
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140013c3a
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x70], r15
mov r9, rdi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.140012f24
mov ebx, eax
xor edx, edx
jmp 0x140013e56
cmp dword [rbp + 0x2250], edx
jne 0x140013cb0
test r13d, r13d
je 0x140013cb0
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140014174
mov r14, qword [rsp + 0x60]
lea rdx, [rbp + 0x1d0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x1400141b7
test r14, r14
je 0x140013cb0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rdi
mov rcx, r12
call fcn.1400134b8
jmp 0x140013a40
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140013ce2
cmp ax, 0x5c
je 0x140013ce9
call qword [sym.imp.USER32.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140013cc8
jmp 0x140013cf2
test rcx, rcx
jne 0x1400141d6
mov r14d, dword [rsp + 0x68]
test r14d, r14d
je 0x140013ead
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r13d, 0x2001f
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140013d5b
mov eax, ebx
test rsi, rsi
je 0x140013d49
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x140013e1d
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140013dad
mov eax, ebx
test rsi, rsi
je 0x140013d9f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
je 0x140013e1d
mov qword [rsp + 0x60], rbx
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x140014174
mov eax, edx
test rsi, rsi
je 0x140013e0b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
test eax, eax
jne 0x140014174
mov rdx, rdi
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001417d
cmp word [rdi], 0x3d
jne 0x140013e5e
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.140012f24
mov ebx, eax
xor edx, edx
mov rsi, qword [rsp + 0x78]
test eax, eax
js 0x14001417d
cmp word [rdi], 0x7b
jne 0x140013a4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013e6c
mov ecx, 1
cmp rax, rcx
jne 0x140013a4a
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400139dc
mov ebx, eax
test eax, eax
js 0x14001417d
mov rdx, rdi
mov rcx, r12
jmp 0x140013a3b
mov ebx, dword [rbp + 0x2250]
test ebx, ebx
jne 0x140013f10
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov r14d, eax
xor edx, edx
test eax, eax
jne 0x140013f16
mov r14d, edx
test rsi, rsi
je 0x140013f04
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r14d, eax
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
jmp 0x140013f16
mov r14d, 2
mov r15d, ebx
test r14d, r14d
mov eax, 1
cmovne r15d, eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
test eax, eax
je 0x140013f69
cmp eax, 0xc
je 0x1400141e2
cmp eax, 0x16
je 0x1400141f8
cmp eax, 0x22
je 0x1400141f8
cmp eax, 0x50
jne 0x1400141ed
mov rdx, rdi
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
test eax, eax
js 0x14001417d
mov rdx, rdi
mov rcx, r12
call fcn.1400134b8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001417d
cmp word [rdi], 0x7b
jne 0x140013fee
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013f9f
mov ecx, 1
cmp rax, rcx
jne 0x140013fee
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1400139dc
mov ebx, eax
test eax, eax
jns 0x140013fd7
test r15d, r15d
je 0x14001417d
mov rdx, rdi
mov rcx, r12
call fcn.1400137f0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001417d
cmp r14d, 2
je 0x140014005
test r14d, r14d
je 0x14001400f
cmp dword [rbp + 0x2250], edx
je 0x1400141dd
mov r15, qword [rsp + 0x70]
jmp 0x140013a4a
cmp dword [rbp + 0x2250], edx
je 0x1400140c2
mov dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x1400140c2
cmp dword [rsp + 0x60], edx
jbe 0x1400140c2
lea r14, [0x1400ee690]
mov rdx, qword [r14]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140014005
add r14, 8
lea rax, [0x1400ee6f0]
cmp r14, rax
jl 0x140014076
test r13d, r13d
je 0x140014005
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140013568
mov rsi, qword [rsp + 0x78]
jmp 0x140014005
mov dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor edx, edx
mov r14d, edx
test eax, eax
jne 0x14001411b
cmp dword [rsp + 0x60], edx
seta r14b
test rsi, rsi
je 0x14001413c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor edx, edx
mov esi, edx
mov qword [rsp + 0x78], rdx
test eax, eax
jne 0x140014174
test r13d, r13d
je 0x140014005
mov r15, qword [rsp + 0x70]
test r14d, r14d
jne 0x140013a4a
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x70], r15
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x70]
call fcn.1400136fc
test eax, eax
je 0x140013a4a
mov ecx, eax
call fcn.1400137d8
mov ebx, eax
test rsi, rsi
je 0x140014191
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.1400e6ab0
add rsp, 0x22e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.1400137d8
mov ebx, eax
test r14, r14
je 0x14001417d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14001417d
mov ebx, 0x80020009
jmp 0x14001417d
mov ecx, r14d
jmp 0x140014176
mov ecx, 0x8007000e
call fcn.140013490
int3
mov ecx, 0x80004005
call fcn.140013490
int3
mov ecx, 0x80070057
call fcn.140013490
int3