Pages: [1]
Author Topic: Problem with C167 Assemblly(IDAPro)  (Read 4448 times)
unicornux
Full Member
***

Karma: +2/-6
Offline Offline

Posts: 83


« on: June 30, 2020, 02:56:22 AM »

Hi Guys. i'm new to reverse ECU frimware and i trying to  find a seed/key algorithm.
in a part of the file i saw a variable that located in XRAM mov to accumulator registers and finally xor with other registers. as below:

mov     r1, word_E1C4
mov     r2, word_E1C6
cpl     r1
cpl     r2
xor     r12, r1
xor     r13, r2


i guess this value (word_E1C4 and word_E1C6) create the required constant value(public Key) for Seed/Key algorithm.
so i search this values in dump(file) and i found this instructions :

mov     r4, #0
mov     r5, #0Fh
calls   0Fh, 428Ch ; 0F428Ch
mov     word_E1C4, r10
mov     word_E1C6, r11


so it seems r10 and r11 have the constant value inside them and these values are created in calls   0Fh, 428Ch ; 0F428Ch !!!!
But what is Call's instruction? this instruction refer to incorrect address 
How can I find these values?
any body can help me about this ?
« Last Edit: June 30, 2020, 04:17:48 AM by unicornux » Logged
woj
Hero Member
*****

Karma: +43/-3
Offline Offline

Posts: 500


« Reply #1 on: July 15, 2020, 01:33:50 AM »

On my ME7.9.10 Fxxxx is the external RAM area. If there are procedure calls to RAM (not uncommon, especially for boot code) then you have to find the piece of code that copies the procedure(s) from Flash to RAM. Not exactly 100% trivial... Wink
Logged
unicornux
Full Member
***

Karma: +2/-6
Offline Offline

Posts: 83


« Reply #2 on: August 04, 2020, 11:05:41 PM »

On my ME7.9.10 Fxxxx is the external RAM area. If there are procedure calls to RAM (not uncommon, especially for boot code) then you have to find the piece of code that copies the procedure(s) from Flash to RAM. Not exactly 100% trivial... Wink

Hi woj.
how i can find this area? it would be very hard. do you help me?
Logged
rogerius
Full Member
***

Karma: +62/-6
Offline Offline

Posts: 116


« Reply #3 on: August 05, 2020, 01:22:22 AM »

maybe this will help you, post #9 by 360trev?
http://nefariousmotorsports.com/forum/index.php?topic=13572.0title=
Logged
unicornux
Full Member
***

Karma: +2/-6
Offline Offline

Posts: 83


« Reply #4 on: August 10, 2020, 02:39:28 AM »

maybe this will help you, post #9 by 360trev?
http://nefariousmotorsports.com/forum/index.php?topic=13572.0title=

Awesome. But my question was about memory reference issue,
As you see two variable call from RAM. I found them but there are not related to these addresses.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.03 seconds with 17 queries. (Pretty URLs adds 0s, 0q)