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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.140015190
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400260f0]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x68], r9d
mov qword [rsp + 0x58], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], ecx
mov qword [rbp - 0x80], rcx
mov ecx, dword [rbp + 0x2230]
mov dword [rbp - 0x70], ecx
mov rcx, rax
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
cmp word [rsi], 0x7d
je 0x14000564d
mov dword [rsp + 0x50], 1
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 0x140004ec8
test edi, edi
je 0x140004fa2
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
cmp dword [rsp + 0x68], 0
je 0x140004fa2
xor eax, eax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140004f24
cmp ax, 0x5c
je 0x140004f1b
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004f02
jmp 0x140004f24
test rcx, rcx
jne 0x140005618
lea rbx, [0x140020870]
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004f74
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x140004f30
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.1400048b0
test edi, edi
je 0x140004fa2
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
mov rdx, rsi
mov rcx, rdi
call fcn.140004720
jmp 0x1400052ea
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140004fd5
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
jmp 0x140004fd9
mov edi, dword [rsp + 0x50]
lea rdx, [0x140020740]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400050e3
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x60]
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
cmp word [rsi], 0x3d
jne 0x140005618
cmp dword [rsp + 0x68], 0
je 0x140005068
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x68], rax
xor eax, eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov r9, rsi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x68]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140004230
mov ebx, eax
jmp 0x1400052ec
cmp dword [rbp + 0x2230], 0
jne 0x1400050d1
test edi, edi
je 0x1400050d1
mov qword [rbp - 0x78], 0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005644
mov rdi, qword [rbp - 0x78]
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x1400055ff
test rdi, rdi
je 0x1400050d1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004720
jmp 0x140004e78
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x140005112
nop
cmp ax, 0x5c
je 0x140005109
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400050f0
jmp 0x140005112
test rcx, rcx
jne 0x140005618
cmp dword [rsp + 0x68], 0
je 0x140005348
mov qword [rsp + 0x50], 0
mov rbx, qword [rbp - 0x80]
lea rax, [rsp + 0x50]
test rbx, rbx
je 0x140005153
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400047e0
jmp 0x14000516f
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000519f
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140005183
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 0
test eax, eax
je 0x1400052b7
jmp 0x1400051a4
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
test rbx, rbx
je 0x1400051d6
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400047e0
jmp 0x1400051f2
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000521e
test rdi, rdi
je 0x140005204
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 0
test eax, eax
je 0x1400052b7
mov qword [rsp + 0x50], 0
lea rax, [rbp - 0x6c]
test rbx, rbx
je 0x140005253
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003f70
xor ebx, ebx
jmp 0x140005289
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005644
mov eax, ebx
test rdi, rdi
je 0x1400052a1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], ebx
test eax, eax
jne 0x140005644
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
cmp word [rsi], 0x3d
jne 0x1400052f4
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140004230
mov ebx, eax
test eax, eax
js 0x14000564d
cmp word [rsi], 0x7b
jne 0x140004e82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x140005302
cmp rax, 1
jne 0x140004e82
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rdi
call fcn.140004e10
mov ebx, eax
test eax, eax
js 0x14000564d
mov rdx, rsi
mov rcx, rdi
jmp 0x140004e73
cmp dword [rbp + 0x2230], 0
jne 0x1400053d7
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140005387
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.1400047e0
jmp 0x1400053a7
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1400053dc
mov edi, ebx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1400053c4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], ebx
test edi, edi
je 0x1400053e6
jmp 0x1400053dc
mov edi, 2
mov dword [rbp + 0x2230], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14000a684
test eax, eax
je 0x140005423
cmp eax, 0xc
je 0x140005635
cmp eax, 0x16
je 0x14000562a
cmp eax, 0x22
je 0x14000562a
cmp eax, 0x50
jne 0x14000561f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004720
mov ebx, eax
test eax, eax
js 0x14000564d
cmp word [rsi], 0x7b
jne 0x1400054b9
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140005460
cmp rax, 1
jne 0x1400054b9
mov eax, dword [rbp + 0x2230]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004e10
mov ebx, eax
test eax, eax
jns 0x1400054a2
cmp dword [rbp + 0x2230], 0
je 0x14000564d
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.140004c50
mov ebx, eax
test eax, eax
js 0x14000564d
mov eax, dword [rbp - 0x70]
mov dword [rbp + 0x2230], eax
cmp edi, 2
je 0x140004e82
test edi, edi
je 0x1400054dc
test eax, eax
je 0x140005640
jmp 0x140004e82
test eax, eax
je 0x140005544
mov rdx, qword [rsp + 0x70]
call fcn.140004a40
test eax, eax
je 0x140005544
lea rdi, [0x140020870]
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004e82
add rdi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rdi, rax
jl 0x140005500
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140004e82
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400048b0
jmp 0x140004e82
mov rdx, qword [rsp + 0x70]
call fcn.140004a40
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140005569
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], 0
test eax, eax
jne 0x140005644
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140004e82
test edi, edi
jne 0x140004e82
cmp byte [0x140029008], dil
jne 0x1400055d1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400055c1
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140029000], rax
jmp 0x1400055c8
mov rax, qword [0x140029000]
mov byte [0x140029008], 1
jmp 0x1400055d8
mov rax, qword [0x140029000]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x58]
test rax, rax
je 0x1400055f0
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1400055f6
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140005644
jmp 0x140004e82
mov ecx, eax
call fcn.140004c40
mov ebx, eax
test rdi, rdi
je 0x14000564d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000564d
mov ebx, 0x80020009
jmp 0x14000564d
mov ecx, 0x80004005
call fcn.140005fe0
int3
mov ecx, 0x80070057
call fcn.140005fe0
int3
mov ecx, 0x8007000e
call fcn.140005fe0
int3
mov ecx, edi
jmp 0x140005646
mov ecx, eax
call fcn.140004c40
mov ebx, eax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140005660
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.14000a330
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret