Sounds like this is similar to a decompilation (pay walled article so I haven't read it).
A while back a listened to a podcast where they interviewed people doing this and it was quite interesting. (And it's an engineering podcast so many technical details.)
https://softwareengineeringdaily.com/2024/05/24/bonus-episod...