Downloading pre-made archives from public torrents or file hosts carries legal risks. However, creating a decrypted archive from your own purchased games is legally defensible under "fair use" in many jurisdictions (for backup purposes).
There are generally two ways these archives are curated: 3ds decrypted rom archive