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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x22e8
call fcn.14003f620
sub rsp, rax
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x140055b28]
xor rax, rsp
mov qword [rsp + 0x22d0], rax
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x58], rcx
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], ebp
mov ecx, dword [rsp + 0x2330]
mov dword [rsp + 0x90], ecx
mov rcx, rax
call fcn.1400192b0
mov ebx, eax
test eax, eax
jns 0x14001ab41
jmp 0x14001b372
cmp word [rsi], 0x7d
je 0x14001b362
nop dword [rax + rax]
mov dword [rsp + 0x50], 1
lea rdx, [0x140044418]
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 0x14001ab8c
test edi, edi
je 0x14001acad
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
cmp dword [rsp + 0x60], 0
je 0x14001acad
xor eax, eax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14001abf2
nop word [rax + rax]
cmp ax, 0x5c
je 0x14001abe9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x14001abd0
jmp 0x14001abf2
test rcx, rcx
jne 0x14001b263
lea rbx, str.AppID
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001ac5f
add rbx, 8
lea rax, str.bad_allocation
cmp rbx, rax
jl 0x14001ac00
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.140019630
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x88], 0
test edi, edi
je 0x14001aca2
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
mov rdx, rsi
mov rcx, rdi
call fcn.1400194e0
mov ebx, eax
test eax, eax
js 0x14001b362
mov dword [rsp + 0x88], 0
jmp 0x14001afc8
mov dword [rsp + 0x88], 0
lea rdx, [0x140044428]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001ace1
mov dword [rsp + 0x50], eax
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
jmp 0x14001ace6
mov rdi, qword [rsp + 0x58]
lea rdx, [0x140044458]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001ae31
lea rdx, [rsp + 0x2d0]
mov rcx, rdi
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
mov rdx, rsi
mov rcx, rdi
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
cmp word [rsi], 0x3d
jne 0x14001b2be
cmp dword [rsp + 0x60], 0
je 0x14001ad98
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], 0
mov r9, rsi
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.14001a640
mov ebx, eax
xor eax, eax
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], eax
test ebx, ebx
js 0x14001b27b
mov dword [rsp + 0xa8], eax
jmp 0x14001afc8
cmp dword [rsp + 0x2330], 0
jne 0x14001ae17
cmp dword [rsp + 0x50], 0
je 0x14001ae17
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b2b0
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x2d0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14001adfd
cmp eax, 2
jne 0x14001b290
test rdi, rdi
je 0x14001ae12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x58]
jmp 0x14001ae17
mov rdi, qword [rsp + 0x58]
mov rdx, rsi
mov rcx, rdi
call fcn.1400194e0
mov ebx, eax
test eax, eax
js 0x14001b362
jmp 0x14001b254
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x14001ae62
nop dword [rax]
cmp ax, 0x5c
je 0x14001ae59
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x14001ae40
jmp 0x14001ae62
test rcx, rcx
jne 0x14001b2d6
cmp dword [rsp + 0x60], 0
je 0x14001b023
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001aec6
test rbp, rbp
je 0x14001aeac
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x70], 0
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
test eax, eax
je 0x14001af8b
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
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 0x14001af1a
xor ecx, ecx
mov eax, ecx
test rbp, rbp
je 0x14001af06
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [rsp + 0x70], ecx
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
test eax, eax
je 0x14001af8b
jmp 0x14001af1c
xor ecx, ecx
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001b2f5
test rbp, rbp
je 0x14001af71
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x70], 0
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
test eax, eax
jne 0x14001b2f5
mov rdx, rsi
mov rcx, rdi
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
cmp word [rsi], 0x3d
jne 0x14001afc8
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14001a640
mov ebx, eax
test eax, eax
js 0x14001b2ee
mov rbp, qword [rsp + 0x68]
cmp word [rsi], 0x7b
jne 0x14001b254
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x14001b254
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x60]
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.14001aad0
mov ebx, eax
test eax, eax
js 0x14001b362
mov rdx, rsi
mov rcx, rdi
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
jmp 0x14001b254
cmp dword [rsp + 0x2330], 0
jne 0x14001b08a
xor ebx, ebx
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14001b084
mov edi, ebx
test rbp, rbp
je 0x14001b073
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [rsp + 0x70], ebx
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x68], rbp
test edi, edi
je 0x14001b09a
jmp 0x14001b08f
mov edi, 2
mov dword [rsp + 0x2330], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.1400255ec
test eax, eax
je 0x14001b0db
cmp eax, 0xc
je 0x14001b326
cmp eax, 0x16
je 0x14001b31b
cmp eax, 0x22
je 0x14001b31b
cmp eax, 0x50
jne 0x14001b310
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.1400194e0
mov ebx, eax
test eax, eax
js 0x14001b362
cmp word [rsi], 0x7b
jne 0x14001b166
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x14001b166
mov eax, dword [rsp + 0x2330]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14001aad0
mov ebx, eax
test eax, eax
jns 0x14001b14f
cmp dword [rsp + 0x2330], 0
je 0x14001b362
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.1400192b0
mov ebx, eax
test eax, eax
js 0x14001b362
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x2330], eax
cmp edi, 2
je 0x14001b254
test edi, edi
je 0x14001b18e
test eax, eax
je 0x14001b331
jmp 0x14001b254
test eax, eax
je 0x14001b1f9
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call fcn.140019470
test eax, eax
je 0x14001b1f9
lea rdi, str.AppID
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001b254
add rdi, 8
lea rax, str.bad_allocation
cmp rdi, rax
jl 0x14001b1b0
cmp dword [rsp + 0x50], 0
je 0x14001b254
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.140019630
mov rbp, qword [rsp + 0x68]
jmp 0x14001b254
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call fcn.140019470
mov edi, eax
xor eax, eax
test rbp, rbp
je 0x14001b21f
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], 0
test eax, eax
jne 0x14001b347
cmp dword [rsp + 0x50], eax
je 0x14001b254
test edi, edi
jne 0x14001b254
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x14001b33c
cmp word [rsi], 0x7d
je 0x14001b362
jmp 0x14001ab50
test rbp, rbp
je 0x14001b271
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14001b372
test rbp, rbp
je 0x14001b289
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001b372
mov ecx, eax
call fcn.140018dc0
mov ebx, eax
test rdi, rdi
je 0x14001b362
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b362
mov ecx, eax
call fcn.140018dc0
mov ebx, eax
jmp 0x14001b362
test rbp, rbp
je 0x14001b2cc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14001b372
test rbp, rbp
je 0x14001b2e4
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14001b372
mov rbp, qword [rsp + 0x68]
jmp 0x14001b362
mov ecx, eax
call fcn.140018dc0
mov ebx, eax
test rbp, rbp
je 0x14001b30c
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001b372
mov ecx, 0x80004005
call fcn.14000e230
int3
mov ecx, 0x80070057
call fcn.14000e230
int3
mov ecx, 0x8007000e
call fcn.14000e230
int3
mov ecx, edi
call fcn.140018dc0
mov ebx, eax
jmp 0x14001b362
mov ecx, eax
call fcn.140018dc0
mov ebx, eax
jmp 0x14001b362
mov ecx, eax
call fcn.140018dc0
mov ebx, eax
test rbp, rbp
je 0x14001b35e
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001b372
test rbp, rbp
je 0x14001b370
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x22d0]
xor rcx, rsp
call fcn.1400253c0
add rsp, 0x22e8
pop rdi
pop rsi
pop rbp
pop rbx
ret