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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0xc]
push 0x2e
push ecx
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x31c], eax
call fcn.0047e88d
mov edi, eax
add esp, 8
test edi, edi
jne 0x417fcc
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d33b
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x314]
push esi
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
push edi
push 0x80000000
call ebx
mov esi, eax
test esi, esi
jne 0x4181f4
lea eax, [edi + 2]
push eax
push str._sfile
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401040
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea ecx, [ebp - 0x104]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418031
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x4180d6
mov edx, dword [ebp - 0x318]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4180a4
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x31c]
test esi, esi
je 0x418165
lea eax, [ebp - 0x104]
push eax
push str._sDefaultIcon
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.00401040
add esp, 0x10
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x30c]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x418165
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418133
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x104]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.00401040
add esp, 0x10
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x30c]
push eax
push 0x80000000
call ebx
mov esi, eax
test esi, esi
jne 0x4181f4
mov esi, dword [ebp - 0x320]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4181c0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push 0
push dword [ebp - 0x310]
call edi
push dword [ebp - 0x310]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
pop edi
call fcn.0047d33b
mov esp, ebp
pop ebp
ret