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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x11f8
call fcn.14001a360
sub rsp, rax
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x1400267d0]
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.1400022ec
mov ebx, eax
test eax, eax
jns 0x140004c03
jmp 0x1400054a0
cmp byte [rsi], 0x7d
je 0x140005490
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 0x140004c49
test ebp, ebp
je 0x140004d4b
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
cmp dword [rsp + 0x70], 0
je 0x140004d4b
and qword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
mov rcx, rsi
mov al, byte [rsi]
test al, al
je 0x140004ca3
cmp al, 0x5c
je 0x140004c9a
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004c85
jmp 0x140004ca3
test rcx, rcx
jne 0x14000538f
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004d03
add rbx, 8
lea rax, [0x14001c800]
cmp rbx, rax
jl 0x140004caa
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
and dword [rsp + 0x98], 0
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.14000278c
and qword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
test ebp, ebp
je 0x140004d43
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
mov rdx, rsi
mov rcx, rbp
call fcn.140002440
mov ebx, eax
test eax, eax
js 0x140005490
and dword [rsp + 0x98], 0
jmp 0x14000532b
and dword [rsp + 0x98], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004d7f
and dword [rsp + 0x74], eax
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
jmp 0x140004d84
mov rbp, qword [rsp + 0x68]
lea rdx, [0x14001c744]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004ecf
lea rdx, [rsp + 0x1e0]
mov rcx, rbp
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
mov rdx, rsi
mov rcx, rbp
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
cmp byte [rsi], 0x3d
jne 0x1400053ea
cmp dword [rsp + 0x70], 0
je 0x140004e36
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.140004640
mov ebx, eax
and qword [rsp + 0xb8], 0
and dword [rsp + 0xc0], 0
test eax, eax
js 0x1400053a7
and dword [rsp + 0xc0], 0
jmp 0x14000532b
cmp dword [rsp + 0x1240], 0
jne 0x140004eb5
cmp dword [rsp + 0x74], 0
je 0x140004eb5
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 0x1400053dc
mov rbp, qword [rsp + 0x60]
lea rdx, [rsp + 0x1e0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140004e9b
cmp eax, 2
jne 0x1400053bc
test rbp, rbp
je 0x140004eb0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
jmp 0x140004eb5
mov rbp, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, rbp
call fcn.140002440
mov ebx, eax
test eax, eax
js 0x140005490
jmp 0x14000537c
mov rcx, rsi
mov al, byte [rsi]
test al, al
je 0x140004ef6
cmp al, 0x5c
je 0x140004eed
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140004ed8
jmp 0x140004ef6
test rcx, rcx
jne 0x140005402
cmp dword [rsp + 0x70], 0
je 0x140005025
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 0x140004f5a
test rdi, rdi
je 0x140004f40
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 0x140004fe0
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 0x140004fa7
test rdi, rdi
je 0x140004f91
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 0x140004fe0
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.140001f60
test eax, eax
jne 0x140005421
mov rdi, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rbp
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
cmp byte [rsi], 0x3d
jne 0x14000532b
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.140004640
mov ebx, eax
test eax, eax
js 0x14000541a
mov rdi, qword [rsp + 0x78]
jmp 0x14000532b
mov ebx, dword [rsp + 0x1240]
test ebx, ebx
jne 0x140005084
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 0x140005089
test rdi, rdi
je 0x140005070
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 0x140005089
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.14000dbe0
test eax, eax
je 0x1400050db
cmp eax, 0xc
je 0x140005454
cmp eax, 0x16
je 0x140005449
cmp eax, 0x22
je 0x140005449
cmp eax, 0x50
jne 0x14000543e
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140002440
mov ebx, eax
test eax, eax
js 0x140005490
cmp byte [rsi], 0x7b
jne 0x140005165
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x140005165
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.140004b8c
mov ebx, eax
test eax, eax
jns 0x14000514e
cmp dword [rsp + 0x1240], 0
je 0x140005490
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x1240], eax
cmp ebp, 2
je 0x14000537c
test ebp, ebp
je 0x14000518d
test eax, eax
je 0x14000545f
jmp 0x14000537c
test eax, eax
je 0x140005246
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 0x140005246
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x140005246
lea rbp, str.AppID
mov rdx, qword [rbp]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14000537c
add rbp, 8
lea rax, [0x14001c800]
cmp rbp, rax
jl 0x1400051f5
cmp dword [rsp + 0x74], 0
je 0x14000537c
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.14000278c
mov rdi, qword [rsp + 0x78]
jmp 0x14000537c
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 0x140005298
xor ebp, ebp
jmp 0x1400052a2
xor ebp, ebp
cmp dword [rsp + 0x60], ebp
seta bpl
xor eax, eax
test rdi, rdi
je 0x1400052b9
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 0x140005475
cmp dword [rsp + 0x74], eax
je 0x14000537c
test ebp, ebp
jne 0x14000537c
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.140001edc
and qword [rsp + 0xa8], 0
and dword [rsp + 0xb0], ebp
test eax, eax
jne 0x14000546a
and dword [rsp + 0xb0], eax
mov rbp, qword [rsp + 0x68]
cmp dword [rsp + 0x70], 0
je 0x14000537c
cmp byte [rsi], 0x7b
jne 0x14000537c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x14000537c
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140004b8c
mov ebx, eax
test eax, eax
js 0x140005490
mov rdx, rsi
mov rcx, rbp
call fcn.1400022ec
mov ebx, eax
test eax, eax
js 0x140005490
cmp byte [rsi], 0x7d
je 0x140005490
mov eax, 1
jmp 0x140004c11
test rdi, rdi
je 0x14000539d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1400054a0
test rdi, rdi
je 0x1400053b5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400054a0
mov ecx, eax
call fcn.140001e28
mov ebx, eax
test rbp, rbp
je 0x140005490
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005490
mov ecx, eax
call fcn.140001e28
mov ebx, eax
jmp 0x140005490
test rdi, rdi
je 0x1400053f8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1400054a0
test rdi, rdi
je 0x140005410
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1400054a0
mov rdi, qword [rsp + 0x78]
jmp 0x140005490
mov ecx, eax
call fcn.140001e28
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000543a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400054a0
mov ecx, 0x80004005
call fcn.140001dc0
int3
mov ecx, 0x80070057
call fcn.140001dc0
int3
mov ecx, 0x8007000e
call fcn.140001dc0
int3
mov ecx, ebp
call fcn.140001e28
mov ebx, eax
jmp 0x140005490
mov ecx, eax
call fcn.140001e28
mov ebx, eax
jmp 0x140005490
mov ecx, eax
call fcn.140001e28
mov ebx, eax
test rdi, rdi
je 0x14000548c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400054a0
test rdi, rdi
je 0x14000549e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x11e0]
xor rcx, rsp
call fcn.14000cff0
add rsp, 0x11f8
pop rdi
pop rsi
pop rbp
pop rbx
ret