Not sure, if I understand you.
If you want to know how to create an encrypted procedure, have a look at BOL at CREATE PROCEDURE. AFAIK, you can't create encrypted functions.
But if you're after how you can decrypt an encrypted procedure, you might want to google on this. There are several freeware tools that will do this.