<?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>PELock Blog &#187; Bartosz</title>
	<atom:link href="http://www.pelock.com/blog/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pelock.com/blog</link>
	<description>Assembler, software protection, code obfuscation and other crazy stuff.</description>
	<lastBuildDate>Tue, 30 Nov 2010 02:03:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>.netshrink v2.0</title>
		<link>http://www.pelock.com/blog/2010/11/30/netshrink-v2-0/</link>
		<comments>http://www.pelock.com/blog/2010/11/30/netshrink-v2-0/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 02:03:53 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/?p=51</guid>
		<description><![CDATA[Finally, something new. Today I&#8217;ve released a new version of .netshrink a .NET Framework application compressor and password protector...]]></description>
			<content:encoded><![CDATA[<p><strong>Finally</strong>, something new. Today I&#8217;ve released a new version of <strong>.netshrink</strong> a .NET Framework application compressor and password protector.</p>
<p><a href="http://www.pelock.com/products/netshrink"><img src="http://www.pelock.com/blog/wp-content/uploads/2010/11/netshrink_main.png" alt="" title=".netshrink v2.0" width="550" height="408" class="alignnone size-full wp-image-52" /></a></p>
<p>List of changes:</p>
<p>v2.0</p>
<ul>
<li>resources preservation (all resources, including icons, manifests etc.)</li>
<li>compression of command line executables</li>
<li>support added for .NET Framework 3.0, 3.5 and 4.0</li>
<li>.NET Framework auto detection</li>
<li>updated password query dialogs</li>
<li>enter password from the command line for protected files</li>
<li>minor bugs fixed</li>
<li>help file updated to .chm format</li>
</ul>
<p>v1.0</p>
<ul>
<li>first public release</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2010/11/30/netshrink-v2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RCE Directory</title>
		<link>http://www.pelock.com/blog/2008/04/04/rce-directory/</link>
		<comments>http://www.pelock.com/blog/2008/04/04/rce-directory/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 11:05:14 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[rce]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2008/04/04/rce-directory/</guid>
		<description><![CDATA[Just a small project of mine &#8211; a link directory to RCE tools, blogs and everything else more or less related to reverse engineering.

Feel free to add your own links!]]></description>
			<content:encoded><![CDATA[<p>Just a small project of mine &#8211; a link directory to RCE tools, blogs and everything else more or less related to <strong>reverse engineering</strong>.</p>
<p><a href='http://www.rcedir.com'><img src='http://www.pelock.com/blog/wp-content/uploads/2008/04/rcedir.png' alt='RCE Directory' /></a></p>
<p>Feel free to <a href="http://www.rcedir.com/submit.php">add your own links</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2008/04/04/rce-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security News</title>
		<link>http://www.pelock.com/blog/2007/09/27/security-news/</link>
		<comments>http://www.pelock.com/blog/2007/09/27/security-news/#comments</comments>
		<pubDate>Thu, 27 Sep 2007 19:47:00 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Reversing]]></category>
		<category><![CDATA[secnews]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/09/27/security-news/</guid>
		<description><![CDATA[My new project Security News has started. It&#8217;s a small news page in polish language focused on reverse engineering.]]></description>
			<content:encoded><![CDATA[<p>My new project <a href="http://www.secnews.pl">Security News</a> has started. It&#8217;s a small news page in polish language focused on reverse engineering.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/09/27/security-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Really easy scripting with ODbgScript</title>
		<link>http://www.pelock.com/blog/2007/09/06/really-easy-scripting-with-odbgscript/</link>
		<comments>http://www.pelock.com/blog/2007/09/06/really-easy-scripting-with-odbgscript/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 23:30:31 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Assembler]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[ODbgScript]]></category>
		<category><![CDATA[OllyDbg]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/09/06/really-easy-scripting-with-odbgscript/</guid>
		<description><![CDATA[ODbgScript is an extension for OllyDbg debugger (note to myself: so mr smartass there&#8217;s life except SoftICE heh  )...]]></description>
			<content:encoded><![CDATA[<p><a href="http://odbgscript.sourceforge.net/">ODbgScript</a> is an extension for <a href="http://www.ollydbg.de/">OllyDbg</a> debugger (<em>note to myself: so mr smartass there&#8217;s life except SoftICE heh <img src='http://www.pelock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em>).</p>
<p>I was always a little bit afraid of using it becouse i thought it&#8217;s easier to write separate application than to code in this <em>weird</em> scripting language.</p>
<p>But today i need a tool to dump decrypted strings from one application (while it&#8217;s running). I wanted to start coding live dumper based on <a href="http://msdn2.microsoft.com/en-us/library/ms679303.aspx">WinApi&#8217;s debug functions</a> but i though what the heck, let&#8217;s try to do it in ODbgScript.</p>
<p>Here&#8217;s the result:</p>

<div class="wp_syntax"><div class="code"><pre class="asm" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">; declare variables</span>
        var     string_ptr
        var     file_name
        var     file_index
        var     file_size
        var     x
&nbsp;
<span style="color: #666666; font-style: italic;">; set breakpoint at the instruction where we</span>
<span style="color: #666666; font-style: italic;">; intercepts decrypted strings</span>
        <span style="color: #00007f;">bp</span>     <span style="color: #0000ff;">401020</span>
&nbsp;
<span style="color: #666666; font-style: italic;">; initialize file_index variable</span>
        <span style="color: #00007f; font-weight: bold;">mov</span>     file_index<span style="color: #339933;">,</span> <span style="color: #0000ff;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;">; run application after setting the breakpoint</span>
again<span style="color: #339933;">:</span>
        run
&nbsp;
<span style="color: #666666; font-style: italic;">; if we're here, it means application hit the breakpoint</span>
<span style="color: #666666; font-style: italic;">; continue to execute script after breakpoint is hit</span>
<span style="color: #666666; font-style: italic;">; (don't stop in OllyDbg)</span>
        cob
&nbsp;
<span style="color: #666666; font-style: italic;">; pointer to the encrypted string is stored</span>
<span style="color: #666666; font-style: italic;">; at [ebp-14] let's grab it</span>
        <span style="color: #00007f; font-weight: bold;">mov</span>     x<span style="color: #339933;">,</span> <span style="color: #00007f;">ebp</span>
        <span style="color: #00007f; font-weight: bold;">sub</span>     x<span style="color: #339933;">,</span> <span style="color: #0000ff;">14</span>
        <span style="color: #00007f; font-weight: bold;">mov</span>     x<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">&#91;</span>x<span style="color: #009900; font-weight: bold;">&#93;</span>
&nbsp;
        <span style="color: #00007f; font-weight: bold;">mov</span>     string_ptr<span style="color: #339933;">,</span> x
&nbsp;
<span style="color: #666666; font-style: italic;">; strings are null terminated, let's find its</span>
<span style="color: #666666; font-style: italic;">; size so we can dump it (LEN command didn't work</span>
<span style="color: #666666; font-style: italic;">; here, it always returns 0FFh)</span>
        find    string_ptr<span style="color: #339933;">,</span> #<span style="color: #0000ff;">00</span>#
&nbsp;
        <span style="color: #00007f; font-weight: bold;">cmp</span>     $RESULT<span style="color: #339933;">,</span> <span style="color: #0000ff;">0</span>
        <span style="color: #00007f; font-weight: bold;">je</span>      skip_file
&nbsp;
<span style="color: #666666; font-style: italic;">; calculate string size</span>
        <span style="color: #00007f; font-weight: bold;">mov</span>     x<span style="color: #339933;">,</span> $RESULT
        <span style="color: #00007f; font-weight: bold;">sub</span>     x<span style="color: #339933;">,</span> string_ptr
&nbsp;
        <span style="color: #00007f; font-weight: bold;">mov</span>     file_size<span style="color: #339933;">,</span> x
&nbsp;
<span style="color: #666666; font-style: italic;">; format file name for decrypted string, name it using</span>
<span style="color: #666666; font-style: italic;">; file_index value and .txt extension, eval works almost</span>
<span style="color: #666666; font-style: italic;">; like wsprintf</span>
        eval    <span style="color: #7f007f;">&quot;C:\Test\{file_index}.txt&quot;</span>
        <span style="color: #00007f; font-weight: bold;">mov</span>     file_name<span style="color: #339933;">,</span> $RESULT
&nbsp;
<span style="color: #666666; font-style: italic;">; dump memory area to the file</span>
        dm      string_ptr<span style="color: #339933;">,</span> file_size<span style="color: #339933;">,</span> file_name
&nbsp;
<span style="color: #666666; font-style: italic;">; log action</span>
        eval    <span style="color: #7f007f;">&quot;{file_index} - VA = {string_ptr},
                 SIZE = {file_size}&quot;</span>
        log     $RESULT<span style="color: #666666; font-style: italic;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">; increase index value</span>
        <span style="color: #00007f; font-weight: bold;">inc</span>     file_index
&nbsp;
skip_file<span style="color: #339933;">:</span>
&nbsp;
<span style="color: #666666; font-style: italic;">; run application again after dumping</span>
        <span style="color: #00007f; font-weight: bold;">jmp</span>     again</pre></div></div>

<p>At first it might look confusing, but after playing with it for 5 minutes you will love it, especially if you know how to code in assembler.</p>
<p>And if you make mistakes in the script, don&#8217;t worry, it has its own, built-in debugger, available directly from OllyDbg so you can spot every mistake you did, trace down the script, modify its variables etc.</p>
<p>In other words viva la ODbgScript <img src='http://www.pelock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>PS. And don&#8217;t ask me why i didn&#8217;t use it before <img src='http://www.pelock.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/09/06/really-easy-scripting-with-odbgscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MultiExtractor v2.6.0a is out</title>
		<link>http://www.pelock.com/blog/2007/09/04/multiextractor-v260a-is-out/</link>
		<comments>http://www.pelock.com/blog/2007/09/04/multiextractor-v260a-is-out/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 22:22:54 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[MultiExtractor]]></category>
		<category><![CDATA[Ripper]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/09/04/multiextractor-v260a-is-out/</guid>
		<description><![CDATA[MultiExtractor v2.6.0a file ripper is out.
What&#8217;s new:

Conversion to PNG format
Corrections in interface and dump engine
New skin (mxWood)

Screenshot:

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.multiextractor.com">MultiExtractor v2.6.0a</a> file ripper is out.</p>
<p>What&#8217;s new:</p>
<ul>
<li>Conversion to PNG format</li>
<li>Corrections in interface and dump engine</li>
<li>New skin (mxWood)</li>
</ul>
<p>Screenshot:</p>
<p><a href='http://www.pelock.com/blog/wp-content/uploads/2007/09/multiextractor.png' title='MultiExtractor v2.6.0a'><img src='http://www.pelock.com/blog/wp-content/uploads/2007/09/multiextractor.png' alt='MultiExtractor v2.6.0a' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/09/04/multiextractor-v260a-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSE5 on the way</title>
		<link>http://www.pelock.com/blog/2007/09/02/sse5-on-the-way/</link>
		<comments>http://www.pelock.com/blog/2007/09/02/sse5-on-the-way/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 15:57:53 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Assembler]]></category>
		<category><![CDATA[SIMD]]></category>
		<category><![CDATA[SSE5]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/09/02/sse5-on-the-way/</guid>
		<description><![CDATA[With the introduction of SSE5, many new 128-bit instructions have been added to the existing instruction set detailed in the AMD64 Architecture Programmer&#8217;s Manuals...]]></description>
			<content:encoded><![CDATA[<blockquote><p>With the introduction of SSE5, many new 128-bit instructions have been added to the existing instruction set detailed in the AMD64 Architecture Programmer&#8217;s Manuals. Included are 46 base instructions that expand to 170 total instructions, enabling improved performance and reduced loads.
</p></blockquote>
<p>Source:<br />
<a href="http://developer.amd.com/sse5.jsp">http://developer.amd.com/sse5.jsp</a></p>
<p>PDF Documentation:<br />
<a href="http://developer.amd.com/assets/sse5_43479_BDAPMU_3-00_8-27-07.pdf">AMD64 Technology 128-Bit SSE5 Instruction Set</a></p>
<p>I wonder in how many years will it be used as a default set of instructions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/09/02/sse5-on-the-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MultiExtractor v2.50a is out</title>
		<link>http://www.pelock.com/blog/2007/07/10/multiextractor-v250a-is-out/</link>
		<comments>http://www.pelock.com/blog/2007/07/10/multiextractor-v250a-is-out/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 15:24:53 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[MultiExtractor]]></category>
		<category><![CDATA[Ripper]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/07/10/multiextractor-v250a-is-out/</guid>
		<description><![CDATA[A new version of MultiExtractor has been released. What&#8217;s new in 2.5.0a?..]]></description>
			<content:encoded><![CDATA[<p>A new version of <a href="http://www.multiextractor.com/">MultiExtractor</a> has been released. What&#8217;s new in 2.5.0a?</p>
<ul>
<li>ICL icon extraction (now you can extract icons from ICL files)</li>
<li>Added MID, MPG, TIFF, EMF, WMF formats</li>
<li>Possibility of unpack CAB (also InstallShield CAB&#8217;s)</li>
<li>Image buffering (faster displaying of visited images)</li>
<li>Naming of files through numbering (Explorer option)</li>
<li>Upgraded conversion support (bitmap to bitmap with another background color)</li>
</ul>
<p>MultiExtractor vs C: drive</p>
<p><a href='http://www.pelock.com/blog/wp-content/uploads/2007/07/mx250a_1.png' title='MultiExtractor v2.50a'><img src='http://www.pelock.com/blog/wp-content/uploads/2007/07/mx250a_1.thumbnail.png' alt='MultiExtractor v2.50a' /></a></p>
<p><a href='http://www.pelock.com/blog/wp-content/uploads/2007/07/mx250a_2.png' title='MultiExtractor v2.50a'><img src='http://www.pelock.com/blog/wp-content/uploads/2007/07/mx250a_2.thumbnail.png' alt='MultiExtractor v2.50a' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/07/10/multiextractor-v250a-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Case studies?</title>
		<link>http://www.pelock.com/blog/2007/06/23/case-studies/</link>
		<comments>http://www.pelock.com/blog/2007/06/23/case-studies/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 08:47:12 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/06/23/case-studies/</guid>
		<description><![CDATA[What&#8217;s the reason to put case studies section on your web page, when none of your customers wants to share his story, to look more legitimate?  

]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s the reason to put case studies section on your web page, when none of your customers wants to share his story, to look more legitimate? <img src='http://www.pelock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href='http://www.pelock.com/blog/wp-content/uploads/2007/06/case_studies.png' title='Case Studies'><img src='http://www.pelock.com/blog/wp-content/uploads/2007/06/case_studies.thumbnail.png' alt='Case Studies' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/06/23/case-studies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kaspersky Anti-Virus v6.0.2 vs OllyDbg</title>
		<link>http://www.pelock.com/blog/2007/06/13/kaspersky-anti-virus-v602-vs-ollydbg/</link>
		<comments>http://www.pelock.com/blog/2007/06/13/kaspersky-anti-virus-v602-vs-ollydbg/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 11:59:15 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Kaspersky]]></category>
		<category><![CDATA[OllyDbg]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/06/13/kaspersky-anti-virus-v602-vs-ollydbg/</guid>
		<description><![CDATA[I wonder how much time will it take to them to put notepad.exe on their black list (in &#8220;Virus writing editor&#8221; category)?
]]></description>
			<content:encoded><![CDATA[<p>I wonder how much time will it take to them to put notepad.exe on their black list (in &#8220;Virus writing editor&#8221; category)?</p>
<p><a href='http://www.pelock.com/blog/wp-content/uploads/2007/06/ollydbg_invader.png' title='OllyDbg Invader'><img src='http://www.pelock.com/blog/wp-content/uploads/2007/06/ollydbg_invader.thumbnail.png' alt='OllyDbg Invader' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/06/13/kaspersky-anti-virus-v602-vs-ollydbg/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Safari browser is broken</title>
		<link>http://www.pelock.com/blog/2007/06/12/safari-browser-is-broken/</link>
		<comments>http://www.pelock.com/blog/2007/06/12/safari-browser-is-broken/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 13:45:25 +0000</pubDate>
		<dc:creator>Bartosz</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://www.pelock.com/blog/2007/06/12/safari-browser-is-broken/</guid>
		<description><![CDATA[Last weekend i&#8217;ve been playing with an iMac, i was checking my website against its Safari browser and i was very pleased to see it works pretty good (all things were rendered correctly)...]]></description>
			<content:encoded><![CDATA[<p>Last weekend i&#8217;ve been playing with an iMac, i was checking my website against its Safari browser and i was very pleased to see it works pretty good (all things were rendered correctly).</p>
<p>Now Apple made Safari browser available for Windows too, but its rendering is pretty much broken, most of the sites (except apple.com) are rendered incorrectly (compared to the results from IE, Opera and FF) one way or another.</p>
<p>My website is missing some pieces in Safari (headers, navigation tabs):</p>
<p><a href='http://www.pelock.com/blog/wp-content/uploads/2007/06/safari_broken_pelock.png' title='PELock website broken in Safari'><img src='http://www.pelock.com/blog/wp-content/uploads/2007/06/safari_broken_pelock.thumbnail.png' alt='PELock website broken in Safari' /></a></p>
<p>At first i thought it&#8217;s my fault (some incorrect CSS styling or smth), but then i&#8217;ve realized even Google&#8217;s site is broken (blank spaces):</p>
<p><a href='http://www.pelock.com/blog/wp-content/uploads/2007/06/safari_broken_google.png' title='Google’s website broken in Safari'><img src='http://www.pelock.com/blog/wp-content/uploads/2007/06/safari_broken_google.thumbnail.png' alt='Google’s website broken in Safari' /></a></p>
<p>I wonder did they even test it in Windows before the release?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pelock.com/blog/2007/06/12/safari-browser-is-broken/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

