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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
mov dword [ebp - 4], 1
push eax
call ebx
lea eax, [ebp - 0x208]
push str.ContentType
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebp - 0x208]
mov esi, SysReAllocString
push eax
push esi
call edi
push dword [ebp + 8]
push esi
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push eax
push esi
call edi
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.0044ab00
xor ebx, ebx
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call edi
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.0044ab00
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call edi
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.0044ab00
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call edi
cmp dword [ebp + 0x1c], ebx
jne 0x40937b
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40924e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40924e
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x18]
push 1
push ebx
push 0x486238
push dword [ebp - 8]
call edi
test eax, eax
mov dword [ebp - 4], 1
je 0x409251
mov dword [ebp - 4], ebx
push dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp dword [ebp - 4], ebx
je 0x4092a3
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4092a3
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [ebp - 4], 1
je 0x4092a6
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call edi
cmp dword [ebp - 4], ebx
je 0x4092f9
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x208]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4092f9
push 1
pop esi
jmp 0x4092fb
xor esi, esi
lea eax, [ebp - 0x408]
push 0x486234
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x408]
push eax
call edi
lea eax, [ebp - 0x408]
push str.___1
push eax
call edi
cmp esi, ebx
je 0x409357
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x408]
push eax
push 1
pop esi
push esi
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [ebp - 4], esi
je 0x40935a
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jne 0x40937b
push 0x30
push str.Setup
push str.A_file_association_could_not_be_created._Contact_your_system_administrator_for_assistance.
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret