My friend gave me their modded 3DS.

My friend didn't want his 3DS anymore so they gave it to me.

It looks like they formatted the system. But the modded firmware like GodMode9 and Luma3DS are still there when pressing Start/Select

Since it still has modded firmware, what should I do to get Homebrew Launcher, FBI, Luma3DSUpdater, all the goods back?

BTW the Micro SD card is empty and has nothing on it.