Even if you have the original source code, how much work is needed to get it running on a different board really depends on how it was written. If it mostly uses Arduino functions like pinMode and digitalWrite, it might just work. But if it has AVR registers hard coded, large parts might need to be rewritten. Really impossible to say more without seeing the code.