How to recognize Standard C Library in Ghidra, like the LEGO Decomp?
Posted: Thu Aug 22, 2024 4:22 am
Hello, I'm looking to decompile a game with Ghidra. The game is a Win32 program compiled in Visual Studio 6.0 (VC98).
The LEGO Island decompilation has many functions from the C Standard Library that have gone unrecognized by the game I'm working on. IDA recognizes these, and I'm assuming they're accurate. According to this Reddit post the lack of CRT support is a downside of Ghidra.
I'm wondering, how can I get these into Ghidra like the isledecomp has done? If possible, I'd like Ghidra to ignore newer Visual Studio versions like 2003. Ghidra recognizes a few, but not most of these functions.
Edit: The Function ID menu under Tools looks very close to what I'm looking for. It doesn't have an option to disable Visual Studio 2003 apart from older versions, but maybe I can somehow get a fiddb that includes the functions.
Edit 2: Ghidra can make fiddb and "populate" them using pdb files. Maybe one of VC98's 19 PDB files will help me. (They didn't.)
The LEGO Island decompilation has many functions from the C Standard Library that have gone unrecognized by the game I'm working on. IDA recognizes these, and I'm assuming they're accurate. According to this Reddit post the lack of CRT support is a downside of Ghidra.
I'm wondering, how can I get these into Ghidra like the isledecomp has done? If possible, I'd like Ghidra to ignore newer Visual Studio versions like 2003. Ghidra recognizes a few, but not most of these functions.
Edit: The Function ID menu under Tools looks very close to what I'm looking for. It doesn't have an option to disable Visual Studio 2003 apart from older versions, but maybe I can somehow get a fiddb that includes the functions.
Edit 2: Ghidra can make fiddb and "populate" them using pdb files. Maybe one of VC98's 19 PDB files will help me. (They didn't.)