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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d90dd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x515080]
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.00463f70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push ecx
push eax
push SysReAllocString
lea ecx, [ebp - 0x30]
call fcn.00408da0
mov byte [ebp - 4], 1
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x464434
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x4ed694
call fcn.00403700
test al, al
jne 0x4640b0
push 0
push 0x4ed694
lea ecx, [ebp - 0x10]
call fcn.00403890
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4640c6
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 0x4640f0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
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 - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x46412d
cmp dword [ebp - 0x10], eax
jne 0x46412d
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x46413f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x464173
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
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 0x4641a0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.SoftwareClasses_s_shellopen
push eax
call fcn.00463f70
mov dword [ebp - 4], 8
push eax
call fcn.00463e80
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 0x4641eb
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.SoftwareClasses_s_shell
push eax
call fcn.00463f70
mov dword [ebp - 4], 0xa
push eax
call fcn.00463e80
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 0x464236
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.SoftwareClasses_s
push eax
call fcn.00463f70
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x18]
push ecx
push eax
push SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.00408da0
mov byte [ebp - 4], 0xd
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x464434
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10]
push 0x4ed694
call fcn.00403700
test al, al
jne 0x4642ae
push 0
push 0x4ed694
lea ecx, [ebp - 0x10]
call fcn.00403890
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4642c4
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 0x4642eb
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x464434
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x10]
push str.URL_Protocol
call fcn.00403700
test al, al
jne 0x464335
push 0xc
push str.URL_Protocol
lea ecx, [ebp - 0x10]
call fcn.00403890
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x46434b
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 0x464372
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
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 - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4643af
cmp dword [ebp - 0x14], eax
jne 0x4643af
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4643c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xc
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4643f5
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
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 0x464420
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
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.00402720
int3