Function at 0x1400064c0
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

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.14003de70
sub rsp, rax
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x68], r8
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x70], rcx
xor r12d, r12d
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r12d
xor r13d, r13d
mov qword [rbp - 0x78], r13
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
cmp word [r14], 0x7d
je 0x140006f98
mov r15d, 1
lea rdx, str.Delete
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
lea rdx, str.ForceRemove
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140006568
test edi, edi
jne 0x140006670
mov rdx, r14
mov rcx, rsi
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
cmp dword [rsp + 0x70], 0
je 0x140006670
xor edx, edx
mov qword [rbp - 0x60], rdx
mov dword [rbp - 0x58], edx
mov qword [rbp - 0x50], rdx
mov rcx, r14
movzx eax, word [r14]
test ax, ax
je 0x1400065c3
cmp ax, 0x5c
je 0x1400065ba
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400065a1
jmp 0x1400065c3
test rcx, rcx
jne 0x140006f52
lea rbx, str.p__a_
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000662b
add rbx, 8
lea rax, str.HKCR
cmp rbx, rax
jl 0x1400065d0
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.140004c50
mov qword [rbp - 0x60], 0
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
test edi, edi
jne 0x140006669
mov rdx, r14
mov rcx, rsi
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f60
mov rdx, r14
mov rcx, rsi
call fcn.140005dd0
mov ebx, eax
test eax, eax
js 0x140006f60
xor r15d, r15d
mov dword [rbp - 0x58], r15d
mov edi, dword [rsp + 0x70]
jmp 0x140006b25
mov dword [rbp - 0x58], 0
lea rdx, str.NoRemove
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000669c
xor r15d, r15d
mov rdx, r14
mov rcx, rsi
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
lea rdx, [0x140070e78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400067fd
lea rdx, [rbp + 0x210]
mov rcx, rsi
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
mov rdx, r14
mov rcx, rsi
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
cmp word [r14], 0x3d
jne 0x140006f59
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x14000674a
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov dword [rbp - 0x40], r15d
mov qword [rbp - 0x38], r15
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], r15d
mov qword [rbp - 0x38], r15
mov r9, r14
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.1400057e0
mov ebx, eax
mov qword [rbp - 0x48], r15
mov dword [rbp - 0x40], r15d
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x40], r15d
test eax, eax
js 0x140006f98
jmp 0x140006b25
cmp dword [rbp + 0x2290], 0
jne 0x1400067ed
test r15d, r15d
je 0x1400067ed
xor r15d, r15d
mov edi, r15d
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x28], r15d
mov qword [rbp - 0x20], r15
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400067ac
mov dword [rbp - 0x28], r15d
mov rdi, qword [rsp + 0x60]
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], r15d
mov ecx, r15d
test eax, eax
cmovne ecx, eax
test ecx, ecx
jne 0x140006f6b
lea rdx, [rbp + 0x210]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140006f69
test rdi, rdi
je 0x1400067e9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x28], r15d
mov rdx, r14
mov rcx, rsi
call fcn.140005dd0
jmp 0x14000651f
mov rcx, r14
movzx eax, word [r14]
test ax, ax
je 0x140006832
nop dword [rax]
cmp ax, 0x5c
je 0x140006829
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140006810
jmp 0x140006832
test rcx, rcx
jne 0x140006f59
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140006b80
xor r15d, r15d
mov qword [rsp + 0x60], r15
test r13, r13
je 0x1400068ba
cmp qword [r13], r15
je 0x1400068ad
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000690f
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1400068b3
mov qword [rsp + 0x30], r15
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x1400068db
cmp dword [r13 + 8], r15d
jne 0x1400068ba
mov eax, 1
jmp 0x1400068db
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000690f
mov eax, r15d
test r12, r12
je 0x1400068f5
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], r15d
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r15d
test eax, eax
je 0x140006ae3
mov qword [rsp + 0x60], r15
test r13, r13
je 0x140006988
cmp qword [r13], r15
je 0x14000697b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400069dd
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140006981
mov qword [rsp + 0x30], r15
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x1400069a9
cmp dword [r13 + 8], r15d
jne 0x140006988
mov eax, 1
jmp 0x1400069a9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400069dd
mov eax, r15d
test r12, r12
je 0x1400069c3
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], r15d
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r15d
test eax, eax
je 0x140006ae3
mov qword [rsp + 0x60], r15
test r13, r13
je 0x140006a72
cmp qword [r13], r15
je 0x140006a65
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006f8a
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140006a6b
mov qword [rsp + 0x50], r15
mov rax, qword [r13]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x140006aab
cmp dword [r13 + 8], r15d
jne 0x140006a72
mov eax, 1
jmp 0x140006aab
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140006f8f
mov eax, r15d
test r12, r12
je 0x140006ac9
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], r15d
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r15d
test eax, eax
jne 0x140006f8f
mov rdx, r14
mov rcx, rsi
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
cmp word [r14], 0x3d
jne 0x140006b25
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.1400057e0
mov ebx, eax
mov r12, qword [rsp + 0x78]
test eax, eax
js 0x140006f98
mov r13, qword [rbp - 0x78]
cmp word [r14], 0x7b
jne 0x140006529
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140006b40
cmp rax, 1
jne 0x140006529
mov dword [rsp + 0x20], r15d
mov r9d, edi
mov r8, r12
mov rdx, r14
mov rcx, rsi
call fcn.1400064c0
mov ebx, eax
test eax, eax
js 0x140006f98
mov rdx, r14
mov rcx, rsi
jmp 0x14000651a
mov ebx, dword [rbp + 0x2290]
test ebx, ebx
jne 0x140006c5d
xor esi, esi
mov qword [rsp + 0x60], rsi
test r13, r13
je 0x140006c0d
cmp qword [r13], rsi
je 0x140006c00
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140006bba
lea edi, [rbx + 1]
jmp 0x140006c62
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140006c06
mov qword [rsp + 0x30], rsi
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call r10
jmp 0x140006c2e
cmp dword [r13 + 8], esi
jne 0x140006c0d
mov edi, 1
jmp 0x140006c30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x140006c62
mov edi, esi
test r12, r12
je 0x140006c4b
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x80], esi
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], esi
jmp 0x140006c62
mov edi, 2
mov esi, 1
test edi, edi
cmove esi, ebx
mov r9, 0xffffffffffffffff
mov r8, r14
mov edx, 0x104
lea rcx, [rbp]
call fcn.14004967c
test eax, eax
je 0x140006cac
cmp eax, 0xc
je 0x140006fea
cmp eax, 0x16
je 0x140007000
cmp eax, 0x22
je 0x140007000
cmp eax, 0x50
jne 0x140006ff5
mov rdx, r14
mov rcx, qword [rbp - 0x70]
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
mov rdx, r14
mov rcx, qword [rbp - 0x70]
call fcn.140005dd0
mov ebx, eax
test eax, eax
js 0x140006f98
cmp word [r14], 0x7b
jne 0x140006d40
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140006cf0
cmp rax, 1
jne 0x140006d40
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, r12
mov rdx, r14
mov rcx, qword [rbp - 0x70]
call fcn.1400064c0
mov ebx, eax
test eax, eax
jns 0x140006d25
test esi, esi
je 0x140006f98
mov rdx, r14
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call fcn.140005630
mov ebx, eax
test eax, eax
js 0x140006f98
jmp 0x140006d44
mov rsi, qword [rbp - 0x70]
cmp edi, 2
je 0x140006529
test edi, edi
je 0x140006d65
cmp dword [rbp + 0x2290], 0
jne 0x140006529
mov ecx, edi
jmp 0x140006f91
xor edi, edi
cmp dword [rbp + 0x2290], edi
je 0x140006e1a
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140006e1a
mov eax, edi
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x140006e1a
lea rdi, str.p__a_
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140006529
add rdi, 8
lea rax, str.HKCR
cmp rdi, rax
jl 0x140006dd0
test r15d, r15d
je 0x140006529
lea rdx, [rbp]
lea rcx, [rsp + 0x78]
call fcn.140004c50
mov r13, qword [rbp - 0x78]
mov r12, qword [rsp + 0x78]
jmp 0x140006529
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140006e68
cmp dword [rsp + 0x60], eax
seta dil
xor eax, eax
test r12, r12
je 0x140006e80
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r12d, r12d
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], 0
test eax, eax
jne 0x140006f8f
test r15d, r15d
je 0x140006529
test edi, edi
jne 0x140006529
xor r15d, r15d
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x10], r15d
mov qword [rbp - 8], r15
mov rcx, qword [rsp + 0x68]
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x10], r15d
mov qword [rbp - 8], r15
cmp byte [0x14008df90], r15b
jne 0x140006f15
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006f00
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008df88], rax
mov byte [0x14008df90], 1
mov rcx, qword [rsp + 0x68]
jmp 0x140006f1c
mov rax, qword [0x14008df88]
mov byte [0x14008df90], 1
mov rcx, qword [rsp + 0x68]
jmp 0x140006f1c
mov rax, qword [0x14008df88]
lea rdx, [rbp]
test rax, rax
je 0x140006f2f
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140006f35
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x10], r15d
mov qword [rbp - 8], r15
test eax, eax
jne 0x140006fdb
mov dword [rbp - 0x10], r15d
jmp 0x140006529
mov dword [rbp - 0x58], 0
mov ebx, 0x80020009
jmp 0x140006f98
mov dword [rbp - 0x58], 0
jmp 0x140006f98
mov ecx, eax
call fcn.1400048b0
mov ebx, eax
test rdi, rdi
je 0x140006f84
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x28], r15d
jmp 0x140006f98
mov eax, 1
mov ecx, eax
call fcn.1400048b0
mov ebx, eax
test r12, r12
je 0x140006faf
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.14003d1d0
add rsp, 0x2328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, eax
call fcn.1400048b0
mov ebx, eax
mov dword [rbp - 0x10], r15d
jmp 0x140006f98
mov ecx, 0x8007000e
call fcn.1400019c0
int3
mov ecx, 0x80004005
call fcn.1400019c0
int3
mov ecx, 0x80070057
call fcn.1400019c0
int3