Function at 0x14001d85c
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x11f8
call fcn.14002d580
sub rsp, rax
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x1400389f0]
xor rax, rsp
mov qword [rsp + 0x11e0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x88], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor edi, edi
mov qword [rsp + 0x78], rdi
and dword [rsp + 0x80], edi
mov ecx, dword [rsp + 0x1240]
mov dword [rsp + 0xa0], ecx
mov rcx, rax
call fcn.14001ac68
mov ebx, eax
test eax, eax
jns 0x14001d8d3
jmp 0x14001e170
cmp byte [rsi], 0x7d
je 0x14001e160
mov eax, 1
mov dword [rsp + 0x74], eax
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebp, ebp
test eax, eax
sete bpl
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14001d919
test ebp, ebp
je 0x14001da1b
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
cmp dword [rsp + 0x70], 0
je 0x14001da1b
and qword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
mov rcx, rsi
mov al, byte [rsi]
test al, al
je 0x14001d973
cmp al, 0x5c
je 0x14001d96a
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x14001d955
jmp 0x14001d973
test rcx, rcx
jne 0x14001e05f
lea rbx, [0x14002fb20]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14001d9d3
add rbx, 8
lea rax, [0x14002fb80]
cmp rbx, rax
jl 0x14001d97a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
and dword [rsp + 0x98], 0
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.14001b1c8
and qword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
test ebp, ebp
je 0x14001da13
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
mov rdx, rsi
mov rcx, rbp
call fcn.14001adbc
mov ebx, eax
test eax, eax
js 0x14001e160
and dword [rsp + 0x98], 0
jmp 0x14001dffb
and dword [rsp + 0x98], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14001da4f
and dword [rsp + 0x74], eax
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
jmp 0x14001da54
mov rbp, qword [rsp + 0x68]
lea rdx, [0x14002f604]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14001db9f
lea rdx, [rsp + 0x1e0]
mov rcx, rbp
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
mov rdx, rsi
mov rcx, rbp
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
cmp byte [rsi], 0x3d
jne 0x14001e0ba
cmp dword [rsp + 0x70], 0
je 0x14001db06
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xb8], rax
and dword [rsp + 0xc0], 0
mov r9, rsi
lea r8, [rsp + 0x1e0]
lea rdx, [rsp + 0xb8]
mov rcx, rbp
call fcn.14001d310
mov ebx, eax
and qword [rsp + 0xb8], 0
and dword [rsp + 0xc0], 0
test eax, eax
js 0x14001e077
and dword [rsp + 0xc0], 0
jmp 0x14001dffb
cmp dword [rsp + 0x1240], 0
jne 0x14001db85
cmp dword [rsp + 0x74], 0
je 0x14001db85
and 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 + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001e0ac
mov rbp, qword [rsp + 0x60]
lea rdx, [rsp + 0x1e0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14001db6b
cmp eax, 2
jne 0x14001e08c
test rbp, rbp
je 0x14001db80
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
jmp 0x14001db85
mov rbp, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, rbp
call fcn.14001adbc
mov ebx, eax
test eax, eax
js 0x14001e160
jmp 0x14001e04c
mov rcx, rsi
mov al, byte [rsi]
test al, al
je 0x14001dbc6
cmp al, 0x5c
je 0x14001dbbd
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x14001dba8
jmp 0x14001dbc6
test rcx, rcx
jne 0x14001e0d2
cmp dword [rsp + 0x70], 0
je 0x14001dcf5
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001dc2a
test rdi, rdi
je 0x14001dc10
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rdi
and dword [rsp + 0x80], 0
test eax, eax
je 0x14001dcb0
and qword [rsp + 0x60], 0
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_RegOpenKeyExA]
test eax, eax
jne 0x14001dc77
test rdi, rdi
je 0x14001dc61
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rdi
and dword [rsp + 0x80], 0
test eax, eax
je 0x14001dcb0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.14001a79c
test eax, eax
jne 0x14001e0f1
mov rdi, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rbp
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
cmp byte [rsi], 0x3d
jne 0x14001dffb
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.14001d310
mov ebx, eax
test eax, eax
js 0x14001e0ea
mov rdi, qword [rsp + 0x78]
jmp 0x14001dffb
mov ebx, dword [rsp + 0x1240]
test ebx, ebx
jne 0x14001dd54
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test eax, eax
jne 0x14001dd59
test rdi, rdi
je 0x14001dd40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rdi
and dword [rsp + 0x80], 0
jmp 0x14001dd59
mov ebp, 2
test ebp, ebp
mov eax, 1
cmovne ebx, eax
mov dword [rsp + 0x1240], ebx
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.140022208
test eax, eax
je 0x14001ddab
cmp eax, 0xc
je 0x14001e124
cmp eax, 0x16
je 0x14001e119
cmp eax, 0x22
je 0x14001e119
cmp eax, 0x50
jne 0x14001e10e
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001adbc
mov ebx, eax
test eax, eax
js 0x14001e160
cmp byte [rsi], 0x7b
jne 0x14001de35
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x14001de35
mov eax, dword [rsp + 0x1240]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001d85c
mov ebx, eax
test eax, eax
jns 0x14001de1e
cmp dword [rsp + 0x1240], 0
je 0x14001e160
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x1240], eax
cmp ebp, 2
je 0x14001e04c
test ebp, ebp
je 0x14001de5d
test eax, eax
je 0x14001e12f
jmp 0x14001e04c
test eax, eax
je 0x14001df16
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x14001df16
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x14001df16
lea rbp, [0x14002fb20]
mov rdx, qword [rbp]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14001e04c
add rbp, 8
lea rax, [0x14002fb80]
cmp rbp, rax
jl 0x14001dec5
cmp dword [rsp + 0x74], 0
je 0x14001e04c
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.14001b1c8
mov rdi, qword [rsp + 0x78]
jmp 0x14001e04c
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x14001df68
xor ebp, ebp
jmp 0x14001df72
xor ebp, ebp
cmp dword [rsp + 0x60], ebp
seta bpl
xor eax, eax
test rdi, rdi
je 0x14001df89
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x78], rdi
and dword [rsp + 0x80], 0
test eax, eax
jne 0x14001e145
cmp dword [rsp + 0x74], eax
je 0x14001e04c
test ebp, ebp
jne 0x14001e04c
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rax
and dword [rsp + 0xb0], ebp
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xa8]
call fcn.14001a718
and qword [rsp + 0xa8], 0
and dword [rsp + 0xb0], ebp
test eax, eax
jne 0x14001e13a
and dword [rsp + 0xb0], eax
mov rbp, qword [rsp + 0x68]
cmp dword [rsp + 0x70], 0
je 0x14001e04c
cmp byte [rsi], 0x7b
jne 0x14001e04c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x14001e04c
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.14001d85c
mov ebx, eax
test eax, eax
js 0x14001e160
mov rdx, rsi
mov rcx, rbp
call fcn.14001ac68
mov ebx, eax
test eax, eax
js 0x14001e160
cmp byte [rsi], 0x7d
je 0x14001e160
mov eax, 1
jmp 0x14001d8e1
test rdi, rdi
je 0x14001e06d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14001e170
test rdi, rdi
je 0x14001e085
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001e170
mov ecx, eax
call fcn.14001a674
mov ebx, eax
test rbp, rbp
je 0x14001e160
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001e160
mov ecx, eax
call fcn.14001a674
mov ebx, eax
jmp 0x14001e160
test rdi, rdi
je 0x14001e0c8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14001e170
test rdi, rdi
je 0x14001e0e0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14001e170
mov rdi, qword [rsp + 0x78]
jmp 0x14001e160
mov ecx, eax
call fcn.14001a674
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001e10a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001e170
mov ecx, 0x80004005
call fcn.14001a60c
int3
mov ecx, 0x80070057
call fcn.14001a60c
int3
mov ecx, 0x8007000e
call fcn.14001a60c
int3
mov ecx, ebp
call fcn.14001a674
mov ebx, eax
jmp 0x14001e160
mov ecx, eax
call fcn.14001a674
mov ebx, eax
jmp 0x14001e160
mov ecx, eax
call fcn.14001a674
mov ebx, eax
test rdi, rdi
je 0x14001e15c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001e170
test rdi, rdi
je 0x14001e16e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x11e0]
xor rcx, rsp
call fcn.140020bd0
add rsp, 0x11f8
pop rdi
pop rsi
pop rbp
pop rbx
ret