How to remove gunpowder virus?
As long as the infected app wasn't able to gain root and/or infect the /system partition, a factory reset will fix it.

However, if it was ... it would require re-flashing the ROM.