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

Disassembly:
push 0xffffffffffffffff
push 0x40f961
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x138], 0
call sub.MFC42.DLL_CString::operator
push 0x41610c
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Insert
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push eax
push 0x80000000
call esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040f000
push 1
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::Delete
push str.file
lea ecx, [esp + 0x1c]
call fcn.0040f078
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push ecx
push 0x80000000
call esi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.0040f000
push str.DefaultIcon
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 2
call fcn.0040f078
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push edx
push 0x80000000
call esi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x4160ec
lea ecx, [esp + 0x14]
call fcn.0040f078
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push eax
push 0x80000000
call esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str._shellopen
lea ecx, [esp + 0x14]
call fcn.0040f078
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push ecx
push 0x80000000
call esi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
push str._shellopencommand
lea ecx, [esp + 0x14]
call fcn.0040f078
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push edx
push 0x80000000
call esi
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0x14]
push eax
push ecx
push 0x80000000
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401fdc
push str.file
lea ecx, [esp + 0x20]
call fcn.0040f078
push 1
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Delete
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x2c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x20], esi
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [edx - 8]
lea ecx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x18]
push ecx
push 1
push 0
push 0x4166a8
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str.DefaultIcon
lea ecx, [esp + 0x14]
call fcn.0040f078
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push 0x80000000
call esi
test eax, eax
jne 0x4020fc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0x4166a8
push edx
call esi
test eax, eax
jne 0x4020f5
mov edi, dword [esp + 0x140]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4160c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x144]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push 0x4160c4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push 1
push 0
push 0x4166a8
push ecx
call ebx
mov edx, dword [esp + 0x20]
push edx
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push str._shellopencommand
lea ecx, [esp + 0x14]
call fcn.0040f078
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push 0x80000000
call esi
test eax, eax
jne 0x4021ca
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0x4166a8
push edx
call esi
test eax, eax
jne 0x4021c3
mov edi, dword [esp + 0x140]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4160c0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push 1
push 0
push 0x4166a8
push ecx
call ebx
mov edx, dword [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret