The whole point of Bitcoin is that it is irreversible so unfortunately you're not going to be able to get them back. The best you can do is figure out your security flaw and patch that ASAP.
Where is your wallet stored and for how long has it been encrypted?