Il2CppInterop icon indicating copy to clipboard operation
Il2CppInterop copied to clipboard

Memory validation and runtime module dump

Open krulci opened this issue 2 months ago • 0 comments

  1. Memory region protection validation Current main stream implementation of FindMethodSignature fails when the memory region is protected. This leads to an access violation error. This pull request implemented memory validation and set them to execute_read_write before signature scanning. Protection right is restore after signature scanning.

  2. Runtime module dump to support obscure game assembly Current main stream implementation of interop generation uses raw GameAssembly.dll and global-metadata.dat. This will fail if the game is packed and if global-metadata.dat is embedded in GameAssembly.dll. This pull request implemented runtime module dump. global-metadata.dat is extracted using pattern matching.

  • Optional metadata magic fixing is also implemented for obfuscated global-metadata.dat, so the output product can be used in il2cppdumper.
  • ILogger is a required parameter for the considerations that this method may be used before interop generation. That is before Create.

krulci avatar May 04 '24 20:05 krulci