It may be possible, we know the 3DS has had ports of PS2 games, but there may still be legal issues, especially if using the leaked source code.
NAL but AFAIK the best legal defence would be to ‘clean room’ reverse engineer the game, which is likely easier said than done.