You must have Pixel Cape, Armor, Helm, and Sword in your inventory (not equipped) along with 1000 Pixel Coins when you speak to Count Stan. You may need to have empty space in your USE inventory tab as well.
If you are unable to rank up to 5-Star Hero even with these conditions met, please submit a ticket to our Support team: https://support-maplestory.nexon.net
This issue where the client crashes along with the 'Illegal program or malicious code detected' error message is being looked into.
Thank you for your patience and we apologize for the inconvenience you may experience due to this issue!