Reverse engineered prompt

Build me a small C# command line tool that can take a Lua script obfuscated with MoonSec V3 and deobfuscate it into a Lua 5.1 bytecode file, so I can run that output through any Lua decompiler afterward. I also want an option to dump a readable bytecode disassembly to a file instead of the bytecode itself.

Please keep it simple to run with dotnet and support clear input and output file arguments. I want two obvious modes, one for devirtualizing and writing the bytecode, and one for writing the disassembly. It should work on local files, fail nicely with helpful messages, and produce output that matches normal Lua 5.1 style as closely as possible.

Also include a short README that explains how to build it, how to run each mode, and shows a couple of example commands. If you need more detail on MoonSec V3 behavior or Lua 5.1 bytecode, look up the current docs online.

Want more depth? Deep Reverse