Cpp2IL
                                
                                 Cpp2IL copied to clipboard
                                
                                    Cpp2IL copied to clipboard
                            
                            
                            
                        [libil2cpp.so ver 31] Unity 2022.3.40f1 Unable to read beyond the end of the stream.
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 https://github.com/SamboyCoding/Cpp2IL/issues/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:
- 
Original xapk: 
- 
https://www.dropbox.com/scl/fi/ay37tv5pozxazufz9h1ai/Lord-of-Heroes_-anime-games_1.4.121706_APKPure.xapk?rlkey=tgsxml9hq06h5n1ax9twwbiv1&st=7l6iyj0w&dl=0 
- 
Original metadata + libil2cpp.so from gamesguardain 
- 
https://www.dropbox.com/scl/fo/f8ajtcrr1oveyxk4in2zn/ANDNV1srwf84kmvqlrtpc2o?rlkey=g82afxlp2elucf772b1nvznj0&st=iisvm4h5&dl=0 
- 
metadata + libil2cpp.so from NekoYuzu 
- 
https://www.dropbox.com/scl/fo/lvxiyn5xyo9lbyo72pfa4/AE4HM-rVJ0cZOWqGscaJHU0?rlkey=y1j2gzwdb5db0txrr8ntz7xb3&st=c42jzx5m&dl=0 
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.... :(