Genshell is a fully generic win32 shellcode generator. It compiles on both Linux and Windows. Shellcode is also polymorphic (you can specify xor-byte value). A complete article with source code is included.
b90364b48c70c4622aa95c35d6ba27db5dd4ecbc4f71055d49fad2a4fef26089