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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e68d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.SoftwareClasses_s_shellopencommand
push eax
call fcn.00466490
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push ecx
push eax
push SysReAllocString
lea ecx, [ebp - 0x34]
call fcn.00409000
mov byte [ebp - 4], 1
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x466970
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, 0x530654
shr eax, 0x10
mov ecx, 0x530654
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4665d2
movzx eax, cx
lea ecx, [ebp - 0x10]
push eax
call fcn.004043d0
jmp 0x4665e1
push 0
push 0x530654
lea ecx, [ebp - 0x10]
call fcn.00403870
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4665f7
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 1
or ebx, 0xffffffff
lea ecx, [esi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x466621
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x46665e
cmp dword [ebp - 0x10], eax
jne 0x46665e
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x466670
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4666a4
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4666d1
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.SoftwareClasses_s_shellopen
push eax
call fcn.00466490
mov dword [ebp - 4], 8
push eax
call fcn.004663a0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46671c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.SoftwareClasses_s_shell
push eax
call fcn.00466490
mov dword [ebp - 4], 0xa
push eax
call fcn.004663a0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x466767
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.SoftwareClasses_s
push eax
call fcn.00466490
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x18]
push ecx
push eax
push SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.00409000
mov byte [ebp - 4], 0xd
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x466970
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x1c], 0
jne 0x4667d8
mov eax, 0x530654
movzx eax, ax
push eax
call fcn.004043d0
jmp 0x4667e4
push 0
push 0x530654
call fcn.00403870
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4667fa
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 0xd
lea ecx, [esi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x466821
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x466970
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x11
mov eax, str.URL_Protocol
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x466865
movzx eax, ax
push eax
call fcn.004043d0
jmp 0x466871
push 0xc
push str.URL_Protocol
call fcn.00403870
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x466887
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [ebp - 4], 0xd
lea ecx, [esi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4668ae
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4668eb
cmp dword [ebp - 0x14], eax
jne 0x4668eb
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4668fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xc
mov eax, ebx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x466931
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46695c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004027d0
int3