Function at 0x401d20
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x405c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CString::CString_2
push 0x40947c
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00405858
lea edi, [esi + 0x24]
push str.Program_FilesInternet_Explorer_
lea eax, [esp + 0x20]
push edi
push eax
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [esp + 0x14]
call fcn.00405822
push str.Program_FilesInternet_Exploreriexplore.exe
lea ecx, [esp + 0x14]
call fcn.00405828
push 0x409448
lea ecx, [esp + 0x14]
call fcn.00405828
lea ebp, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebp
call fcn.00405822
push 0xf003f
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MACHINESOFTWAREClientsStartMenuInternetIEXPLORE.EXE_shellOpencommand
call fcn.00405858
mov ecx, esi
call fcn.00403e00
push 0xf003f
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.ROOTCLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
call fcn.00405858
mov ecx, esi
call fcn.00403e00
xor edi, edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 4
push ecx
push 0xf003f
push ebx
push str.SOFTWAREClientsStartMenuInternetIEXPLORE.EXE_shellOpencommand
push 0x80000002
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401e42
mov edi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x1c], edi
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x401f83
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x104
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ebx
push edx
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push 0x409bb8
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x40947c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x401ef2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 0x40947c
push edx
call sub.MFC42.DLL_operator
push 0x40947c
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x40], 5
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString
push 0x22
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString
push ebp
lea edx, [esp + 0x28]
push 0x409364
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 8
call fcn.00405822
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebp
push 1
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, ebx
je 0x401f83
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x401fcd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push 1
push ebx
push 0x409bb8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x20019
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MACHINESOFTWAREClientsStartMenuInternetIEXPLORE.EXE_shellOpencommand
call fcn.00405858
mov ecx, esi
call fcn.00403e00
push 0x20019
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.ROOTCLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
call fcn.00405858
mov ecx, esi
call fcn.00403e00
cmp edi, ebx
je 0x402012
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret