This needs some validation. If the provided name is less than 7 characters, the shellcode will be broken. At the very least, it should have a comment here and as part of the yard doc.