Skip to content

[libil2cpp.so ver 31] Unity 2022.3.40f1 Unable to read beyond the end of the stream. #408

@il2cppHowToUse

Description

@il2cppHowToUse

Greetings,
Application version:
2022.1.0 #19

Unity version:
2022.3.40f1

Il2Cpp Version:
31

Problem
With original xapk I receive the following errors:
Original xapk errors.txt
In shorts:

[Info] [Library] Mapping pointers to Il2CppMethodDefinitions...

Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL! ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.

similar to #309

That means that libil2cpp.so is encrypted, so I have used advice from there, to dump it via gamesguardian. Then I have used command line:
Cpp2IL.exe --force-binary-path=libil2cpp.so --force-metadata-path=global-metadata.dat --force-unity-version=2022.3.40f1 --verbose
But it's resulted in the following error:
Gamesguardian force path errors.txt

[Verb] [Library]        Reading ELF section header table and names...
[Fail] [Program]

Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL! ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.

Then I have tried NekoYuzu script, but the error is the same as in logs above.

Files:

At the end of the day I have tried Zygisk dumper for dump.cs from memory and it was successful, but with data like:

	private Void SetSeaBattleData(MsgRankingUserInfoSeaBattle userInfoSeaBattle, Boolean isNoParticipate) { }
	// RVA: 0x301ef20 VA: 0x6302f20

I have no idea what to do next without dummy dll and input for ida \ ghidra.... :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions