Now that you know all about the C calling convention, and mixing C and assembly language, and putting machine code into C strings that can executed, you're ready to learn about the fabulous world of buffer overflows in Smashing The Stack for Fun and Profit.
Maybe, on an old system. Read the Wikipedia article on stack smashing. You'll see a lot of techniques that systems use to make a successful attack unlikely these days.