You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assembliesSectionIndex=22;//pre-24.2 we have rgctxEntries before assemblies
514
510
511
+
varexpectedSectionCount=MetadataVersionswitch
512
+
{
513
+
>=104=>32,
514
+
>=27=>31,
515
+
_ =>thrownewNotImplementedException("Metadata versions below 27 aren't currently supported (largely because mfuscator itself doesn't support these versions)")
thrownewNotImplementedException("Metadata versions with 12 bytes per section header field aren't currently supported");
525
+
526
+
varoriginalHeaderSize=8+expectedSectionCount*bytesPerSectionHeaderField;//magic + version + 8 bytes per section header field
527
+
515
528
Logger.InfoNewline($"Mfuscator header decrypted successfully. Header length: {headerLength} bytes. String literals XOR key: 0x{stringLiteralsXorKey:X2}. String literals use {(stringLiteralsIsPlus?"plus":"minus")} rotation. Will rebuild as version {MetadataVersion} metadata with assemblies section at index {assembliesSectionIndex}.");
Logger.VerboseNewline($"These collapse to {distinct.Length} distinct actual section layouts.");
537
-
538
-
//We'll just accept any valid layout here, if there is more than one distinct layout it's likely they only differ in the irrelevant sections at the end of the file which cpp2il ignores
0 commit comments