<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: WinDbg as a Binary Editor</title>
	<link>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/</link>
	<description>Structural and Behavioral Patterns for Software Diagnostics, Forensics and Prognostics</description>
	<pubDate>Mon, 25 May 2026 00:07:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Crash Dump Analysis &#187; Blog Archive &#187; WinDbg as a simple PE viewer</title>
		<link>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-37788</link>
		<dc:creator>Crash Dump Analysis &#187; Blog Archive &#187; WinDbg as a simple PE viewer</dc:creator>
		<pubDate>Tue, 12 Aug 2008 15:19:01 +0000</pubDate>
		<guid>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-37788</guid>
		<description>[...] needed to quickly check preferred load address for one DLL and recalled that I once used WinDbg as a binary editor. So I loaded that DLL as a crash [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] needed to quickly check preferred load address for one DLL and recalled that I once used WinDbg as a binary editor. So I loaded that DLL as a crash [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Tan</title>
		<link>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-23610</link>
		<dc:creator>Jeffrey Tan</dc:creator>
		<pubDate>Thu, 17 Apr 2008 12:38:13 +0000</pubDate>
		<guid>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-23610</guid>
		<description>Oh, thanks Dmitry.

I am using windbg to launch the exe instead of using a memory dump :-(. 

You are right. If we use memory dump it will work since windbg will memory mapping the entire dump file as writable.</description>
		<content:encoded><![CDATA[<p>Oh, thanks Dmitry.</p>
<p>I am using windbg to launch the exe instead of using a memory dump :-(. </p>
<p>You are right. If we use memory dump it will work since windbg will memory mapping the entire dump file as writable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Vostokov</title>
		<link>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-23592</link>
		<dc:creator>Dmitry Vostokov</dc:creator>
		<pubDate>Thu, 17 Apr 2008 09:54:37 +0000</pubDate>
		<guid>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-23592</guid>
		<description>I did it on Vista x64. Did you attach WinDbg to a running process? In this case it seems logical that WinDbg cannot write to that region. In the case of a crash dump any memory seems to be just a buffer or mapped file.</description>
		<content:encoded><![CDATA[<p>I did it on Vista x64. Did you attach WinDbg to a running process? In this case it seems logical that WinDbg cannot write to that region. In the case of a crash dump any memory seems to be just a buffer or mapped file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Tan</title>
		<link>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-23564</link>
		<dc:creator>Jeffrey Tan</dc:creator>
		<pubDate>Thu, 17 Apr 2008 03:05:52 +0000</pubDate>
		<guid>https://www.dumpanalysis.org/blog/index.php/2008/04/15/windbg-as-a-binary-editor/#comment-23564</guid>
		<description>What's OS do you use? When I use the following approach on my Vista machine(using elevated windbg), it will generate error:

0:000&#62; lm
start    end        module name
00800000 0081b000   BinaryEditorTest   (deferred)             
65f80000 660a3000   MSVCR90D   (deferred)             
769a0000 76a78000   kernel32   (deferred)             
77020000 7713e000   ntdll      (private pdb symbols)  c:\localsymbols\ntdll.pdb\C0A498F0036E4D4FB5CBF69005B0F9242\ntdll.pdb
0:000&#62; .readmem e:\test.txt 00800000 L0n12
Reading c bytes
Unable to write memory at 00800000, load is incomplete

I assume this is because PE header is marked as read-only:

0:000&#62; !address 00800000 
 ProcessParametrs 001e11a8 in range 001e0000 001e3000
 Environment 001e0808 in range 001e0000 001e3000
    00800000 : 00800000 - 00001000
                    Type     01000000 MEM_IMAGE
                    Protect  00000002 PAGE_READONLY
                    State    00001000 MEM_COMMIT
                    Usage    RegionUsageImage
                    FullPath BinaryEditorTest.exe

If I use the address from heap, it will succeed. So I believe we should use a writable memory page instead of read-only. PE file is not a good candidate.</description>
		<content:encoded><![CDATA[<p>What&#8217;s OS do you use? When I use the following approach on my Vista machine(using elevated windbg), it will generate error:</p>
<p>0:000&gt; lm<br />
start    end        module name<br />
00800000 0081b000   BinaryEditorTest   (deferred)<br />
65f80000 660a3000   MSVCR90D   (deferred)<br />
769a0000 76a78000   kernel32   (deferred)<br />
77020000 7713e000   ntdll      (private pdb symbols)  c:\localsymbols\ntdll.pdb\C0A498F0036E4D4FB5CBF69005B0F9242\ntdll.pdb<br />
0:000&gt; .readmem e:\test.txt 00800000 L0n12<br />
Reading c bytes<br />
Unable to write memory at 00800000, load is incomplete</p>
<p>I assume this is because PE header is marked as read-only:</p>
<p>0:000&gt; !address 00800000<br />
 ProcessParametrs 001e11a8 in range 001e0000 001e3000<br />
 Environment 001e0808 in range 001e0000 001e3000<br />
    00800000 : 00800000 - 00001000<br />
                    Type     01000000 MEM_IMAGE<br />
                    Protect  00000002 PAGE_READONLY<br />
                    State    00001000 MEM_COMMIT<br />
                    Usage    RegionUsageImage<br />
                    FullPath BinaryEditorTest.exe</p>
<p>If I use the address from heap, it will succeed. So I believe we should use a writable memory page instead of read-only. PE file is not a good candidate.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
