Quantcast

Jump to content

» «
Photo

Tips On Understanding How to Decipher the Decompiled Scripts?

9 replies to this topic
OfficerJohnson
  • OfficerJohnson

    Crackhead

  • Members
  • Joined: 07 Jan 2018
  • United-States

#1

Posted 28 March 2018 - 06:03 PM

Hello everyone. Long time, no post. Been trying wrap my head around further things. Still all a bit confusing.

So, we have these so-called Decompiled scripts, but trying to look through them is like reading Chinese...

First off, what programming language are the Decompiled scripts in? C?

Second, do you have any tips on how to better decipher them or make them more easily understandable? Should I be using IDA?

Thank you for your help if you choose to reply.

OfficerJohnson
  • OfficerJohnson

    Crackhead

  • Members
  • Joined: 07 Jan 2018
  • United-States

#2

Posted 01 April 2018 - 07:16 PM

No one? It's not a C language? Perhaps assembly? Any little bit you can provide is a start. I can research the rest.

Bob_74
  • Bob_74

    Square Civilian

  • Members
  • Joined: 05 Jan 2018
  • None

#3

Posted 01 April 2018 - 07:26 PM

Decompiled scripts are in C.

They are quite hard to read but sometime you will find useful informations in them.


OfficerJohnson
  • OfficerJohnson

    Crackhead

  • Members
  • Joined: 07 Jan 2018
  • United-States

#4

Posted 01 April 2018 - 07:58 PM

Decompiled scripts are in C.
They are quite hard to read but sometime you will find useful informations in them.


C language? Thank you. Will look into a course and get more acquainted.

Bob_74
  • Bob_74

    Square Civilian

  • Members
  • Joined: 05 Jan 2018
  • None

#5

Posted 01 April 2018 - 09:14 PM Edited by Bob_74, 01 April 2018 - 09:14 PM.

If you know C# or C++ you should understand it quite easily :)

 

What is weird about these scripts is that they are decompiled so we don't have the name of the variables or functions.

 

Variables are named depending of their type:

iLocal_0 is a local variable (its scope is limited to this script) of type int since it starts with an i.

u stands for Unknown, that's why they are noted of the var type.

f = float, b = bool, etc.

 

Functions are named func:

int func_134(int iParam0, int iParam1)

This function returns an int and accept two parameters of type int.

 

You would have written the same thing in C# ;)


nm710
  • nm710

    None

  • Members
  • Joined: 15 Aug 2016
  • United-States

#6

Posted 04 April 2018 - 12:25 AM

If you wanted to see how a function from nativedb works, do you go to each file and try to find it or do you use some sort of program to open and search all of them? 


Bob_74
  • Bob_74

    Square Civilian

  • Members
  • Joined: 05 Jan 2018
  • None

#7

Posted 04 April 2018 - 10:04 AM Edited by Bob_74, 04 April 2018 - 10:24 AM.

If you wanted to see how a function from nativedb works, do you go to each file and try to find it or do you use some sort of program to open and search all of them? 

I'm not an expert on decompiled scripts, but what I do is opening all scripts at once with Notepad++ and searching the function I want to find in all the files.

That way, I'm sure to find it quickly ;)

 

EDIT: To ease Notepad++ task, sometime I make a Windows search to filter the files and have less to open in Notepad++

  • nm710 likes this

Jitnaught
  • Jitnaught

    Grass tastes bad

  • Members
  • Joined: 24 Aug 2013
  • United-States

#8

Posted 04 April 2018 - 11:20 PM

In Notepad++ press CTRL + Shift + F and use the popup to search in a folder.

  • nm710, Larph and Bob_74 like this

nm710
  • nm710

    None

  • Members
  • Joined: 15 Aug 2016
  • United-States

#9

Posted 05 April 2018 - 01:42 AM

I can't believe I have never seen that function before. Thanks guys. 

  • Jitnaught likes this

Larph
  • Larph

    Player Hater

  • Members
  • Joined: 26 Oct 2017
  • Netherlands

#10

Posted 3 weeks ago

w00t  :panic:

my notepad++ awesometer just went up even more !





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users