decompile a unity dll with Invalid RVA

1.1k Views Asked by At

I am trying to decompile a unity dll. The code is in Assembly-CSharp.dll. Reflector says Invalid RVA Address '05b81455'. I assume they have been edited with something like unity3dobfuscator. I've read there is a way to fix the RVA. I can't find any tutorials on how to do it. Can someone point me in the right direction? The end result I am looking for is to be able to open some dat files. If I can see the code I can read these files. So optionally can anyone help to deserialize a file you don't have a class for? I understand that it could also be encrypted. However I doubt it.

Here is the text from one of the dat files.

    BR”x   AkuaAkua     Š}Gbigpeez-fM-  ÿÿÿÿ    ƒ   
           ÿÿ„ËBÈ‚iC…~DúZ¹À^Þ3ÃÄ´@G“õÿ?ŠÔ’q–º       úC          úC  úC  úC    
                                  úC          úC  úC  úC    
                                  úC          úC  úC  úC    
                                  úC          úC  úC  úC    
                                  €?          €?  €?  €?    
                                   ² É!Ñòè­Ëþ(0϶¦ó£êfÚ\¾&¯~=U5=¯ƒz Êœz­Ï¡îwΕ ¾WÎxþ8ô¬4ýýÖ÷×jH®~=U5;Ëh0+DËœz­Ï!Ñ:«þ°Ïø@_¡·¦sœ™?©gI&÷zpH°Ÿ  ód¬Ï!ÑY  â³)0϶¦sœÉ÷ñ}_ÈST5;‚ôiXÐ4z­Ï!ÑÙ               ÿÿ          }“Š>$m?  €?  €?    ¾å@>é
³>  €?  €?  €?  €?  €?  €?Êÿ?¿©<?  €?  (#      &        ÿÿÿÿÿÿÿÿÙ   )   ¥  ÖC                            
                                                                                                                                   (                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         „… ®q<ÿ4;ƒÕeÉû ¯¦#¹}Ûôrµ¬á+EÍÀ¤hqç›Â”¼{$$|<T6:†õÖë`zÂ{¦Î/ÐöÏžhØ·1V¦‹ëŒ†¾®s‚®­?è4òƒ2,f¼ÊV
®¬ å Û©`‘¬Ë+^ÍÙ¤™q‰8”þ®»$
nôWÿ9RöêûkwžªjÍÁõgØ|Žˆ1m·Õ>¾;b±¿Ð<Ï%‹ƒ[w³Ê]
¹¬
 ÛØçr ¬ö+®Í)¤×qW›n”h½   %úneEc+ÕäÁùˆk;Œ{‡ÍÓHT²ÛvŽý2ü¦’FŒ®¯¯s„¿B-h%’­rwäÛ?h¬H YžØqR¯ (½Î8§r˜.—ñ¿‘':«T¢:õ‚èýzP—{0οЛÑyÛ¿Ž;2J·µuž½ƒa¨1­f?L7!€ïõeeɃ   Z¯î#ó4Û»rü¬ª+Íž¤6q5›”ɼ®$|W›9-ö«ëÖyyž¸xÍ—Ó³aÉÛŽ’22´XŒž™¼‹`¡¬\>q6ÜÃdWȲJ®ý"ÂØŠqį’(³Î2§™r<˜
—Ù¿»'Tø:†öë`y»žzxßÍRÓpyÑÛŽŠ2k´Õž1½#a‰™­¾?”79÷õdeȽY®ê"ö>Ú´sô­£*Ì‚¥*pªš‡•Z½?%”}V8¼÷$ê'xŠŸWxàÍoÓ_QùÛ$Žå2ͦ®xŒ•¯›s‡ª­}-Q%4’òìw|Û•p½Á1ÁÉ`;ù3φ¤sœ™¿–Š}G}“Š>$m?  €?  €?    ¾å@>é
³>  €?   €?  €?  €?  €?  €?Êÿ?¿©<?  €?            ™OŒEÓH                   
1

There are 1 best solutions below

2
On

I can just suppose, that RVA repair is possible

  • if you know the cause one was corrupted, like some specific malware
  • if you know where this RVA is specified and what should be pointed with it.