Skip to content

Commit

Permalink
Update decompilation script to use memory dump
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGate01 committed Nov 24, 2020
1 parent 06a01df commit 279ceaa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions AUMInjector/AUMInjector.rc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,7
PRODUCTVERSION 1,0,0,7
FILEVERSION 1,0,0,8
PRODUCTVERSION 1,0,0,8
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -69,12 +69,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "chrz.de"
VALUE "FileDescription", "Among Us to Mumble VoIP adapter"
VALUE "FileVersion", "1.0.0.7"
VALUE "FileVersion", "1.0.0.8"
VALUE "InternalName", "winhttp.dll"
VALUE "LegalCopyright", "Copyright (C) chrz.de 2020"
VALUE "OriginalFilename", "winhttp.dll"
VALUE "ProductName", "AmongUs-Mumble"
VALUE "ProductVersion", "1.0.0.7"
VALUE "ProductVersion", "1.0.0.8"
END
END
BLOCK "VarFileInfo"
Expand Down
8 changes: 7 additions & 1 deletion decompile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ CALL setup.bat
MKDIR tmp
CD tmp

"%IL2CPPINSPECTOR%" -i "%AMONGUS%\GameAssembly.dll" -m "%AMONGUS%\Among Us_Data\il2cpp_data\Metadata\global-metadata.dat" -h "cpp" --cpp-compiler MSVC
REM Dump process memory and store loaded modules
MKDIR dump
"%PD32%" -p "Among Us.exe" -o "dump"
XCOPY "dump\*GameAssembly.dll*x86.dll" ".\GameAssembly.dll*" /Y

REM Decompile dumped module
"%IL2CPPINSPECTOR%" -i ".\GameAssembly.dll" -m "%AMONGUS%\Among Us_Data\il2cpp_data\Metadata\global-metadata.dat" -h "cpp" --cpp-compiler MSVC
XCOPY "cpp\appdata\*.*" "..\AUMInjector\appdata\" /K /D /H /Y

CD ..
Expand Down
3 changes: 2 additions & 1 deletion setup.bat.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
REM set the path to your game folder
SET "AMONGUS=C:\Steam\steamapps\common\Among Us"

REM set the path of IL2CPPInspector
REM set the path of tools
SET "IL2CPPINSPECTOR=Il2CppInspector-cli.exe"
SET "PD32=pd32.exe"

REM setup virtual machines for deployment
REM uncomment the following line to enable vm upload
Expand Down

0 comments on commit 279ceaa

Please sign in to comment.