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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x21f0]
mov eax, 0x22f0
call fcn.14000a1d0
sub rsp, rax
mov rax, qword [0x14001a360]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov rax, rcx
mov qword [rsp + 0x60], rcx
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], ecx
mov qword [rbp - 0x78], rcx
mov ecx, dword [rbp + 0x2230]
mov dword [rsp + 0x68], r9d
mov qword [rbp - 0x70], r8
mov dword [rbp - 0x48], ecx
mov rcx, rax
mov rsi, rdx
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x140005307
cmp word [rsi], 0x7d
mov qword [rsp + 0x22e8], rdi
je 0x1400052fd
nop dword [rax]
lea rdx, str.Delete
mov rcx, rsi
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
lea rdx, str.ForceRemove
test eax, eax
mov rcx, rsi
sete dil
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004c3c
test edi, edi
je 0x140004d11
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
cmp dword [rsp + 0x68], 0
je 0x140004d11
xor eax, eax
mov rcx, rsi
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
movzx eax, word [rsi]
test ax, ax
je 0x140004c98
cmp ax, 0x5c
je 0x140004c8f
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004c76
jmp 0x140004c98
test rcx, rcx
jne 0x14000528e
lea rbx, str.AppID
nop
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004ce3
lea rax, [0x1400146d0]
add rbx, 8
cmp rbx, rax
jl 0x140004ca0
mov rax, qword [rbp - 0x70]
lea rcx, [rbp - 0x60]
mov rdx, rsi
mov dword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x60], rax
call fcn.140003c60
test edi, edi
je 0x140004d11
mov rdi, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
mov rdx, rsi
mov rcx, rdi
call fcn.140003b70
jmp 0x140005003
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140004d44
mov rcx, qword [rsp + 0x60]
xor edi, edi
mov rdx, rsi
mov dword [rsp + 0x70], edi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
jmp 0x140004d48
mov edi, dword [rsp + 0x70]
lea rdx, [0x140014610]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140004e4c
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x1d0]
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
cmp word [rsi], 0x3d
jne 0x14000528e
cmp dword [rsp + 0x68], 0
je 0x140004dc9
mov rax, qword [rbp - 0x70]
mov rdi, qword [rsp + 0x60]
lea r8, [rbp + 0x1d0]
mov qword [rbp - 0x60], rax
xor eax, eax
lea rdx, [rbp - 0x60]
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
jmp 0x140004ff8
cmp dword [rbp + 0x2230], 0
jne 0x140004e30
test edi, edi
je 0x140004e30
mov rdx, qword [rbp - 0x70]
xor eax, eax
lea rcx, [rbp - 0x60]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], eax
mov qword [rbp - 0x50], rax
call fcn.140003440
test eax, eax
jne 0x140005274
mov rdi, qword [rbp - 0x60]
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140004e22
cmp eax, 2
jne 0x140005257
test rdi, rdi
je 0x140004e30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140003b70
mov ebx, eax
test eax, eax
js 0x1400052ea
jmp 0x140005248
movzx eax, word [rsi]
mov rcx, rsi
test ax, ax
je 0x140004e79
cmp ax, 0x5c
je 0x140004e70
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004e57
jmp 0x140004e79
test rcx, rcx
jne 0x14000528e
cmp dword [rsp + 0x68], 0
je 0x14000506a
mov rdi, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
mov r9d, 0x2001f
mov rdx, rdi
mov r8, rsi
call fcn.140003440
test eax, eax
je 0x140004fd0
lea rcx, [rsp + 0x78]
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
call fcn.140003440
test eax, eax
je 0x140004fd0
mov rbx, qword [rbp - 0x78]
mov qword [rsp + 0x70], 0
test rbx, rbx
je 0x140004f69
cmp qword [rbx], 0
je 0x140004f5a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140004efe
mov eax, 1
xor ebx, ebx
jmp 0x140004fa1
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004f60
mov rcx, qword [rbx]
mov qword [rsp + 0x50], 0
xor ebx, ebx
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
call rax
jmp 0x140004fa1
cmp dword [rbx + 8], 0
jne 0x140004f69
mov eax, 1
xor ebx, ebx
jmp 0x140004fa1
xor ebx, ebx
lea rax, [rbp - 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400052a8
mov rcx, qword [rsp + 0x78]
mov eax, ebx
test rcx, rcx
je 0x140004fbb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x70]
mov dword [rbp - 0x80], ebx
mov qword [rsp + 0x78], rdi
test eax, eax
jne 0x1400052ad
mov rdi, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
cmp word [rsi], 0x3d
jne 0x14000500d
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov r9, rsi
mov rcx, rdi
call fcn.1400047b0
mov ebx, eax
test eax, eax
js 0x1400052ea
cmp word [rsi], 0x7b
jne 0x140005248
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x140005248
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.140004b80
mov ebx, eax
test eax, eax
js 0x1400052ea
mov rdx, rsi
mov rcx, rdi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
jmp 0x140005248
cmp dword [rbp + 0x2230], 0
jne 0x140005092
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
mov r9d, 0x20019
mov r8, rsi
call fcn.140003440
mov edi, eax
test eax, eax
jne 0x140005097
jmp 0x1400050a1
mov edi, 2
mov dword [rbp + 0x2230], 1
lea rcx, [rbp - 0x40]
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
call fcn.14000a03c
test eax, eax
je 0x1400050de
cmp eax, 0xc
je 0x1400052d6
cmp eax, 0x16
je 0x1400052cb
cmp eax, 0x22
je 0x1400052cb
cmp eax, 0x50
jne 0x1400052c0
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140003b70
mov ebx, eax
test eax, eax
js 0x1400052ea
cmp word [rsi], 0x7b
jne 0x140005169
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x140005169
mov eax, dword [rbp + 0x2230]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
mov dword [rsp + 0x20], eax
call fcn.140004b80
mov ebx, eax
test eax, eax
jns 0x140005152
cmp dword [rbp + 0x2230], 0
je 0x1400052ea
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140003950
mov ebx, eax
test eax, eax
js 0x1400052ea
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x2230], eax
cmp edi, 2
je 0x140005248
test edi, edi
je 0x14000518e
test eax, eax
jne 0x140005248
mov ecx, edi
jmp 0x1400052e3
test eax, eax
je 0x1400051ed
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.140003b00
test eax, eax
je 0x1400051ed
lea rdi, str.AppID
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005248
lea rax, [0x1400146d0]
add rdi, 8
cmp rdi, rax
jl 0x1400051b0
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140005248
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140003c60
jmp 0x140005248
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.140003b00
mov rcx, qword [rsp + 0x78]
mov edi, eax
xor eax, eax
test rcx, rcx
je 0x140005217
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], 0
test eax, eax
jne 0x1400052e1
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140005248
test edi, edi
jne 0x140005248
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1400052e1
cmp word [rsi], 0x7d
jne 0x140004c00
jmp 0x1400052ea
mov ecx, eax
call fcn.1400032c0
mov ebx, eax
test rdi, rdi
je 0x1400052ea
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400052ea
mov ecx, eax
call fcn.1400032c0
mov rcx, qword [rbp - 0x60]
mov ebx, eax
test rcx, rcx
je 0x1400052ea
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400052ea
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400052a1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1400052ff
mov rdi, qword [rsp + 0x78]
mov ecx, eax
call fcn.1400032c0
mov ebx, eax
test rdi, rdi
je 0x1400052fd
mov rcx, rdi
jmp 0x1400052f7
mov ecx, 0x80004005
call fcn.140003000
int3
mov ecx, 0x80070057
call fcn.140003000
int3
mov ecx, 0x8007000e
call fcn.140003000
int3
mov ecx, eax
call fcn.1400032c0
mov ebx, eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400052fd
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rdi, qword [rsp + 0x22e8]
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.14000a1a0
add rsp, 0x22f0
pop rsi
pop rbx
pop rbp
ret