Skip to content

Instantly share code, notes, and snippets.

@decal
Created September 13, 2014 04:14
Show Gist options
  • Select an option

  • Save decal/4c75f227fcfe31eea565 to your computer and use it in GitHub Desktop.

Select an option

Save decal/4c75f227fcfe31eea565 to your computer and use it in GitHub Desktop.
Attempting to Run a 32-bit ARM COFF Instead of amd64 MZ/PE From an MS-DOS Prompt in Windows 8.1
C:\>cd "C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i"
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i>dir *.exe
Volume in drive C has no label.
Volume Serial Number is 74CC-FEC7
Directory of C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i
08/12/14 08:21 PM 1,425,304 msvsmon.exe
08/12/14 08:21 PM 26,544 VSDebugLaunchNotify.exe
2 File(s) 1,451,848 bytes
0 Dir(s) 2,643,464,192 bytes free
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i>.\VSDebugLaunchNotify.exe /?
This version of C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i\VSDebugLaunchNotify.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the
software publisher.
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i>systeminfo | find /v "KB"
Host Name: UFO
OS Name: Microsoft Windows 8.1 Enterprise
OS Version: 6.3.9600 N/A Build 9600
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: [email protected]
Registered Organization:
Product ID: 00261-80244-82440-AA063
Original Install Date: 12/6/13, 11:04:03 PM
System Boot Time: 9/12/14, 05:31:57 PM
System Manufacturer: To be filled by O.E.M.
System Model: To be filled by O.E.M.
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: AMD64 Family 21 Model 1 Stepping 2 AuthenticAMD ~3110 Mhz
BIOS Version: American Megatrends Inc. 0901, 11/24/11
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Boot Device: \Device\HarddiskVolume1
System Locale: ar-sa;Arabic (Saudi Arabia)
Input Locale: en-us;English (United States)
Time Zone: (UTC-05:00) Eastern Time (US & Canada)
Total Physical Memory: 16,330 MB
Available Physical Memory: 3,781 MB
Virtual Memory: Max Size: 28,618 MB
Virtual Memory: Available: 12,908 MB
Virtual Memory: In Use: 15,710 MB
Page File Location(s): C:\pagefile.sys
E:\pagefile.sys
Domain: WORKGROUP
Logon Server: \\MicrosoftAccount
Hotfix(s): 81 Hotfix(s) Installed.
Network Card(s): 3 NIC(s) Installed.
[01]: Realtek PCIe GBE Family Controller
Connection Name: Ethernet
DHCP Enabled: No
IP address(es)
[02]: Hyper-V Virtual Ethernet Adapter
Connection Name: vEthernet (New Virtual Switch)
DHCP Enabled: No
IP address(es)
[03]: Microsoft Network Adapter Multiplexor Driver
Connection Name: Network Bridge
DHCP Enabled: Yes
DHCP Server: 192.168.1.1
IP address(es)
[01]: 192.168.1.5
[02]: fe80::bd26:d5d:47fd:82b0
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i>dumpbin /headers .\VSDebugLaunchNotify.exe
Microsoft (R) COFF/PE Dumper Version 14.00.22013.1
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file .\VSDebugLaunchNotify.exe
PE signature found
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
1C4 machine (ARM)
6 number of sections
53EAD40A time date stamp Tue Aug 12 22:57:14 2014
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
122 characteristics
Executable
Application can handle large (>2GB) addresses
32 bit word machine
OPTIONAL HEADER VALUES
10B magic # (PE32)
11.00 linker version
1800 size of code
2800 size of initialized data
0 size of uninitialized data
181D entry point (0040181D)
1000 base of code
3000 base of data
400000 image base (00400000 to 00408FFF)
1000 section alignment
200 file alignment
6.02 operating system version
10.00 image version
6.02 subsystem version
0 Win32 version
9000 size of image
400 size of headers
B46A checksum
3 subsystem (Windows CUI)
8140 DLL characteristics
Dynamic base
NX compatible
Terminal Server Aware
100000 size of stack reserve
2000 size of stack commit
100000 size of heap reserve
1000 size of heap commit
0 loader flags
10 number of directories
0 [ 0] RVA [size] of Export Directory
3868 [ 1A4] RVA [size] of Import Directory
7000 [ 640] RVA [size] of Resource Directory
6000 [ 180] RVA [size] of Exception Directory
4400 [ 23B0] RVA [size] of Certificates Directory
8000 [ 140] RVA [size] of Base Relocation Directory
31A0 [ 38] RVA [size] of Debug Directory
0 [ 0] RVA [size] of Architecture Directory
0 [ 0] RVA [size] of Global Pointer Directory
0 [ 0] RVA [size] of Thread Storage Directory
0 [ 0] RVA [size] of Load Configuration Directory
0 [ 0] RVA [size] of Bound Import Directory
3000 [ 16C] RVA [size] of Import Address Table Directory
0 [ 0] RVA [size] of Delay Import Directory
0 [ 0] RVA [size] of COM Descriptor Directory
0 [ 0] RVA [size] of Reserved Directory
SECTION HEADER #1
.text name
1754 virtual size
1000 virtual address (00401000 to 00402753)
1800 size of raw data
400 file pointer to raw data (00000400 to 00001BFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
60000020 flags
Code
Execute Read
SECTION HEADER #2
.rdata name
12B2 virtual size
3000 virtual address (00403000 to 004042B1)
1400 size of raw data
1C00 file pointer to raw data (00001C00 to 00002FFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
Read Only
Debug Directories
Time Type Size RVA Pointer
-------- ------ -------- -------- --------
53EAD40A cv 30 00003630 2230 Format: RSDS, {A41EC218-855D-4DC8-AD6F-750533CFB398}, 2, VsDebugLaunchNotify.pdb
53EAD40A feat 10 00003660 2260 Counts: Pre-VC++ 11.00=0, C/C++=26, /GS=26, /sdl=0, reserved=unreported
SECTION HEADER #3
.data name
278 virtual size
5000 virtual address (00405000 to 00405277)
200 size of raw data
3000 file pointer to raw data (00003000 to 000031FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0000040 flags
Initialized Data
Read Write
SECTION HEADER #4
.pdata name
180 virtual size
6000 virtual address (00406000 to 0040617F)
200 size of raw data
3200 file pointer to raw data (00003200 to 000033FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
Read Only
SECTION HEADER #5
.rsrc name
640 virtual size
7000 virtual address (00407000 to 0040763F)
800 size of raw data
3400 file pointer to raw data (00003400 to 00003BFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
Read Only
SECTION HEADER #6
.reloc name
6A4 virtual size
8000 virtual address (00408000 to 004086A3)
800 size of raw data
3C00 file pointer to raw data (00003C00 to 000043FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42000040 flags
Initialized Data
Discardable
Read Only
Summary
1000 .data
1000 .pdata
2000 .rdata
1000 .reloc
1000 .rsrc
2000 .text
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\14.0\Debugger\target\armv4i>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment