Once you have the legal game installed, do NOT run it as-is. Apply these performance tweaks to make it run on a potato:
Resident Evil 4 was ported to the Zeebo (a Brazilian console) and iOS. Zeebo emulation exists, and the iOS version (now delisted) can be sideloaded on older iPhones—not helpful for PC, but interesting. resident evil 4 pc fraco download
For extreme nostalgia on a truly ancient PC, emulate the Java ME (J2ME) version of Resident Evil 4 (the one on old flip phones). Use the KEmulator emulator. It’s a completely different game (2.5D rail shooter), but it runs on 64MB of RAM. Once you have the legal game installed, do NOT run it as-is