Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,570 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,929 people online right now. Registration is fast and FREE... Join Now!




Binary to C++ or readable language

 
Reply to this topicStart new topic

Binary to C++ or readable language

kattz7
5 May, 2008 - 09:43 PM
Post #1

New D.I.C Head
*

Joined: 5 May, 2008
Posts: 2

I have a binary code of a program. I would like to make sure there are no trogans or virus's embedded in this program before running it. Is there a way I can take this binary code and reverse it back to C/C++ language so I can read it?
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Binary To C++ Or Readable Language
5 May, 2008 - 10:46 PM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,465



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(kattz7 @ 6 May, 2008 - 01:43 AM) *

I have a binary code of a program. I would like to make sure there are no trogans or virus's embedded in this program before running it. Is there a way I can take this binary code and reverse it back to C/C++ language so I can read it?

There are too many compilers for the C/C++ languages to make a decompiler, because most of them adhear to their own standards. Your best bet for getting human readable code from a binary is to use a dissassember. However the output will be in assembly.
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Binary To C++ Or Readable Language
6 May, 2008 - 10:09 AM
Post #3

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,906



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
A scan through an Antivirus program should be sufficient enough.

Otherwise you can use a Disassembler.
Generally by looking at the Strings and the Imports Segment for API functions being used, you have a brief idea of how dangerous the code is likely to be.

But nothing beats a thorough inspection of the code.
User is offlineProfile CardPM
+Quote Post

kattz7
RE: Binary To C++ Or Readable Language
6 May, 2008 - 11:14 AM
Post #4

New D.I.C Head
*

Joined: 5 May, 2008
Posts: 2

If anyone is willing to disassemble this program and tell me if it is safe, or tell me how to read it for myself, here is the URL to download it.

http://www.moggies-and-more.com/code.html

Even after I disassembled it, I have no idea how to read the 1's and 0's code. I need to make sure that this program is not sending my user name, password, or any other personal information, to whoever is at the recieving end of my "sendings".

Thank you all.
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Binary To C++ Or Readable Language
6 May, 2008 - 11:55 AM
Post #5

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,906



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
The Webpage looks shady, I don't even need to disassemble it to figure this one out.

This one is most likely to be an adware/spyware.
User is offlineProfile CardPM
+Quote Post

jeronimo0d0a
RE: Binary To C++ Or Readable Language
6 May, 2008 - 12:59 PM
Post #6

D.I.C Head
**

Joined: 3 Mar, 2008
Posts: 141


My Contributions
I didn't like it either, and, you lived this long without it, do you really need it? The alternative is to disconnect your harddrive and run from a removable disk. Or, install a second drive just to work with suspicious software. I do that and when it dies all I have to do is copy its image back to it.
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Binary To C++ Or Readable Language
6 May, 2008 - 09:43 PM
Post #7

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,906



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
You can even run the program in a virtual machine.
If it messes anything up, only the virtual machine gets damaged, not the real OS.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 11:56PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month