You might be able to do this with the official Flash editor. Hold on, lemme check.
1. Acquire Adobe Animate (formerly Adobe Flash, formerly Macromedia Flash)
2. Make a new HTML5 project
3. file>import>import to stage
4. file>publish, this sure can take a while, it’s been stuck at 80% on the file I pulled out to test this on for some time.
Caveats:
* Some SWFs are "protected" and won’t be loaded by the editor, you can find tools online to crack that protection pretty easily IIRC. Or at least you could back in the day.
* This won’t get the sound.
Installing Animate also gets you the Flash Player, which will play any .swf; you could conceivably record the screen as a .mov or whatever. Though a cursory google search reveals multiple websites that claim to be able to spew out a video file from your uploaded .swf.
You could also acquire a swf decompiler and use that: decompile .swf, load the resulting .fla into Animate, export as canvas. I don’t know which decompilers are currently the best, it’s been years since I last did Flash.