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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x11f8
call fcn.180080590
sub rsp, rax
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x1800ba600]
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.1800015d4
mov ebx, eax
test eax, eax
jns 0x180004dd7
jmp 0x180005674
cmp byte [rsi], 0x7d
je 0x180005664
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 0x180004e1d
test ebp, ebp
je 0x180004f1f
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
cmp dword [rsp + 0x70], 0
je 0x180004f1f
and qword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
mov rcx, rsi
mov al, byte [rsi]
test al, al
je 0x180004e77
cmp al, 0x5c
je 0x180004e6e
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x180004e59
jmp 0x180004e77
test rcx, rcx
jne 0x180005563
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180004ed7
add rbx, 8
lea rax, str.bad_allocation
cmp rbx, rax
jl 0x180004e7e
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
and dword [rsp + 0x98], 0
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.180001edc
and qword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
test ebp, ebp
je 0x180004f17
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
mov rdx, rsi
mov rcx, rbp
call fcn.180001728
mov ebx, eax
test eax, eax
js 0x180005664
and dword [rsp + 0x98], 0
jmp 0x1800054ff
and dword [rsp + 0x98], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180004f53
and dword [rsp + 0x74], eax
mov rdx, rsi
mov rbp, qword [rsp + 0x68]
mov rcx, rbp
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
jmp 0x180004f58
mov rbp, qword [rsp + 0x68]
lea rdx, [0x18008bd54]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800050a3
lea rdx, [rsp + 0x1e0]
mov rcx, rbp
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
mov rdx, rsi
mov rcx, rbp
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
cmp byte [rsi], 0x3d
jne 0x1800055be
cmp dword [rsp + 0x70], 0
je 0x18000500a
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.180004814
mov ebx, eax
and qword [rsp + 0xb8], 0
and dword [rsp + 0xc0], 0
test eax, eax
js 0x18000557b
and dword [rsp + 0xc0], 0
jmp 0x1800054ff
cmp dword [rsp + 0x1240], 0
jne 0x180005089
cmp dword [rsp + 0x74], 0
je 0x180005089
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 0x1800055b0
mov rbp, qword [rsp + 0x60]
lea rdx, [rsp + 0x1e0]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x18000506f
cmp eax, 2
jne 0x180005590
test rbp, rbp
je 0x180005084
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
jmp 0x180005089
mov rbp, qword [rsp + 0x68]
mov rdx, rsi
mov rcx, rbp
call fcn.180001728
mov ebx, eax
test eax, eax
js 0x180005664
jmp 0x180005550
mov rcx, rsi
mov al, byte [rsi]
test al, al
je 0x1800050ca
cmp al, 0x5c
je 0x1800050c1
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x1800050ac
jmp 0x1800050ca
test rcx, rcx
jne 0x1800055d6
cmp dword [rsp + 0x70], 0
je 0x1800051f9
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 0x18000512e
test rdi, rdi
je 0x180005114
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 0x1800051b4
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 0x18000517b
test rdi, rdi
je 0x180005165
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 0x1800051b4
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.180001248
test eax, eax
jne 0x1800055f5
mov rdi, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rbp
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
cmp byte [rsi], 0x3d
jne 0x1800054ff
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.180004814
mov ebx, eax
test eax, eax
js 0x1800055ee
mov rdi, qword [rsp + 0x78]
jmp 0x1800054ff
mov ebx, dword [rsp + 0x1240]
test ebx, ebx
jne 0x180005258
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 0x18000525d
test rdi, rdi
je 0x180005244
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 0x18000525d
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.180064398
test eax, eax
je 0x1800052af
cmp eax, 0xc
je 0x180005628
cmp eax, 0x16
je 0x18000561d
cmp eax, 0x22
je 0x18000561d
cmp eax, 0x50
jne 0x180005612
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.180001728
mov ebx, eax
test eax, eax
js 0x180005664
cmp byte [rsi], 0x7b
jne 0x180005339
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x180005339
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.180004d60
mov ebx, eax
test eax, eax
jns 0x180005322
cmp dword [rsp + 0x1240], 0
je 0x180005664
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x1240], eax
cmp ebp, 2
je 0x180005550
test ebp, ebp
je 0x180005361
test eax, eax
je 0x180005633
jmp 0x180005550
test eax, eax
je 0x18000541a
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 0x18000541a
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x18000541a
lea rbp, str.AppID
mov rdx, qword [rbp]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180005550
add rbp, 8
lea rax, str.bad_allocation
cmp rbp, rax
jl 0x1800053c9
cmp dword [rsp + 0x74], 0
je 0x180005550
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x78]
call fcn.180001edc
mov rdi, qword [rsp + 0x78]
jmp 0x180005550
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 0x18000546c
xor ebp, ebp
jmp 0x180005476
xor ebp, ebp
cmp dword [rsp + 0x60], ebp
seta bpl
xor eax, eax
test rdi, rdi
je 0x18000548d
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 0x180005649
cmp dword [rsp + 0x74], eax
je 0x180005550
test ebp, ebp
jne 0x180005550
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.1800011c4
and qword [rsp + 0xa8], 0
and dword [rsp + 0xb0], ebp
test eax, eax
jne 0x18000563e
and dword [rsp + 0xb0], eax
mov rbp, qword [rsp + 0x68]
cmp dword [rsp + 0x70], 0
je 0x180005550
cmp byte [rsi], 0x7b
jne 0x180005550
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x180005550
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.180004d60
mov ebx, eax
test eax, eax
js 0x180005664
mov rdx, rsi
mov rcx, rbp
call fcn.1800015d4
mov ebx, eax
test eax, eax
js 0x180005664
cmp byte [rsi], 0x7d
je 0x180005664
mov eax, 1
jmp 0x180004de5
test rdi, rdi
je 0x180005571
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180005674
test rdi, rdi
je 0x180005589
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x180005674
mov ecx, eax
call fcn.1800011b0
mov ebx, eax
test rbp, rbp
je 0x180005664
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180005664
mov ecx, eax
call fcn.1800011b0
mov ebx, eax
jmp 0x180005664
test rdi, rdi
je 0x1800055cc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180005674
test rdi, rdi
je 0x1800055e4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x180005674
mov rdi, qword [rsp + 0x78]
jmp 0x180005664
mov ecx, eax
call fcn.1800011b0
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18000560e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x180005674
mov ecx, 0x80004005
call fcn.18000100c
int3
mov ecx, 0x80070057
call fcn.18000100c
int3
mov ecx, 0x8007000e
call fcn.18000100c
int3
mov ecx, ebp
call fcn.1800011b0
mov ebx, eax
jmp 0x180005664
mov ecx, eax
call fcn.1800011b0
mov ebx, eax
jmp 0x180005664
mov ecx, eax
call fcn.1800011b0
mov ebx, eax
test rdi, rdi
je 0x180005660
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x180005674
test rdi, rdi
je 0x180005672
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x11e0]
xor rcx, rsp
call fcn.180064d20
add rsp, 0x11f8
pop rdi
pop rsi
pop rbp
pop rbx
ret