Giter Site home page Giter Site logo

Capstone for ARM about open-source-machlib HOT 3 CLOSED

1livv avatar 1livv commented on June 19, 2024
Capstone for ARM

from open-source-machlib.

Comments (3)

razvand avatar razvand commented on June 19, 2024

@1livv, what do you mean by "backwards at runtime"? Could you please provide a concrete example of the issue?

from open-source-machlib.

1livv avatar 1livv commented on June 19, 2024

Say that we have an arm binary that has parts of code in classic ARM syntax(32 bit) and parts in ARM THUMB code(16 bit) and these parts are mingled together(a common case).

Let's say that we want to disasm the whole text section. For that we have to switch the capstone MODE (from CS_MODE_ARM to CS_MODE_THUMB and backwards) depending on which part we are in the code(text section).

Something like this:
set_mode (CS_MODE_ARM)
disasm(arm_code, arm_code_size);
set_mode(CS_MODE_THUMB)
disasm(arm_thumb_code, arm_thumb_code_size);
...and so on until the end of the section.

Problem is that right now i don't know of any way of knowing which code portion is in ARM and which code portion is in ARM_THUMB to accordingly set the capstone mode as i move through the buffer.

from open-source-machlib.

razvand avatar razvand commented on June 19, 2024

@1livv, we need a form of recursive disassembling similar to what IDA Pro is using.

Please ask on the Capstone Engine mailing list whether there is a solution for this.

If not, check whether other (open source) disassemblers may be used; maybe radare2 is an option.

from open-source-machlib.

Related Issues (5)

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.