Welcome to my first challenge! If you’re interested in becoming a reverse engineer, it’s important that you have a strong background with low level data and can understand the process of disassembly and debugging.
Details of the Challenge
A friend of yours is an arts major but he hasn’t been making enough money for his software working as a McDonald’s cashier since he graduated. He has recently received a huge opportunity to showcase his computer-generated graphics skills for a gaming company and has been begging you, the master cracker, to crack the latest version of this new viral product on the market. The mission, should you choose to accept it, will be briefed ahead. As always, should you or any of your cracking team be caught, you will be jailed for the failure to comply to the Digital Millennium Copyright Act (DMCA) and your friend will disavow any knowledge of your actions. Good luck.
This challenge is known as a Keygenme and the goal of this type of challenge is to understand the algorithms associated with key generation (hence keygen). For this specific challenge, you must take the binary, open it up, figure out the algorithm and then create the necessary components to unlock the program. Please note that this is not a crackme so try to refrain from using methods such as binary patching as it defeats the entire purpose of the challenge.
Difficulty: 1/10
The Binary
Here is a base64 dump of keygenme.gz
for Linux users. To recover the binary, use cat keygenme | base64 -d | gunzip >dump && chmod +x dump
.
Original, normal mode(stripped):
H4sICGKT1VcAA2tleWdlbm1lAO1Yb2wUxxWfvVufN8n5fC4X6oRrOeAIpDIX23EIIaSNsYGQOASI
Ia0gOc53e+zF51trdy/gCjXA4YBlObIqmi+JFFDabyRCihShJFJND0xp+eCmqGo/tfmru2AkK7Su
pQDX39uZtZeT8yGf6zm9nXnv/ea9tzNv9mbm1U1dmyVJYk7xMC8jbvsxWWmjuoHL21iE3cVWszBb
wnw2DzoMDCiCDkQ1kMkgL6gbfPcRWSFaBH6R0EmC7IK+RI0KY0TUnwW5XqkHvS0rRE0QNIN8Qu9B
FYI+BB1RCTyRT/gg0oDX4JuoE3ynS7f9Syu1oZaxDcdlhagJsiaXfgf0bJ7i4+7ZTujd8c1ANuN6
v4eymZ6Hsqk12UwufzBm6rFWrgsK/ZZtu8RYc5uNom9IjB3p1fHWH9/o/Wvd35evKP9uavDsscXX
9xH+LmHDHqsIfkL27jOfj1XHu9bV/gHoiSp+ZRXfWcVHqvi9Lp50T1fp76/i7wFNviYr9G4NDAOG
cUnSe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SlFBS6Y4luwIxJaQlU2klkOlj2IH1xlRNDXnXrX22YWaSkt/ZKditpfoZ
3wuGMvF4P6pYkJLfEApqj9rfrSbiqu72pg7/1laldVsL/OadMO4L6oWY0vLKNv/WtuZCjf49gymb
27dv9Lcr2zdt2tnaqXT6N7a3KsZHkGA6o7vLlLbOrUo+Np1bmykMnYGumApuX9M6b7eqKb1BRYtk
Ej3erj5G+1LDhKpvUvlXlg0b8t9KRNtFn2PyjEb+SSZf4KOQ5humrzmFyoIPNeCmk0okkAiRl4Wf
gz7zlaewHbP3+iZe/3ZU4LgeVdG7cK8SOYQ62IOLIv7VaMtBpUPEqzkWSKf1WYPIGaNEIZ05oLrR
/wG4gQZFJx0AAA==
For Windows users, here is the download link to keygenme.zip
: MediaFire and the VirusTotal scan for it.
Ikarus Trojan.Agent 20160911
??
Someone needs to get their shit together.
BOTH BINARIES HAVE BEEN COMPILED WITH THE SAME CODE AND FLAGS.
Hints
This isn’t a very hard challenge.
Conclusion
If there are any issues with either binaries, please message me and I will try to fix it ASAP.
This message will self-destruct in five seconds…