Do we need to worry about disassembling?

Just starting out? Need help? Post your questions and find answers here.
Nituvious
Addict
Addict
Posts: 1030
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Do we need to worry about disassembling?

Post by Nituvious »

Do we have to worry about people disassembling our programs for our source code?
When people try to disassemble programs that were created in PureBasic, does it give them our source code, or a garbled mess?
▓▓▓▓▓▒▒▒▒▒░░░░░
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Do we need to worry about disassembling?

Post by c4s »

Disassembling comes from "assembling". So first take a look what the assembly language really means - for example at wikipedia.

Then ask again ;)
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Re: Do we need to worry about disassembling?

Post by Kale »

The more helpful and less obtuse reply is, no.

Unless you are doing something very advanced then the likelyhood of some proficient cracker disassembling your work is very low.
--Kale

Image
Thorium
Addict
Addict
Posts: 1308
Joined: Sat Aug 15, 2009 6:59 pm

Re: Do we need to worry about disassembling?

Post by Thorium »

Disassembling don't recreates a PureBasic source code. It just shows the assembly code. So you don't have to be worried about it. No one can steal your source that way. People can modify you program that way but in most cases this is nothing to be worried about.
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Do we need to worry about disassembling?

Post by luis »

There are some language where a lot of informations about the original source are stored in the final executable, for a reson or another (.net languages are a good contemporary example), but PB generate ASM code then translated to binary from the FASM assembler, so there is no way to go back to the original source code as you have written it from it.

You can disassemble it and see what it does, or patch it for example in the data section to alter some strings, but pratically not a lot more.
"Have you tried turning it off and on again ?"
Thorium
Addict
Addict
Posts: 1308
Joined: Sat Aug 15, 2009 6:59 pm

Re: Do we need to worry about disassembling?

Post by Thorium »

luis wrote: You can disassemble it and see what it does, or patch it for example in the data section to alter some strings, but pratically not a lot more.
You can alter the code too, not only strings.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Do we need to worry about disassembling?

Post by Rook Zimbabwe »

So keep the registration checker in a DLL and hide the reg info in a PW protected PAK or ZIP or something... :mrgreen:

I used to create time limited versions of my Blitz3d programs by PAKing a .txt file with a single number in it.

When program ran it would unpak the file... read number... if number not less than 1 decrement... rePAK and run... If number < 1 then move down to the REGISTER NAG.

Not perfect by any means but good enough for most!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Do we need to worry about disassembling?

Post by luis »

Thorium wrote: You can alter the code too, not only strings.
Yes. You can alter any single byte, it's a file.

Reply was intended to show to the original poster what a not particularly skilled person can do.

Certainly not get the source code. Have a peek at the code and change some strings. You can expect this.

Reverse engineering your mighty code to steal your precious algorithms probably not, unless you write something really great.

Probably if you are writing something so great you don't need to ask the original question in the first place.

Anyway yes, sorry to not have mentioned this. You can alter the code too, for example patching some conditional instructions to skip some checks or similar things.
"Have you tried turning it off and on again ?"
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Re: Do we need to worry about disassembling?

Post by X »

Right. Disassembling means converting the EXE to assembly. Decompiling is where they can view the purebasic source code. You can NOT decompile PB source code. You can disassemble any file, on any computer, though. This is one of the things that makes PB vastly superior to anything .NET.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Re: Do we need to worry about disassembling?

Post by utopiomania »

No.
No again. Yes.

:wink:
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Do we need to worry about disassembling?

Post by Kaeru Gaman »

one addition:
disassebled you can see the ASM-Code, yes.
but all Variables and Lables are without descriptive names, they are just pointers.

so, to read and understand the code is much more difficult than when you read the commended ASM-Output of the PB-Compiler.
oh... and have a nice day.
Post Reply