Function at 0x407b65
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, SysReAllocStringLen
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.00433220
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.00433220
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.00433220
pop ecx
mov byte [eax], bl
pop ecx
lea eax, [ebp - 0x208]
push eax
push esi
call edi
cmp dword [ebp + 0x1c], ebx
jne 0x407dce
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 0x407ca1
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 0x407ca1
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x18]
push 1
push ebx
push 0x455e28
push dword [ebp - 8]
call edi
test eax, eax
mov dword [ebp - 4], 1
je 0x407ca4
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 0x407cf6
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 0x407cf6
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 0x407cf9
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 0x407d4c
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 0x407d4c
push 1
pop esi
jmp 0x407d4e
xor esi, esi
lea eax, [ebp - 0x408]
push 0x455e24
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 0x407daa
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 0x407dad
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jne 0x407dce
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