Emulators (PCSX2, AetherSX2, Play!, DobieStation) translate PS2 hardware behavior into host PC/mobile instructions.
Emulators legal. BIOS & game ISOs must be dumped from your own hardware. Downloading = piracy.