Comments (4)
Hello. Honestly, I don't know. Most likely it's a bug, I consider myself lucky all occurrences I came upon ended up in functions I could skip over as mine binary had debugging info present.
from le_disasm.
Hello @Roflincopter , I have a mixed 16-bit/32-bit unbound linear executable in which the 16-bit code segment uses short near offset addressing for call, jmp and similar instructions.
I am not entirely sure, but it seems to me that le_disasm tries to disassemble such 16-bit segments in 32-bit mode which would simply be wrong. In PR #10 there is a command line option to dump the flat loaded executable image of the unbound LE executable into a binary file that could be loaded by IDA 7.0 Freeware in binary mode. The region information that le_disasm prints out to std error output allows to manually create the segments in IDA where you can try to set the segment type that contains your offending references to be 16-bit.
The flat image disassembled by the Freeware version of IDA uses the same virtual addresses that le_disasm uses in function names, labels and other log messages.
This may help you identify whether le_disasm disassembles 16-bit code as 32-bit.
Recently I also had issues with misinterpreted displacement constants leading to undefined references to invalid CASE labels. For me Pull request #9 resolved these issues.
I also use wxHexEditor that uses the same disassembler library that le_disasm uses. This way I could compare the disassembly listing of le_disasm to a reference. le_disasm post processes certain opcodes while applies hacks to another bunch. Try to find and analyze the offending opcode via debugging.
What is your game / program that you try to analyze?
from le_disasm.
Hello. Honestly, I don't know. Most likely it's a bug, I consider myself lucky all occurrences I came upon ended up in functions I could skip over as mine binary had debugging info present.
Would you mind telling which binary you are working on? I'm looking for linear executables with debug symbols for a project of mine.
from le_disasm.
My apologies for the very long radio silence I had lost interest, but decided today for some reason to check this out once more.
I can say the current version (8052a7e) does not have the issue described. I can bisect the commits if you are interested in what change fixed it for me. It was indeed a mixed 16/32 bit binary. I'm a bit hesitant to disclose which binary I'm disassembling because of copyright issues with regards to reverse engineering.
the disassembly now spits out one "fdisi(8087 only)" line, which errors out in the assembler but is easily manually fixed. And if I understand correctly this is due to a library and not really under the control of le_disasm without using some hack.
from le_disasm.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from le_disasm.