Is it Illegal to Use Assets from Another Game for Research Purposes?

As far as i know, reverse engineering a game assets or code just for personal use its not outlawed, i know a few people that reverse-engineered some UE3 games(it was hilariously easy) to see how they work and its just fine if you dont use that for commercial purposes or distribute that decompiled code.