disassembling

What are efficient ways to debug an optimized C/C++ program?

Many times I work with optimized code (sometimes even involving vectorized loops), which contain bugs and such. How would one debug such code? I'm looking for any kind of tools or techniques. I use the following (possibly outdated) tools, so I'm looking to upgrade. I use the following: Since with ddd, you cannot see the code, I use gd...

The simplest code hacking

I have the following code: #include <iostream> #include <string> void main() { std::string str; std::cin>>str; if(str == "TheCorrectSerialNumber") std::cout<<"Hello world!!!"<<std::endl; } I need a decompilation or disassemblering tool which can help me by doing below listed steps find the "TheCorrectSerialNumber"....

.Net Reflector Red and green squares

What are the green and red squares? Are these variable names and strings being purposely obfuscated? Is there a 'deobfuscator'? ...

Is it possible to see a member variable's hard-coded value using a disassembler like Reflector?

Given the example source code below, is it possible for someone to see the value of _secret using a disassembler? I didn't see a way to get at the value via Reflector, but I haven't used it very much. Assume the code is not obfuscated in any way. class Foo { private string _secret = @"all your base are belong to us"; public v...

Wherein newbie disassembly queries are made.

I'm relatively(read: stupid newbie) familiar with disassembly but this bit stumped me: I have a set of save files compressed with zlib and a game that loads them. Their structure is known and once loaded, the structs in memory are identical to their corresponding save files. The issue is that the game was written in an ass-backwards, scr...

Partially disassembling .net executable.

Hello. I need to write a relatively small program to parse .net executables and generate the list of calls to external methods. For example if System.Console.WriteLine is called inside the file the tool should print that System.Console.WriteLine is called somewhere. I cannot (limited brain and time) and need not (all I need is a list of ...

Debugging disassembled libraries with gdb

Hello, in Linux and Mac OS X I can use stepi and nexti to debug an application without debugging information. On Mac OS X gdb shows the functions that are called inside the library, although sometimes advancing several assembler instructions in each stepi instruction. On Linux, when I step into a dynamic library gdb gets lost. For ins...

How to avoid my VisualFoxPro' EXE File tobe disassembled

Hi, i have try refox and see how eazy my EXE to be disassembled. the refox offer a feature which they guarantee that no one can disassembled. but , is there any other alternative ? ...

Decompiling EXE to ASM

I want to make a basic antivirus for my free time. Basically I learned about the basic structure of the EXE(windows) file. How do I extract the ASM code from the file and the PE header? ...

Disassembling WPF4 beta2 DLLs with Reflector

Hi there, I'm trying to disassemble some of the DLL of the new WPF4 Beta2 framework. However, all I have is empty methods for all types. I'm not having this problem for other DLL (for example mscorlib). Do you have any idea what is causing this behavior ? Is this anything to do with type forwarding (I know that some WPF types have mov...

tell gdb to disassemble "unknown" code

hi, is it possible to configure gdb in order to debug assembly code when there are no debug symbols or no sources available ? I mean showing assembly instruction by assembly instruction when performing a step by step debug (next /step commands) (not desassembling all the function. just the next instruction that will be executed) Regards...

Debug through the disassembled code (with Visual Studio)

Hello. There is a lot of disassemblers witch allows seeing the internal structure of .NET base assemblies. Is there a way, add-in or similar for Visual Studio that will permit debugging through the disassembled code? By example I have a user control I set the Width = 100 but the width always remains to 200. After a half on hour I rem...

Best/Easiest Language To Work With Disassembling

I'm now thinking to develop a disassembler, but as I know that it's very hard to build a disassembler I want to know the best/easiest language to turn my dream into a reality, also, a tutorial suggestion is very nice too ;-) ...

Visual Studio 2008: How to view disassembled code for a DLL that is not executing at the moment

I'm using Visual studio 2008 to track down a bug in an executing process. I have attached to the process and identified the module of interest. (It happens that debug symbols for this module have been loaded from a pdb file.) I want to show the disassembled code in the Disassembly window so that I can decide where to set a breakpoint. W...

Installing scripts on IDA Pro

Around the net I've seen reference to "scripts" for IDA Pro, but can't work out how to load or install them for IDA Pro 4.9 Freeware Version. How do I do this? In particular I wish to use PE Scripts. ...

reverse engineering c programs

every c program is converted to machine code, if this binary is distributed. Since the instruction set of a computer is well known, is it possible to get back the C original program? ...

Disassembling a DLL coded in Delphi -- how to start?

Is there any way to disassemble my .dll file again into machine code? What applications do I need for this and how much could be recovered? ...

How to identify the Programming Language used to Develop a Software?

Possible Duplicate: Find Programming Language Used So, I have an application consisting of an executable (exe) file and a DLL. Is there a way I can find out the specific language used to develop this software. I tried opening it in a disassembler but the contents seems garbled. Any ideas? ...

Write Secure Cocoa Code

Hello, Im making an application in cocoa and wanted to see if some strings in it were easily accessible so I ran OTX on it and sadly all of my code was found. Is there a method I can use to make my code more "secure" or at least encrypt/hide the strings? The reason I want to encrypt the string is it's a password for a server. I don'd ne...

Getting function information from a compiled DLL

I have a DLL that's compiled, and I don't have the source code for it anymore. The only thing I want from the DLL is the functions it provides, and how they are accessed, i.e. their signature. How can I do this? ...