The Art of Win32 Shellcoding
Table of Contents

Introduction
Part 1: The Basics
What’s Shellcode?
The Types of Shellcode
Part 2: Writing Shellcode
Shellcode Skeleton
The Tools
Getting the Delta
Getting the Kernel32 imagebase
Getting the APIs
Null-Free byte Shellcode
Alphanumeric Shellcode
Egg-hunting Shellcode
Part 2: The Payload
Socket Programming
Bind Shell Payload
Reverse Shell Payload
Download & Execute Payload
Put All Together
Part 4: Implement your Shellcode into Metasploit
Conclusion
References
Appendix I – Important Structures

Info
http://www.codeproject.com/Articles/325776/The-Art-of-Win32-Shellcoding#ch2.1

Download source code
http://www.codeproject.com/KB/web-security/325776/win32-shellcode-src.zip