News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

dumpbin.exe strange behaviour

Started by Garababuga, February 25, 2013, 11:43:17 PM

Previous topic - Next topic

Garababuga

Hello,

I'm trying to disassemble a simple program by running
C:\masm32\bin\dumpbin /disasm listing_27.exe
and it works just fine giving me the following output:

Microsoft (R) COFF Binary File Dumper Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.


Dump of file listing_27.exe

File Type: EXECUTABLE IMAGE

  00401000: 6A 00              push        0
  00401002: 68 0C 30 40 00     push        40300Ch
  00401007: 68 00 30 40 00     push        403000h
  0040100C: 6A 00              push        0
  0040100E: E8 01 00 00 00     c
allC:\Users\Garababuga\Docs\4\pirogov_assembler_i_dizassemblirovanie_source\chapter1\listing_27>        00401014
  00401013: C3                 ret
  00401014: FF 25 00 20 40 00  jmp         dword ptr ds:[00402000h]

  Summary

        1000 .data
        1000 .rdata
        1000 .text


but when I redirect output to a file like this:
C:\masm32\bin\dumpbin /disasm listing_27.exe > prog.txt
it causes an error:

Microsoft (R) COFF Binary File Dumper Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.


Dump of file listing_27.exe

File Type: EXECUTABLE IMAGE

  00401000: 6A 00              push        0
  00401002: 68 0C 30 40 00     push        40300Ch
  00401007: 68 00 30 40 00     push        403000h
  0040100C: 6A 00              push        0
  0040100E: E8 01 00 00 00     call        00401014
  00401013: C3                 ret
  00401014: FF 25 00 20 40 00  jmp         dword ptr ds:[00402000h]

Dump of file
LINK : fatal error LNK1181: cannot open input file ""


thats odd...

dedndave

for whatever reason, it doesn't like the space in the redirection   :P

C:\masm32\bin\dumpbin /disasm listing_27.exe>prog.txt

Vortex