<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NoVirusThanks Blog &#187; kernel</title>
	<atom:link href="http://blog.novirusthanks.org/tag/kernel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.novirusthanks.org</link>
	<description>Security News and Malware Analysis</description>
	<lastBuildDate>Wed, 01 Feb 2012 13:34:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Next Generation of Rustock.Rootkit variants ?</title>
		<link>http://blog.novirusthanks.org/2008/11/next-generation-of-rustock-variants/</link>
		<comments>http://blog.novirusthanks.org/2008/11/next-generation-of-rustock-variants/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 23:05:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[%d.exe]]></category>
		<category><![CDATA[%u.tmp]]></category>
		<category><![CDATA[%ws]]></category>
		<category><![CDATA[%x.sys]]></category>
		<category><![CDATA[Adware.AntiSpyKing]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[BHO]]></category>
		<category><![CDATA[Browser Helper Objects]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[explorer.exe]]></category>
		<category><![CDATA[FraudLoad]]></category>
		<category><![CDATA[iexplore.exe]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[NewWork]]></category>
		<category><![CDATA[ntoskrnl.exe]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[Rustock]]></category>
		<category><![CDATA[services.exe]]></category>
		<category><![CDATA[svchost.exe]]></category>
		<category><![CDATA[variant]]></category>
		<category><![CDATA[\Device\Tcp]]></category>

		<guid isPermaLink="false">http://novirusthanks.org/blog/?p=262</guid>
		<description><![CDATA[Analysis Content: Next Generation of Rustock.Rootkit variants ? Released: 18.11.2008 Author of Analysis: Robert Contact: robert@novirusthanks.org Website: http://novirusthanks.org My friend Steve sent me today a new possible variant of the famous Rustock.Rootkit ! The file I received was named unprotdmp and below there is the report of the scan: Report Generated 17.11.2008 at 23.05.50 (GMT [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Analysis Content: Next Generation of Rustock.Rootkit variants ?<br />
Released: 18.11.2008<br />
Author of Analysis: Robert<br />
Contact: robert@novirusthanks.org<br />
Website: http://novirusthanks.org</p>
</blockquote>
<p>My friend Steve sent me today a new possible variant of the famous <strong>Rustock.Rootkit</strong> !</p>
<p>The file I received was named <strong>unprotdmp</strong> and below there is the report of the scan:</p>
<blockquote><p>Report Generated 	17.11.2008 at 23.05.50 (GMT 1)<br />
Time for scan: 	26 seconds<br />
Filename: 	unprotdmp<br />
File size: 	48 KB<br />
MD5 Hash: 	4D5F159DFBDEC338F6E8E83BAAA0B26F<br />
SHA1 Hash: 	26E87BE9EC0D41965DA6860AE617AF56A449778F<br />
CRC32: 	2928629155<br />
Application Type:	Executable (EXE) 32bit<br />
Packer detected:	Nothing found [Overlay] *<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	<span style="color: red;">File is possible binded with malware</span><br />
ASCII Strings: 	View<br />
Detection Rate:	<span style="color: red;">3</span> on 23</p>
<p>Antivirus 	Result<br />
a-squared 	<span style="color: green;">Nothing found!</span><br />
Avira AntiVir 	<span style="color: red;">TR/Dropper.Gen</span><br />
Avast 	<span style="color: green;">Nothing found!</span><br />
AVG 	<span style="color: green;">Nothing found!</span><br />
BitDefender 	<span style="color: green;">Nothing found!</span><br />
ClamAV 	<span style="color: green;">Nothing found!</span><br />
Comodo 	<span style="color: green;">Nothing found!</span><br />
Dr.Web 	<span style="color: green;">Nothing found!</span><br />
Ewido 	<span style="color: green;">Nothing found!</span><br />
F-PROT 6 	<span style="color: green;">Nothing found!</span><br />
G DATA 	<span style="color: green;">Nothing found!</span><br />
IkarusT3 	<span style="color: green;">Nothing found!</span><br />
Kaspersky 	<span style="color: green;">Nothing found!</span><br />
McAfee 	<span style="color: green;">Nothing found!</span><br />
NOD32 v3 	<span style="color: green;">Nothing found!</span><br />
Norman 	<span style="color: green;">Nothing found!</span><br />
Panda 	<span style="color: green;">Nothing found!</span><br />
QuickHeal 	<span style="color: green;">Nothing found!</span><br />
Solo Antivirus 	<span style="color: green;">Nothing found!</span><br />
Sophos 	<span style="color: green;">Nothing found!</span><br />
TrendMicro 	<span style="color: green;">Nothing found!</span><br />
VBA32 	<span style="color: red;">Malware-Cryptor.Win32.General.3</span><br />
VirusBuster 	<span style="color: green;">Nothing found!</span></p>
</blockquote>
<p>We can see a lot of very interesting strings inside the code of the file:</p>
<blockquote><p>ExAllocatePool<br />
ExFreePool<br />
ZwQuerySystemInformation<br />
ZwOpenKey<br />
ZwCreateKey<br />
%win<br />
svchost.exe<br />
ZwCreateEvent<br />
TransportAddress<br />
ConnectionContext<br />
<strong>C:\progz\NewWork\driver\objfre\i386\driver.pdb</strong><br />
LoadLibraryA<br />
GetProcAddress<br />
SetEvent<br />
Init<br />
CreateThread<br />
SleepEx<br />
FATAL_UNHANDLED_HARD_ERROR</p>
<p>wcschr<br />
ZwClose<br />
ZwSetValueKey<br />
wcslen<br />
ZwCreateKey<br />
RtlInitUnicodeString<br />
ZwUnmapViewOfSection<br />
ExFreePoolWithTag<br />
swprintf<br />
ExAllocatePoolWithTag<br />
ZwMapViewOfSection<br />
ZwOpenSection<br />
PsTerminateSystemThread<br />
KeDelayExecutionThread<br />
ZwCreateEvent<br />
ZwOpenEvent<br />
PsCreateSystemThread<br />
PsGetCurrentProcessId<br />
ZwQuerySystemInformation<br />
IoGetCurrentProcess<br />
ZwDeleteKey<br />
ZwEnumerateKey<br />
ZwOpenKey<br />
IoGetRelatedDeviceObject<br />
ZwCreateFile<br />
ZwReadFile<br />
ZwQueryInformationFile<br />
KeReleaseMutex<br />
KeWaitForSingleObject<br />
KeInitializeEvent<br />
KeInsertQueueApc<br />
KeInitializeApc<br />
KeClearEvent<br />
ObfDereferenceObject<br />
PsLookupThreadByThreadId<br />
IoFreeMdl<br />
KeDetachProcess<br />
MmMapLockedPages<br />
KeAttachProcess<br />
MmBuildMdlForNonPagedPool<br />
IoAllocateMdl<br />
MmUnmapLockedPages<br />
NtSetInformationProcess<br />
ObReferenceObjectByHandle<br />
PsLookupProcessByProcessId<br />
PsSetCreateProcessNotifyRoutine<br />
KeInitializeMutex<br />
wcstombs<br />
IofCompleteRequest<br />
ProbeForRead<br />
KeGetCurrentThread<br />
KeSetEvent<br />
KeServiceDescriptorTable<br />
MmProbeAndLockPages<br />
ObfReferenceObject<br />
SeDeleteAccessState<br />
RtlCopyUnicodeString<br />
SeSetAccessStateGenericMapping<br />
RtlMapGenericMask<br />
SeCreateAccessState<br />
ObCreateObject<br />
IoFileObjectType<br />
IoFreeIrp<br />
IoAllocateIrp<br />
ZwOpenFile<br />
IoReuseIrp<br />
IoGetDeviceObjectPointer<br />
ProbeForWrite<br />
MmUnlockPages<br />
IoCancelIrp<br />
IofCallDriver<br />
_allmul<br />
KeUnstackDetachProcess<br />
KeStackAttachProcess<br />
ntoskrnl.exe<br />
_except_handler3<br />
ExReleaseFastMutex<br />
ExAcquireFastMutex<br />
HAL.dll<br />
NDIS.SYS</p>
<p>IoGetRelatedDeviceObject<br />
KeInitializeEvent<br />
DbgPrint<br />
IoAllocateMdl<br />
KeInitializeDpc<br />
ntoskrnl.exe</p>
<p>ImagePath<br />
Type<br />
Start<br />
ErrorControl<br />
\BaseNamedObjects\5B37FB3B-984D-1E57-FF38-AA681BE5C8D8<br />
\registry\machine\system\CurrentControlSet\Services\%x<br />
\SystemRoot\System32\drivers\%x.sys<br />
\BaseNamedObjects\{60F9FCD0-8DD4-6453-E394-771298D2A470}<br />
services.exe<br />
\registry\machine\system\CurrentControlSet\Enum\Root\LEGACY_%ws<br />
\SystemRoot\System32\ntdll.dll<br />
%ws%ws<br />
\Device\Tcp<br />
svchost.exe<br />
\SystemRoot\Temp\%u.tmp<br />
.log<br />
\registry\machine\system<br />
\Device\Tcp</p>
</blockquote>
<p>These are interesting strings uh !?</p>
<p>So lets do a small analysis only based on strings we found:</p>
<p><strong>%win</strong> can stand for Windows Directory (similar to the Environment variable &#8211; %WinDir%)</p>
<p><strong>svchost.exe</strong> can be a process where the malware will inject code.</p>
<p><strong>C:\progz\NewWork\driver\objfre\i386\driver.pdb</strong> ==&gt; Very interesting string, is different from all the other variants of <strong>Rustock.Rootkit</strong> and should stand for a new version of the malware !!!</p>
<p><strong>HAL.dll</strong> &#8211; Windows Hardware Abstraction Layer (HAL), is a file that hides hardware complexities from Win applications.</p>
<p><strong>NDIS.sys</strong> &#8211; Network Driver Interface Specification (NDIS) is an application programming interface (API) for network interface cards (NICs).</p>
<p><strong>\registry\machine\system\CurrentControlSet\Services\%x</strong> is the path of the Services and <strong>%x</strong> should be the variable that will be overwritten with the malware Service name.</p>
<p><strong>\SystemRoot\System32\drivers\%x.sys</strong> is the path where are stored drivers and <strong>%x</strong> should be the variable that will be overwritten with the name of the malware driver.</p>
<p><strong>services.exe</strong> can be used by malware to load and start services or the malware can inject code into it.</p>
<p>We can also see that into the file have <strong>embedded 2 PE</strong>, so, maybe, one is the kernel driver of the rootkit and the other one is the user-mode botnet.</p>
<p>Unfortunately I can not test/run this sample so I can only show this small analysis, anyway very interesting code!</p>
<p>Another file that was present with this rootkit was named <strong>sxmg4.dll</strong> and below there is the report of the scan:</p>
<blockquote><p>Report Generated 	18.11.2008 at 0.13.08 (GMT 1)<br />
Time for scan: 	33 seconds<br />
Filename: 	sxmg4.dll<br />
File size: 	68 KB<br />
MD5 Hash: 	15EB3167B2B87F168B1D997530D41003<br />
SHA1 Hash: 	206C3E2D26F051C988D38F3B22215F81AE68C54A<br />
CRC32: 	542643393<br />
Application Type:	Dinamyc Link Library (DLL) 32bit<br />
Packer detected:	Microsoft Visual C++ 6.0 DLL<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	Nothing found<br />
ASCII Strings: 	View<br />
Detection Rate:	<span style="color: red;">5</span> on 23</p>
<p>Antivirus 	Result<br />
a-squared 	<span style="color: red;">Trojan.Win32.BHO.d!IK</span><br />
Avira AntiVir 	<span style="color: green;">Nothing found!</span><br />
Avast 	<span style="color: green;">Nothing found!</span><br />
AVG 	<span style="color: red;">Trojan horse BackDoor.Ircbot.GEV</span><br />
BitDefender 	<span style="color: green;">Nothing found!</span><br />
ClamAV 	<span style="color: green;">Nothing found!</span><br />
Comodo <span style="color: green;"> Nothing found!</span><br />
Dr.Web 	<span style="color: green;">Nothing found!</span><br />
Ewido 	<span style="color: green;">Nothing found!</span><br />
F-PROT 6 	<span style="color: green;">Nothing found!</span><br />
G DATA 	<span style="color: green;">Nothing found!</span><br />
IkarusT3 	<span style="color: red;">Trojan.Win32.BHO.d</span><br />
Kaspersky 	<span style="color: green;">Nothing found!</span><br />
McAfee 	<span style="color: green;">Nothing found!</span><br />
NOD32 v3 	<span style="color: red;">Win32/Adware.AntiSpyKing application</span><br />
Norman 	<span style="color: green;">Nothing found!</span><br />
Panda 	<span style="color: green;">Nothing found!</span><br />
QuickHeal 	<span style="color: green;">Nothing found!</span><br />
Solo Antivirus 	<span style="color: green;">Nothing found!</span><br />
Sophos 	<span style="color: green;">Nothing found!</span><br />
TrendMicro 	<span style="color: green;">Nothing found!</span><br />
VBA32 	<span style="color: red;">Trojan-Downloader.Win32.FraudLoad.vdjm</span><br />
VirusBuster 	<span style="color: green;">Nothing found!</span></p>
</blockquote>
<p><strong>Import Tables</strong>:</p>
<blockquote><p>KERNEL32.DLL<br />
+GetTempPathA<br />
+WaitForSingleObject<br />
+GetLocalTime<br />
+DisableThreadLibraryCalls<br />
+InterlockedDecrement<br />
+MoveFileExA<br />
+LeaveCriticalSection<br />
+EnterCriticalSection<br />
+lstrlenW<br />
+GetSystemDirectoryA<br />
+GetWindowsDirectoryA<br />
+GetModuleFileNameA<br />
+GetTickCount<br />
+DeleteCriticalSection<br />
+InitializeCriticalSection<br />
+SystemTimeToFileTime<br />
+GetFileAttributesA<br />
+GetModuleHandleA<br />
+FindResourceA<br />
+SizeofResource<br />
+GetLastError<br />
+WideCharToMultiByte<br />
+Sleep<br />
+lstrlenA<br />
+MultiByteToWideChar<br />
+CloseHandle<br />
+InterlockedIncrement<br />
ADVAPI32.dll<br />
+RegNotifyChangeKeyValue<br />
ATL.DLL<br />
GDI32.dll<br />
+GetDeviceCaps<br />
MSVCP60.dll<br />
+?_Xran@std@@YAXXZ<br />
+??1_Winit@std@@QAE@XZ<br />
+??0_Winit@std@@QAE@XZ<br />
+??1Init@ios_base@std@@QAE@XZ<br />
+??0Init@ios_base@std@@QAE@XZ<br />
+?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z<br />
+?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z<br />
+?_Freeze@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEXXZ<br />
+?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PAD0PBD@Z<br />
+?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z<br />
+?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z<br />
+?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z<br />
+??0_Lockit@std@@QAE@XZ<br />
+??1_Lockit@std@@QAE@XZ<br />
+??8std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z<br />
+?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z<br />
+??8std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z<br />
+??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z<br />
+?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z<br />
+?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z<br />
+?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB<br />
+?_C@?1??_Nullstr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@CAPBDXZ@4DB<br />
+?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z<br />
+??9std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z<br />
+??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ<br />
+?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEX_N@Z<br />
MSVCRT.dll<br />
+_mbslwr<br />
+wcslen<br />
+_vsnprintf<br />
+strcat<br />
+memcmp<br />
+memmove<br />
+isspace<br />
+rand<br />
+memcpy<br />
+strtok<br />
+fclose<br />
+fread<br />
+fopen<br />
+fwrite<br />
+strrchr<br />
+strcmp<br />
+ftell<br />
+fseek<br />
+_beginthreadex<br />
+_purecall<br />
+_ftol<br />
+pow<br />
+strtol<br />
+__dllonexit<br />
+_strlwr<br />
+_onexit<br />
+_except_handler3<br />
+?terminate@@YAXXZ<br />
+_initterm<br />
+_adjust_fdiv<br />
+??2@YAPAXI@Z<br />
+__CxxFrameHandler<br />
+srand<br />
+free<br />
+strlen<br />
+strncpy<br />
+calloc<br />
ole32.dll<br />
+CoCreateInstance<br />
OLEAUT32.dll<br />
SHELL32.dll<br />
+ShellExecuteA<br />
USER32.dll<br />
+KillTimer</p>
</blockquote>
<p>And below there are some extracted strings:</p>
<blockquote><p>http://<br />
class=&#8221;title&#8221;<br />
text=<br />
gping=<br />
class=yschttl<br />
class=l<br />
n[keyword]<br />
c.php?id=<br />
http<br />
\TSoft<br />
Software<br />
\lt.res<br />
\sft.res<br />
open<br />
rundll32.exe<br />
%s,RunMain<br />
\sn.txt<br />
popurl<br />
DOWNLOAD<br />
clickreferer<br />
referer<br />
$number<br />
feed<br />
KEYS<br />
SECT<br />
%d.exe<br />
<strong>Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects\{32C620D6-CC10-4e6a-9715-BACACD5B0E61}</strong> ====&gt; <strong>here we can see that will install BHO</strong><br />
Systray component<br />
SOFTWARE\Microsoft\Active Setup\Installed Components\{A744F16C-B2D5-4138-81A2-085CDFCDE83A}<br />
WebProxy<br />
{A744F16C-B2D5-4138-81A2-085CDFCDE83A}<br />
SOFTWARE\Microsoft\Windows\CurrentVersion\ShellServiceObjectDelayLoad<br />
SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects<br />
EulaAccepted<br />
Software\Sysinternals\Bluescreen Screen Saver<br />
iexplore.exe<br />
Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN<br />
explorer.exe<br />
F\bulksoft.ini<br />
btimeout<br />
mbinterval<br />
binterval<br />
mbcaption<br />
bcaption<br />
mburl<br />
burl<br />
mbtext<br />
btext<br />
PROM<br />
lang<br />
PSECT<br />
Software\AntispyKnight<br />
\sysin.scr<br />
_WSCLAS_<br />
InstallLanguage<br />
SYSTEM\CurrentControlSet\Control\Nls\Language<br />
Software\Microsoft\Active Setup\Installed Components\{A744F16C-B2D5-4138-81A2-085CDFCDE83A}<br />
Systray<br />
Software\Microsoft\Windows\CurrentVersion\Run<br />
rundll32.exe %s,RunMain<br />
Hookd<br />
YIHookWWW</p>
</blockquote>
<p>We can see 2 .EXE:</p>
<blockquote><p>iexplore.exe<br />
explorer.exe</p>
</blockquote>
<p>that probably are the .EXEs where the malware will inject the dll or other code.</p>
<p>We can see a reference to a registry key used to add keys to autostart a program:</p>
<blockquote><p>Software\Microsoft\Windows\CurrentVersion\Run</p>
</blockquote>
<p>We can see also a reference to a possible software that will be installed:</p>
<blockquote><p>Software\AntispyKnight</p>
</blockquote>
<p>and if we check also the detection name of:</p>
<blockquote><p>NOD32 v3 	<span style="color: red;">Win32/Adware.AntiSpyKing application</span><br />
VBA32 	<span style="color: red;">Trojan-Downloader.Win32.FraudLoad.vdjm</span></p>
</blockquote>
<p>We can maybe imagine that will be installed a rogue software in our computer that is possibly named as <strong>AntispyKnight</strong>.</p>
<p>Ok, this analysis end here : )</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.novirusthanks.org/2008/11/next-generation-of-rustock-variants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

