NefMoto

Technical => Reverse Engineering => Topic started by: Jim_Coupe on March 10, 2017, 11:45:20 AM



Title: First time dissembling
Post by: Jim_Coupe on March 10, 2017, 11:45:20 AM
HI,

Trying to wrap my head around disassembling my ECU file so have patient with me.

Right now I have IDA pro 32-bit and i have loaded my .bin file into it. Then a dialogue comes up where i shall select Processor type. My ST10F275  isnt in the list? So i gues i have to define some type of area of the ROM?

I have seen that there are some scripts but dont even know how to load them...

Second is there any tutorials? I have searched but haent found anything that explains..

Help is appreciated ???..


Title: Re: First time dissembling
Post by: nyet on March 10, 2017, 11:50:41 AM
http://nefariousmotorsports.com/forum/index.php?topic=2431.0title=


Title: Re: First time dissembling
Post by: Jim_Coupe on March 10, 2017, 12:09:11 PM
Thanks Nyet
Thanks I started to read that thread. But lol im stucked on how to load the script I have googled my ass to find how to load scripts?

Is it suppoed to be loaded via AutoIT?


Title: Re: First time dissembling
Post by: Jim_Coupe on March 10, 2017, 12:13:01 PM
Guess i have to learn how to start AutoIT first :)


Title: Re: First time dissembling
Post by: Jim_Coupe on March 10, 2017, 12:47:51 PM
Ohh it seems that i had an older version of the script..  I Used this below from "TijnCU"..   Now its going through my code here.. At least something happens now


Title: Re: First time dissembling
Post by: nyet on March 10, 2017, 04:09:03 PM
The script is more useful as a tool to see what settings to use than anything else.


Title: Re: First time dissembling
Post by: TijnCU on March 11, 2017, 02:21:34 AM
Yeah, I would use prj's version first and my version only after you have a succesfull project to add variables for example. Or to add variables to someone elses idb file..


Title: Re: First time dissembling
Post by: Jim_Coupe on March 14, 2017, 01:03:37 PM
Ok but when i use your script TijnCU a dialogue comes up with "start Analysis" and so on but not when i click on PRJ´s script..

Also  "Load .ecu"  Shall i creatte an .ecu file form my .bin in Me7logger suspect.. I think i read that.  But my bin is ST10F275 will that work


Title: Re: First time dissembling
Post by: turbojohan on March 15, 2017, 12:27:30 AM
DPP's are different for ST10 ecu.


Title: Re: First time dissembling
Post by: Jim_Coupe on March 15, 2017, 11:52:01 AM
Ok i guess i have no use of that then..  I have managed to analyze the .bin file now.. And now I can se all the code.

The code look very similar to a PLC "structured text" code wich im used to.. I see whats happening but i cant put the code into context. But how do you know what the different sub functions are doing?


Title: Re: First time dissembling
Post by: jcsbanks on March 16, 2017, 01:55:23 PM
Apart from getting the memory layout correct and marking the code, data and DPPs correctly, it is helpful to understand the funktionsrahmen for your ECU and import the a2l labels for characteristics and measurements.

The a2l usually shows which functions access which characteristics and measurements, so if you want to definitively identify a function, look for the measurements it exports and find references to those in your disassembly.