Dev Blog
Forum
Wiki
About
NefMoto
>
Technical
>
Reverse Engineering
>
Problem with C167 Assemblly(IDAPro)
Pages: [
1
]
« previous
next »
Author
Topic: Problem with C167 Assemblly(IDAPro) (Read 4814 times)
unicornux
Full Member
Karma: +2/-6
Offline
Posts: 83
Problem with C167 Assemblly(IDAPro)
« 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: +44/-3
Offline
Posts: 500
Re: Problem with C167 Assemblly(IDAPro)
« 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...
Logged
unicornux
Full Member
Karma: +2/-6
Offline
Posts: 83
Re: Problem with C167 Assemblly(IDAPro)
« Reply #2 on: August 04, 2020, 11:05:41 PM »
Quote from: woj 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...
Hi woj.
how i can find this area? it would be very hard. do you help me?
Logged
rogerius
Full Member
Karma: +65/-7
Offline
Posts: 126
Re: Problem with C167 Assemblly(IDAPro)
« 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
Posts: 83
Re: Problem with C167 Assemblly(IDAPro)
« Reply #4 on: August 10, 2020, 02:39:28 AM »
Quote from: rogerius 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=
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Introductions
=> General Discussion
-----------------------------
Noob Zone
-----------------------------
=> Noob Questions
=> Noob Guides and FAQs
-----------------------------
Technical
-----------------------------
=> NefMoto Software
=> Tuning
===> Documents & Helpers & How To's
===> Community Projects
=> Diagnostics
=> Flashing and Chipping
=> Cluster and Immobilizer
===> ECU EEPROM images
===> Original Cluster dumps
===> Original Cluster dump requests
=> Data Logging
=> Reverse Engineering
=> Communication Protocols
-----------------------------
ECU Files
-----------------------------
=> ECU Definition Files
===> ECU Definition File Requests
=> Original ECU Files
===> Original ECU File Requests
=> Checksum Update Requests
-----------------------------
Vehicles
-----------------------------
=> Vehicle Tech
=> Project Cars
-----------------------------
Regional
-----------------------------
=> Canadian Regional Discussion
=> US Regional Discussion
-----------------------------
Classifieds
-----------------------------
=> For Sale
=> Wanted
=> Services
-----------------------------
Miscellaneous
-----------------------------
=> Off Topic
=> Forum Tech Support
=> Bizarro Messages Posted by Bots and Spammers
Navigation
Home
Help
Login
Register
Personal Tools
April 23, 2025, 04:11:24 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced Search
Loading...