Code Monkey home page Code Monkey logo

ghidra-lx-loader's People

Contributors

madebr avatar yetmorecode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ghidra-lx-loader's Issues

byteOrdering and wordOrdering are never used

Executable used
N/A, code issue

Ghidra
N/A, code issue

Describe the bug
Sorry if it's a naive question, I am not good with Java. I can't find byte and word ordering fields used or checked anywhere. Do you assume they are always set to little-endian? If so shouldn't you at least throw "format unsupported" error when they're non-zero?

How to use

I'm new at ghidra but have been using IDA Free for a while.

I'd like to disassemble and analyze a DOS4GW-based game. After installing this extension and opening the executable, I expect to see the starting real-mode segments, and then the protected mode 32-bit segments for the rest of the code. I'm not sure this is actually happening. Is there anything specific I need to do?

Incorrect bytes in data section

Hi! I've been working on a reversing project for a little while on an executable file that I used the lx loader to analyze. I noticed a bit of an issue where it seems like there are several bytes that are messed up in ghidra. Specifically I've noticed the issue in four different instances in the data section of the executable, although it's feasible that its affected the disassembly too.
Here's the issue in action:
image
As you can see, the highlighted byte is a 0x00 where it seemingly should be a 0x17. I can manually override it to be a 0x17 and it accesses the proper address:
image

Here's a comparison with the same bytes in a hex editor (I know the addresses appear different but I think that has to do with how they're imported in the disassembler):
image
Interestingly, none of them in the hex editor are 0x17

And here's the same bytes in Ida:
image

More details:
I'm analyzing the RGFX.exe executable from The Elder Scrolls Adventures Redguard.
I'm running Ghidra 10.0.1 with the latest release of the lx loader.

These are the four addresses where I've noticed the issue so far:

0x001a2001 : should be 0x17 but is 0x00

0x001a4001 : should be 0x17 but is 0x00

0x001a2fff : should be 0x17 but is 0x00

0x001a5fff : should be 0x18 but is 0x01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.