Function at 0x180014740
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.180040bd0
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x180061008]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x50], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x78], rcx
mov rcx, rax
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
cmp word [rsi], 0x7d
je 0x180014f1d
mov ecx, 1
mov dword [rsp + 0x4c], ecx
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800147f7
test edi, edi
je 0x1800148da
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
cmp dword [rsp + 0x48], 0
je 0x1800148da
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180014857
cmp ax, 0x5c
je 0x18001484e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180014835
jmp 0x180014857
test rcx, rcx
jne 0x180014ee8
lea rbx, [0x180056390]
nop
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800148ac
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x180014860
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], 0
mov qword [rbp - 0x70], 0
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1800141b0
mov qword [rbp - 0x80], 0
test edi, edi
je 0x1800148da
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
mov rdx, rsi
mov rcx, rdi
call fcn.180014020
jmp 0x180014bb9
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18001490d
xor edi, edi
mov dword [rsp + 0x4c], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
jmp 0x180014911
mov edi, dword [rsp + 0x4c]
lea rdx, [0x180056260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180014a2c
lea rdx, [rbp + 0x1c0]
mov rcx, qword [rsp + 0x40]
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
cmp word [rsi], 0x3d
jne 0x180014ee8
cmp dword [rsp + 0x48], 0
je 0x1800149ae
xor eax, eax
mov qword [rbp - 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x68], rax
xor eax, eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov r9, rsi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x68]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180013b50
mov ebx, eax
mov qword [rbp - 0x68], 0
jmp 0x180014bbb
cmp dword [rbp + 0x2220], 0
jne 0x180014a1a
test edi, edi
je 0x180014a1a
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180014f14
lea rdx, [rbp + 0x1c0]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x180014ecf
test rdi, rdi
je 0x180014a1a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014020
jmp 0x1800147a6
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180014a59
cmp ax, 0x5c
je 0x180014a50
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180014a37
jmp 0x180014a59
test rcx, rcx
jne 0x180014ee8
cmp dword [rsp + 0x48], 0
je 0x180014c17
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x180014a9e
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800140e0
jmp 0x180014abd
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180014aed
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180014ad1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], 0
test eax, eax
je 0x180014b86
jmp 0x180014af2
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180014b27
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800140e0
jmp 0x180014b46
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180014b6e
test rdi, rdi
je 0x180014b58
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], 0
test eax, eax
je 0x180014b86
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1800138c0
test eax, eax
jne 0x180014f14
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
cmp word [rsi], 0x3d
jne 0x180014bc3
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.180013b50
mov ebx, eax
test eax, eax
js 0x180014f1d
cmp word [rsi], 0x7b
jne 0x1800147b0
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x180014bd1
cmp rax, 1
jne 0x1800147b0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, rdi
call fcn.180014740
mov ebx, eax
test eax, eax
js 0x180014f1d
mov rdx, rsi
mov rcx, rdi
jmp 0x1800147a1
mov ebx, dword [rbp + 0x2220]
test ebx, ebx
jne 0x180014cac
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180014c5c
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.1800140e0
jmp 0x180014c7d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x180014cb1
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x180014c98
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
jmp 0x180014cb1
mov edi, 2
mov eax, ebx
test edi, edi
mov ecx, 1
cmovne eax, ecx
mov dword [rsp + 0x60], eax
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.18002a154
test eax, eax
je 0x180014cfe
cmp eax, 0xc
je 0x180014f05
cmp eax, 0x16
je 0x180014efa
cmp eax, 0x22
je 0x180014efa
cmp eax, 0x50
jne 0x180014eef
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014020
mov ebx, eax
test eax, eax
js 0x180014f1d
cmp word [rsi], 0x7b
jne 0x180014d8b
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x180014d36
cmp rax, 1
jne 0x180014d8b
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014740
mov ebx, eax
test eax, eax
jns 0x180014d74
cmp dword [rsp + 0x60], 0
je 0x180014f1d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180014570
mov ebx, eax
test eax, eax
js 0x180014f1d
cmp edi, 2
je 0x1800147b0
test edi, edi
je 0x180014daa
cmp dword [rbp + 0x2220], 0
je 0x180014f10
jmp 0x1800147b0
cmp dword [rbp + 0x2220], 0
je 0x180014e14
mov rdx, qword [rsp + 0x68]
call fcn.180014340
test eax, eax
je 0x180014e14
lea rdi, [0x180056390]
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800147b0
add rdi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rdi, rax
jl 0x180014dd0
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x1800147b0
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.1800141b0
jmp 0x1800147b0
mov rdx, qword [rsp + 0x68]
call fcn.180014340
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180014e39
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], 0
test eax, eax
jne 0x180014f14
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x1800147b0
test edi, edi
jne 0x1800147b0
cmp byte [0x180064708], dil
jne 0x180014ea1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180014e91
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180064700], rax
jmp 0x180014e98
mov rax, qword [0x180064700]
mov byte [0x180064708], 1
jmp 0x180014ea8
mov rax, qword [0x180064700]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x50]
test rax, rax
je 0x180014ec0
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180014ec6
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x180014f14
jmp 0x1800147b0
mov ecx, eax
call fcn.180014560
mov ebx, eax
test rdi, rdi
je 0x180014f1d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180014f1d
mov ebx, 0x80020009
jmp 0x180014f1d
mov ecx, 0x80004005
call fcn.18000f380
int3
mov ecx, 0x80070057
call fcn.18000f380
int3
mov ecx, 0x8007000e
call fcn.18000f380
int3
mov ecx, edi
jmp 0x180014f16
mov ecx, eax
call fcn.180014560
mov ebx, eax
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x180014f30
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.180017470
add rsp, 0x22d8
pop rdi
pop rsi
pop rbx
pop rbp
ret