Function at 0x409a50
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x10]
push 0x42330c
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00404c40
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea eax, [ebp - 0x108]
add esp, 0x10
push eax
push SysReAllocString
call ebx
push 0
lea eax, [ebp - 0x210]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x409aee
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
push esi
push str._sFile
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00404c40
lea ecx, [ebp - 0x108]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409b11
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x4230f1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x210]
test eax, eax
je 0x409b60
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x210]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call ebx
test eax, eax
je 0x409bba
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x214]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409bc3
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x214]
push 1
push 0
push 0x4230f2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x210]
test eax, eax
je 0x409c0d
call esi
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
call esi
lea eax, [ebp - 0x108]
push eax
push str._sDefaultIcon
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c40
add esp, 0x10
lea eax, [ebp - 0x210]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x409ba4
test edi, edi
je 0x409c63
cmp byte [edi], al
jne 0x409c68
mov edi, 0x423328
push edi
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push str._s__s
push 0x104
push eax
call fcn.00404c40
lea ecx, [ebp - 0x20c]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c91
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4230f3
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
test eax, eax
jne 0x409bf5
call esi
lea eax, [ebp - 0x108]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c40
add esp, 0x10
lea eax, [ebp - 0x210]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call ebx
test eax, eax
je 0x409d2a
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push str.__s_____1_
push 0x104
push eax
call fcn.00404c40
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d52
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4230fe
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
test eax, eax
je 0x409d99
call esi
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
call esi
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b37e
mov esp, ebp
pop ebp
ret