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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x11f8
call fcn.14009ff00
sub rsp, rax
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x1400ee620]
xor rax, rsp
mov qword [rsp + 0x11e0], 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 + 0x1240]
mov dword [rsp + 0x90], ecx
mov rcx, rax
call fcn.14004ba20
mov ebx, eax
test eax, eax
jns 0x14004d171
jmp 0x14004da34
cmp byte [rsi], 0x7d
je 0x14004da24
nop word [rax + rax]
mov dword [rsp + 0x50], 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14004d1bc
test edi, edi
je 0x14004d2dd
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
cmp dword [rsp + 0x60], 0
je 0x14004d2dd
xor eax, eax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x14004d21e
nop dword [rax]
cmp al, 0x5c
je 0x14004d215
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x14004d200
jmp 0x14004d21e
test rcx, rcx
jne 0x14004d91b
lea rbx, [0x1400b7a80]
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14004d28f
add rbx, 8
lea rax, [0x1400b7ae0]
cmp rbx, rax
jl 0x14004d230
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.14004bd40
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x88], 0
test edi, edi
je 0x14004d2d2
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004d938
mov rdx, rsi
mov rcx, rdi
call fcn.14004bc10
mov ebx, eax
test eax, eax
js 0x14004d933
mov dword [rsp + 0x88], 0
jmp 0x14004d60d
mov dword [rsp + 0x88], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14004d310
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
jmp 0x14004d314
mov edi, dword [rsp + 0x50]
lea rdx, [0x1400bb8c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14004d48d
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x58]
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
cmp byte [rsi], 0x3d
jne 0x14004d980
cmp dword [rsp + 0x60], 0
je 0x14004d3ce
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], 0
mov r9, rsi
lea r8, [rsp + 0x1e0]
lea rdx, [rsp + 0xa0]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.14004cbe0
mov ebx, eax
xor eax, eax
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], eax
test ebx, ebx
js 0x14004d93d
mov dword [rsp + 0xa8], eax
jmp 0x14004d60d
cmp dword [rsp + 0x1240], 0
jne 0x14004d471
test edi, edi
je 0x14004d471
xor ebx, ebx
mov qword [rsp + 0xb0], rbx
mov dword [rsp + 0xb8], ebx
mov qword [rsp + 0x50], rbx
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_RegOpenKeyExA]
test eax, eax
jne 0x14004d972
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rdi
mov dword [rsp + 0xb8], ebx
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x14004d454
cmp eax, 2
jne 0x14004d952
test rdi, rdi
je 0x14004d46a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xb0], rbx
mov dword [rsp + 0xb8], ebx
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004bc10
mov ebx, eax
test eax, eax
js 0x14004da24
jmp 0x14004d90d
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x14004d4b5
cmp al, 0x5c
je 0x14004d4ac
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x14004d497
jmp 0x14004d4b5
test rcx, rcx
jne 0x14004d998
cmp dword [rsp + 0x60], 0
je 0x14004d667
xor edi, edi
mov qword [rsp + 0x50], rdi
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_RegOpenKeyExA]
test eax, eax
jne 0x14004d515
mov eax, edi
test rbp, rbp
je 0x14004d4ff
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], edi
test eax, eax
je 0x14004d5cc
mov qword [rsp + 0x50], rdi
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_RegOpenKeyExA]
test eax, eax
jne 0x14004d55f
mov eax, edi
test rbp, rbp
je 0x14004d54d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], edi
test eax, eax
je 0x14004d5cc
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14004d9b7
mov eax, edi
test rbp, rbp
je 0x14004d5b6
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], edi
test eax, eax
jne 0x14004d9b7
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
cmp byte [rsi], 0x3d
jne 0x14004d60d
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14004cbe0
mov ebx, eax
test eax, eax
js 0x14004d9b0
mov rbp, qword [rsp + 0x68]
cmp byte [rsi], 0x7b
jne 0x14004d90d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x14004d90d
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x60]
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.14004d100
mov ebx, eax
test eax, eax
js 0x14004da24
mov rdx, rsi
mov rcx, rdi
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
jmp 0x14004d90d
cmp dword [rsp + 0x1240], 0
jne 0x14004d6ce
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_RegOpenKeyExA]
mov edi, eax
test eax, eax
jne 0x14004d6c8
mov edi, ebx
test rbp, rbp
je 0x14004d6b7
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], ebx
test edi, edi
je 0x14004d6de
jmp 0x14004d6d3
mov edi, 2
mov dword [rsp + 0x1240], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.140087380
test eax, eax
je 0x14004d71f
cmp eax, 0xc
je 0x14004d9e8
cmp eax, 0x16
je 0x14004d9dd
cmp eax, 0x22
je 0x14004d9dd
cmp eax, 0x50
jne 0x14004d9d2
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004bc10
mov ebx, eax
test eax, eax
js 0x14004da24
cmp byte [rsi], 0x7b
jne 0x14004d7a9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x14004d7a9
mov eax, dword [rsp + 0x1240]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004d100
mov ebx, eax
test eax, eax
jns 0x14004d792
cmp dword [rsp + 0x1240], 0
je 0x14004da24
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.14004ba20
mov ebx, eax
test eax, eax
js 0x14004da24
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x1240], eax
cmp edi, 2
je 0x14004d90d
test edi, edi
je 0x14004d7d1
test eax, eax
je 0x14004d9f3
jmp 0x14004d90d
test eax, eax
je 0x14004d841
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call fcn.14004bba0
test eax, eax
je 0x14004d841
lea rdi, [0x1400b7a80]
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14004d90d
add rdi, 8
lea rax, [0x1400b7ae0]
cmp rdi, rax
jl 0x14004d7f0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14004d90d
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x68]
call fcn.14004bd40
mov rbp, qword [rsp + 0x68]
jmp 0x14004d90d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call fcn.14004bba0
mov edi, eax
xor eax, eax
test rbp, rbp
je 0x14004d867
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 0x14004da09
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14004d90d
test edi, edi
jne 0x14004d90d
cmp byte [0x1400f0758], dil
jne 0x14004d8cf
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004d8bf
lea rdx, [0x1400bbaa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f0750], rax
jmp 0x14004d8c6
mov rax, qword [0x1400f0750]
mov byte [0x1400f0758], 1
jmp 0x14004d8d6
mov rax, qword [0x1400f0750]
test rax, rax
je 0x14004d8f2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x78]
call rax
jmp 0x14004d905
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x14004d9fe
cmp byte [rsi], 0x7d
je 0x14004da24
jmp 0x14004d180
test rbp, rbp
je 0x14004d929
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14004da34
jmp 0x14004da24
jmp 0x14004da24
test rbp, rbp
je 0x14004d94b
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004da34
mov ecx, eax
call fcn.14004b500
mov ebx, eax
test rdi, rdi
je 0x14004da24
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004da24
mov ecx, eax
call fcn.14004b500
mov ebx, eax
jmp 0x14004da24
test rbp, rbp
je 0x14004d98e
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14004da34
test rbp, rbp
je 0x14004d9a6
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14004da34
mov rbp, qword [rsp + 0x68]
jmp 0x14004da24
mov ecx, eax
call fcn.14004b500
mov ebx, eax
test rbp, rbp
je 0x14004d9ce
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004da34
mov ecx, 0x80004005
call fcn.1400395a0
int3
mov ecx, 0x80070057
call fcn.1400395a0
int3
mov ecx, 0x8007000e
call fcn.1400395a0
int3
mov ecx, edi
call fcn.14004b500
mov ebx, eax
jmp 0x14004da24
mov ecx, eax
call fcn.14004b500
mov ebx, eax
jmp 0x14004da24
mov ecx, eax
call fcn.14004b500
mov ebx, eax
test rbp, rbp
je 0x14004da20
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004da34
test rbp, rbp
je 0x14004da32
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x11e0]
xor rcx, rsp
call fcn.140083f40
add rsp, 0x11f8
pop rdi
pop rsi
pop rbp
pop rbx
ret