Comments (3)
i was wrong, there was an ambiguity in opcodes i found, as the opcode handlers of 2 opcodes are exactly same and oldrod assumes end of function when opcode is recieved. thanks, devirtualisation works great! thanks for the aweosme work!
from oldrod.
Modifications of KoiVM will always result in problems with either the disassembly or recompilation process.
This error stems from a few instructions not being decoded properly. Specifically, it is trying to emulate a CALL instruction. For binaries protected by vanilla KoiVM this should never happen (see InstructionEmulator).
This is indicative of either:
- The config.json is not correctly filled in, causing some instructions to be incorrectly decoded as CALL instructions.
- There are more modifications applied to this KoiVM than simply some opcode remappings, causing CALL instructions to appear as arguments to e.g., indirect jumps.
Double check your cross-references with the opcode handlers and your config.json. I also added some simple safety guards in the latest commit (56fc436, build should appear on AppVeyor soon), that should at least produce some results, and should enable you to use --salvage
and --dump-il
and/or --dump-cfg
to help debugging which of the two hypotheses is the case.
from oldrod.
im mostly sure that the call opcode is correct, i also rechecked, i am sure later is the case as if i even skip the first function there are more changes which deter devirtualisation
from oldrod.
Related Issues (20)
- Something went wrong! Try the latest version or report a bug at the repository HOT 7
- Error ExceptionHandler HOT 1
- locating constants type error?? HOT 4
- . HOT 1
- Recompiler uses ldsfld for instance fields HOT 1
- Issue with modded KoiVM (key not found in dictionary) HOT 3
- Koivm Mod Error HOT 2
- Return and parameter types of methods is not entirelly correct. HOT 1
- `Shr_Un`, `Div_Un`, `Rem_Un` leave behind a mess of flag updates. HOT 1
- `Neg` OpCode is not supported. HOT 3
- Interface implementations are not taken into consideration for type analysis. HOT 1
- Interfaces are cast to objects for no apparent reason. HOT 1
- Exception handlers of type `filter` are not supported. HOT 1
- Latest Build Artifacts Missing HOT 1
- Compile error HOT 3
- OldRod.Core.Recompiler.RecompilerException HOT 2
- An item with the same key has already been added. Key: 24 HOT 2
- An item with the same key has already been added HOT 5
- Failed to recompile function HOT 4
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 oldrod.