Function at 0x406455
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, 0x80000000
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.0042a630
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.0042a630
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.0042a630
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call edi
cmp dword [ebp + 0x1c], ebx
jne 0x4066be
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 0x406591
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 0x406591
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x18]
push 1
push ebx
push 0x43db48
push dword [ebp - 8]
call edi
test eax, eax
mov dword [ebp - 4], 1
je 0x406594
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 0x4065e6
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 0x4065e6
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 0x4065e9
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 0x40663c
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 0x40663c
push 1
pop esi
jmp 0x40663e
xor esi, esi
lea eax, [ebp - 0x408]
push 0x43db44
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 0x40669a
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 0x40669d
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jne 0x4066be
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