SourceForge.net?
This website?
https://sourceforge.net/projects/midletpascal/
And the download being mp35fr-setup.exe? (fr = French?)
I took a quick look at the website and the source code. Not really anything (full disclosure) that I have worked with and that was years ago. Still no harm in looking at the source code.
I think that the warning is more a generic caution because the download is coming from some other website(s) that SourceForge does not control. Plus lots of adds etc., getting inserted to it all. And those ads also include clickable links to some degree or another.... Noted some very old dates as well.
Many websites/ads contain misleadind download buttons that do not download the app or tool being sought Something else not wanted be it malware or otherwise.
Careful reading required before clicking.
And stopping automatic downloads is a good thing as well.
Will defer to present and past webmasters regarding further reading and interpreting SourceForge's webpage and the overall Malware warnings.
= = = =
Judgement call on whether to download or not. If the executable is really required, I would download the executable to a single, isolated folder and then scan the download as much as possible before executing or installing.
That said, in any case, it is very unlikely that you would be able to work through the .exe code and remove malware or otherwise extract just the non-malware parts.
Requires a lot of coding knowledge and knowedge about malware.
Remember that malware is meant to be disguised and hidden.