// ITwin32LevelOneDlg.cpp : implementation file // // http://reverse.israeltorres.org/ITwin32LevelOne-unpacked.cpp /* ... removed windows project stuffs ... */ void CITwin32LevelOneDlg::OnOK() { CString sVyrus=""; ((CEdit*)GetDlgItem(IDC_EDIT1))->GetWindowText(sVyrus); CString sYoda ="Do or do not; there is no try...."; ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText(sYoda); if (strlen(sVyrus)==0) { sYoda="Your answer is like an empty mind."; ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText(sYoda); Sleep(1000); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("Do or do not; there is no try...."); ((CEdit*)GetDlgItem(IDC_EDIT1))->SetWindowText(""); } else { //7679727573 CString p0 = "0"; CString p1 = "1"; CString p2 = "2"; CString p3 = "3"; CString p4 = "4"; CString p5 = "5"; CString p6 = "6"; CString p7 = "7"; CString p8 = "8"; CString p9 = "9"; // 375 CString sAss= p3 + p7 + p5; // 727 CString sPas= p7 + p2 + p7; // 976 CString sWor= p9 + p7 + p6; // 7 CString sOrd= p7; CString sRP = sAss + sPas + sWor + sOrd; char szVyrus[256]="\0"; strcpy(szVyrus,sVyrus); strrev(szVyrus); CString sNewVyrus = szVyrus; if (sNewVyrus.Compare(sRP) == 0) { ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("Congrats! Decrypt This:"); Sleep(1000); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("Xirs Kyzj Gvsscv Wifd Dp Yreu"); Sleep(100); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("You have moved too slow..."); Sleep(1000); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("Do or do not; there is no try...."); ((CEdit*)GetDlgItem(IDC_EDIT1))->SetWindowText(""); } else { sYoda = "\"" + sVyrus + "\"" + " is incorrect; Try again."; //sYoda = sVyrus; ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText(sYoda); Sleep(1000); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("Do or do not; there is no try...."); ((CEdit*)GetDlgItem(IDC_EDIT1))->SetWindowText(""); } } //Xirs Kyzj Gvsscv Wifd Dp Yreu } void CITwin32LevelOneDlg::OnCancel() { // TODO: Add extra cleanup here Sleep(1000); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("You are not a jedi yet... "); Sleep(1000); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("and there is a penalty for quitting."); Sleep(1000); ((CEdit*)GetDlgItem(IDC_STATIC_RESULT))->SetWindowText("All Your Hacks Are Belong To Us."); Sleep(100000); CDialog::OnCancel(); }