-
-
Save rmolina/a6a664649e96097d5bc58030c9c2f803 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int __cdecl main(int argc, const char **argv, const char **envp) | |
{ | |
std::string *v3; // ST00_4@13 | |
std::string *v4; // ST00_4@13 | |
const char *v5; // eax@13 | |
int v6; // eax@14 | |
std::string *v7; // ST00_4@16 | |
std::string *v9; // [sp+0h] [bp-108h]@13 | |
std::string *v10; // [sp+0h] [bp-108h]@14 | |
const std::string *MaxCount; // [sp+8h] [bp-100h]@11 | |
char Buf[4]; // [sp+1Ch] [bp-ECh]@1 | |
char v13; // [sp+20h] [bp-E8h]@1 | |
char v14; // [sp+80h] [bp-88h]@1 | |
char v15; // [sp+C1h] [bp-47h]@1 | |
__int16 v16; // [sp+C2h] [bp-46h]@1 | |
int v17; // [sp+C4h] [bp-44h]@1 | |
char v18; // [sp+E4h] [bp-24h]@13 | |
char v19; // [sp+E8h] [bp-20h]@13 | |
char v20; // [sp+ECh] [bp-1Ch]@13 | |
int *v21; // [sp+FCh] [bp-Ch]@1 | |
v21 = &argc; | |
__main(); | |
*(_DWORD *)Buf = 0; | |
memset(&v13, 0, 0x60u); | |
printf("Enter the uber secret operation code name: "); | |
fgets(Buf, 100, __iob); | |
qmemcpy(&v14, "Operation Ghost Car: https://www.youtube.com/watch?v=Wz1W_omigwg", 0x41u); | |
v15 = 0; | |
v16 = 0; | |
memset(&v17, 0, 0x20u); | |
if ( !strcmp(Buf, "Supersonic Snake\n") ) | |
{ | |
puts("Operation has expired"); | |
} | |
else if ( !strcmp(Buf, "Hot Lobster\n") ) | |
{ | |
puts("Subjects have been pinched"); | |
} | |
else if ( !strcmp(Buf, "Burnt Potato\n") ) | |
{ | |
puts("Operation has expired"); | |
} | |
else if ( !strcmp(Buf, "Burp Gun\n") ) | |
{ | |
puts("Operation has expired"); | |
} | |
else if ( !strcmp(Buf, "Duck Meat\n") ) | |
{ | |
puts("Operation has expired"); | |
} | |
else if ( !strcmp(Buf, (const char *)&"Dirty Finger\n") ) | |
{ | |
puts("Operation has expired"); | |
} | |
else | |
{ | |
generateOpName((int)&v19); | |
std::string::string((std::string *)&v19, MaxCount); | |
sha256(&v18, &v20); | |
std::string::~string(v3); | |
v5 = (const char *)std::string::c_str(v4); | |
if ( strcmp(Buf, v5) == 0 ) | |
{ | |
v6 = std::string::c_str(v9); | |
printf("Operation in effect, th3 t0k3n you s33k is: %s\n", v6); | |
} | |
else | |
{ | |
puts((const char *)&"That operation does not exist"); | |
} | |
std::string::~string(v10); | |
std::string::~string(v7); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment