Function at 0x14000cd7c
Capabilities:
Delete registry key
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.140019c00
sub rsp, rax
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x68], r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x78], rcx
xor eax, eax
mov r14d, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov r13d, eax
mov qword [rbp - 0x70], rax
call fcn.14000bf9c
test eax, eax
mov ebx, eax
js 0x14000d6ac
cmp word [rdi], 0x7d
je 0x14000d6ac
mov r12d, 1
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, [0x14001c2e8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000ce2c
test esi, esi
je 0x14000cefb
mov rdx, rdi
mov rcx, r15
call fcn.14000bf9c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000d6ac
cmp dword [rsp + 0x70], edx
je 0x14000cef9
mov qword [rbp - 0x60], rdx
mov dword [rbp - 0x58], edx
mov qword [rbp - 0x50], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000ce72
cmp ax, 0x5c
je 0x14000ce79
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000ce60
jmp 0x14000ce82
test rcx, rcx
jne 0x14000d6f8
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000cebe
add rbx, 8
lea rax, str.RegCreateKeyTransactedW
cmp rbx, rax
jl 0x14000ce89
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x60], rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.14000b748
xor ebx, ebx
test esi, esi
je 0x14000cefb
mov rdx, rdi
mov rcx, r15
call fcn.14000bf9c
mov ebx, eax
test eax, eax
js 0x14000d6ac
mov rdx, rdi
mov rcx, r15
call fcn.14000c72c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000d6ac
mov esi, dword [rsp + 0x70]
jmp 0x14000d2d4
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000cf27
mov r12d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14000bf9c
mov ebx, eax
test eax, eax
js 0x14000d6ac
lea rdx, [0x14001c2e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x14000d030
lea rdx, [rbp + 0x1d0]
mov rcx, r15
call fcn.14000bf9c
mov ebx, eax
test eax, eax
js 0x14000d6ac
mov rdx, rdi
mov rcx, r15
call fcn.14000bf9c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000d6ac
cmp word [rdi], 0x3d
jne 0x14000d6f8
mov esi, dword [rsp + 0x70]
test esi, esi
je 0x14000cfba
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], edx
mov qword [rbp - 0x50], rdx
mov r9, rdi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.14000c158
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000d6ac
jmp 0x14000d2d4
cmp dword [rbp + 0x2250], edx
jne 0x14000d020
test r12d, r12d
je 0x14000d020
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d6a3
mov rsi, qword [rsp + 0x60]
lea rdx, [rbp + 0x1d0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14000d6df
test rsi, rsi
je 0x14000d020
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r15
call fcn.14000c72c
jmp 0x14000cddc
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14000d04c
cmp ax, 0x5c
je 0x14000d053
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14000d038
jmp 0x14000d05c
test rcx, rcx
jne 0x14000d6f8
mov esi, dword [rsp + 0x70]
test esi, esi
je 0x14000d31f
mov qword [rsp + 0x60], rdx
test r13, r13
je 0x14000d0eb
cmp qword [r13], rdx
je 0x14000d0de
lea rcx, [0x14001c4a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
test rax, rax
je 0x14000d136
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor edx, edx
test rax, rax
je 0x14000d0e4
mov qword [rsp + 0x30], rdx
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, rdi
mov rcx, qword [rsp + 0x68]
mov rax, r10
call qword [0x14001b738]
jmp 0x14000d10c
cmp dword [r13 + 8], edx
jne 0x14000d0eb
mov eax, 1
jmp 0x14000d10c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x14000d136
mov eax, ebx
test r14, r14
je 0x14000d122
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], ebx
test eax, eax
je 0x14000d291
mov qword [rsp + 0x60], rbx
test r13, r13
je 0x14000d1b5
cmp qword [r13], rbx
je 0x14000d1a8
lea rcx, [0x14001c4a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d1fe
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x14000d1ae
mov qword [rsp + 0x30], rbx
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, rdi
mov rcx, qword [rsp + 0x68]
mov rax, r10
call qword [0x14001b738]
jmp 0x14000d1d6
cmp dword [r13 + 8], ebx
jne 0x14000d1b5
mov eax, 1
jmp 0x14000d1d6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d1fe
mov eax, ebx
test r14, r14
je 0x14000d1ea
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], ebx
test eax, eax
je 0x14000d291
mov qword [rsp + 0x60], rbx
lea rax, [rbp - 0x68]
test r13, r13
je 0x14000d22d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov r8, rdi
mov rdx, qword [rsp + 0x68]
mov rcx, r13
call fcn.14000b398
jmp 0x14000d261
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x14000d6a3
mov eax, edx
test r14, r14
je 0x14000d27d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], edx
test eax, eax
jne 0x14000d6a3
mov rdx, rdi
mov rcx, r15
call fcn.14000bf9c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000d6ac
cmp word [rdi], 0x3d
jne 0x14000d2d4
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r15
call fcn.14000c158
mov ebx, eax
xor edx, edx
mov r14, qword [rbp - 0x80]
test eax, eax
js 0x14000d6ac
mov r13, qword [rbp - 0x70]
cmp word [rdi], 0x7b
jne 0x14000cde6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14000d2e2
cmp rax, 1
jne 0x14000cde6
mov dword [rsp + 0x20], edx
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14000cd7c
mov ebx, eax
test eax, eax
js 0x14000d6ac
mov rdx, rdi
mov rcx, r15
jmp 0x14000cdd7
mov ebx, dword [rbp + 0x2250]
test ebx, ebx
jne 0x14000d3fd
mov qword [rsp + 0x60], rdx
test r13, r13
je 0x14000d3b2
cmp qword [r13], rdx
je 0x14000d3a5
lea rcx, [0x14001c4a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000d357
lea esi, [rbx + 1]
jmp 0x14000d402
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor edx, edx
test rax, rax
je 0x14000d3ab
mov qword [rsp + 0x30], rdx
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, rdi
mov rcx, qword [rsp + 0x68]
mov rax, r10
call qword [0x14001b738]
jmp 0x14000d3d3
cmp dword [r13 + 8], edx
jne 0x14000d3b2
mov esi, 1
jmp 0x14000d3d7
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor edx, edx
test esi, esi
jne 0x14000d402
mov esi, edx
test r14, r14
je 0x14000d3ef
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor edx, edx
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], edx
jmp 0x14000d402
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x14000d44c
cmp eax, 0xc
je 0x14000d70a
cmp eax, 0x16
je 0x14000d6ff
cmp eax, 0x22
je 0x14000d6ff
cmp eax, 0x50
jne 0x14000d715
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call fcn.14000bf9c
mov ebx, eax
test eax, eax
js 0x14000d6ac
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call fcn.14000c72c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000d6ac
cmp word [rdi], 0x7b
jne 0x14000d4da
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14000d486
cmp rax, 1
jne 0x14000d4da
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call fcn.14000cd7c
mov ebx, eax
test eax, eax
jns 0x14000d4bc
test r15d, r15d
je 0x14000d6ac
mov rdx, rdi
mov r15, qword [rsp + 0x78]
mov rcx, r15
call fcn.14000bf9c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14000d6ac
jmp 0x14000d4df
mov r15, qword [rsp + 0x78]
cmp esi, 2
je 0x14000cde6
test esi, esi
je 0x14000d4ff
cmp dword [rbp + 0x2250], edx
jne 0x14000cde6
mov ecx, esi
jmp 0x14000d6a5
cmp dword [rbp + 0x2250], edx
je 0x14000d5a8
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x14000d5a8
cmp dword [rsp + 0x60], edx
jbe 0x14000d5a8
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000cde6
add rsi, 8
lea rax, str.RegCreateKeyTransactedW
cmp rsi, rax
jl 0x14000d560
test r12d, r12d
je 0x14000cde6
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.14000b748
mov r13, qword [rbp - 0x70]
mov r14, qword [rbp - 0x80]
jmp 0x14000cde6
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x14000d5fa
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x14000d613
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 0x14000d6a3
test r12d, r12d
je 0x14000cde6
test esi, esi
jne 0x14000cde6
cmp byte [0x140024b98], dl
jne 0x14000d672
lea rcx, [0x14001c4a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d662
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140024b90], rax
jmp 0x14000d669
mov rax, qword [0x140024b90]
mov byte [0x140024b98], 1
jmp 0x14000d679
mov rax, qword [0x140024b90]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x68]
test rax, rax
je 0x14000d695
xor r9d, r9d
xor r8d, r8d
call qword [0x14001b738]
jmp 0x14000d69b
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14000cde6
mov ecx, eax
call fcn.14000b388
mov ebx, eax
test r14, r14
je 0x14000d6ba
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.1400185a0
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.14000b388
mov ebx, eax
test rsi, rsi
je 0x14000d6ac
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000d6ac
mov ebx, 0x80020009
jmp 0x14000d6ac
mov ecx, 0x80070057
call fcn.140001500
int3
mov ecx, 0x8007000e
call fcn.140001500
int3
mov ecx, 0x80004005
call fcn.140001500
int3