Jump to content
Blue Indian

[VC] Keygen template with text speak and scroller

Recommended Posts

Blue Indian

Here's my new keygen template, hope you guys will like it :superblue:
2cpuib7.png   rvezut.png
 
Source code:

#include #include #include "resource.h"#include #include "Ripple.h" //Water Ripple effect by Napalm, fixed by me// Music#include "ufmod.h"#include //Needed Library#pragma comment(lib,"winmm.lib")#pragma comment(lib,"ufmod.lib")#pragma comment(lib,"VScroller.lib")#pragma comment(lib,"comctl32.lib")#pragma comment(lib,"cryptohash.lib")//scroller functions (vscroller.lib)void InitVScroller(HINSTANCE hInstance, HWND hWnd, char* ScrollText, UINT IMAGE_ID, LOGFONT lf, int ScrollSpeed);void UpdateVScroller(COLORREF UpSideColor, COLORREF DownSideColor);void DrawVScroller(UINT DrawFlags);void KillVScroller();extern "C"{// Cryptohash functions, may be used later on!void __stdcall WhirlpoolInit();void __stdcall WhirlpoolUpdate(char* text, int len);DWORD __stdcall WhirlpoolFinal();void __stdcall HexEncode(DWORD hash, int Digest_Size,char* result);}// Global variablesHINSTANCE hInst;DWORD meta;HWND g_hWnd;LOGFONT lf;char about_text[] = "----| Team URET |----\n\nPresents\n\nDemo Keygen Template\nVersion: 1.0 build 1\n\n\nCoded in: MSVC 2010\n\n\n----| Thanks |----\nNapalm\nPeterPunk\nCybotX\nMike.X aka Zekim\n\n\n\n\n----| Greetz |----\nSoni\nPhoenix\[email protected]!ya\nXorRanger\nfish3r\nNieo\nLoop_De_LoopZ\ncxj98\nm0rpheus\nFeni}{\nand\nNewExe\n\n\nAlso...\n\n\nTo all URET friends\n\n\n----| Respect |----\nTo all RE Individual\nand\nTeams\n\n\n\nSee you again....\n\n\n\n\nBye....\n\nBy: Blue Indian";/* Fade In And Fade Out Window */#ifndef LWA_COLORKEY#define LWA_COLORKEY 0xFFFFFF#define LWA_ALPHA 0x00000002#endif#ifndef WS_EX_LAYERED#define WS_EX_LAYERED 0x00080000#endif#define TRANS 0xD5#define SPEED 10int nAlpha = 0;typedef BOOL(CALLBACK* SETLAYEREDWINDOWATTRIBUTES)(HWND, COLORREF, BYTE, DWORD);typedef DWORD(WINAPI *pLayer)(HWND, DWORD, BYTE, DWORD);SETLAYEREDWINDOWATTRIBUTES pLayered;HMODULE hDll;void FadeIn(HWND hwnd){SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);nAlpha = 0;while (nAlpha < TRANS){hDll = LoadLibrary("user32.dll");pLayered = (SETLAYEREDWINDOWATTRIBUTES)GetProcAddress(hDll, "SetLayeredWindowAttributes");pLayered((HWND)hwnd, 0, (BYTE)nAlpha, (DWORD)LWA_ALPHA);FreeLibrary(hDll);Sleep(SPEED); nAlpha += 5;UpdateWindow(hwnd);ShowWindow(hwnd, SW_SHOW);}}void FadeOut(HWND hwnd){SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);nAlpha = TRANS;while (nAlpha > 0){hDll = LoadLibrary("user32.dll");pLayered = (SETLAYEREDWINDOWATTRIBUTES)GetProcAddress(hDll, "SetLayeredWindowAttributes");pLayered((HWND)hwnd, 0, (BYTE)nAlpha, (DWORD)LWA_ALPHA);FreeLibrary(hDll);Sleep(5); nAlpha -= 10;}}/* End of FadeIn and FadeOut window function*//* SAPI Function for text speech*/ISpVoice *pVoice = NULL;HRESULT hr;WCHAR wstr[1024] = L"";bool InitVoice(){if (FAILED(::CoInitialize(NULL))) // Initialize the COM Libraryreturn FALSE;hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice); // Start a COM instanceif (SUCCEEDED(hr)){return true;}else{::CoUninitialize(); // Failed so release the COM libraryreturn FALSE;}}void FreeVoice(){pVoice->Release(); // We are done destroy the voice objectpVoice = NULL;::CoUninitialize(); // We are done so unload the COM Library}VOID ConvertAnsiStringToWide(WCHAR* wstrDestination, const CHAR* strSource, int cchDestChar) // Convert ascii string to unicode{if (wstrDestination == NULL || strSource == NULL)return;if (cchDestChar == -1)cchDestChar = strlen(strSource) + 1;MultiByteToWideChar(CP_ACP, 0, strSource, -1, wstrDestination, cchDestChar - 1);wstrDestination[cchDestChar - 1] = 0;}void SetVoiceVolume(LRESULT lResult) // Update the volume{pVoice->SetVolume((WORD)lResult); // Set the volume}void SpeakMe(char* DataToRead){ConvertAnsiStringToWide(wstr, DataToRead, -1); // Convert Stringhr = pVoice->Speak(wstr, 0, NULL); // Speak the string}/* End of SAPI functions*/BOOL CenterWindow(HWND hWnd, HWND hWndCenter) // by Napalm{RECT rcDlg, rcArea, rcCenter;HWND hWndParent;DWORD dwStyle, dwStyleCenter;// Determine owner window to center against.dwStyle = GetWindowLong(hWnd, GWL_STYLE);if(!hWndCenter)hWndCenter = (dwStyle & WS_CHILD) ? GetParent(hWnd) : GetWindow(hWnd, GW_OWNER);// Get coordinates of the window relative to its parent.GetWindowRect(hWnd, &rcDlg);if(!(dwStyle & WS_CHILD)){// Don't center against invisible or minimized windows.if(hWndCenter){dwStyleCenter = GetWindowLong(hWndCenter, GWL_STYLE);if(!(dwStyleCenter & WS_VISIBLE) || (dwStyleCenter & WS_MINIMIZE))hWndCenter = NULL;}// Center within screen coordinates.SystemParametersInfo(SPI_GETWORKAREA, NULL, &rcArea, NULL);if(hWndCenter) GetWindowRect(hWndCenter, &rcCenter);else rcCenter = rcArea;}else{// Center within parent client coordinates.hWndParent = GetParent(hWnd);GetClientRect(hWndParent, &rcArea);GetClientRect(hWndCenter, &rcCenter);MapWindowPoints(hWndCenter, hWndParent, (LPPOINT)&rcCenter, 2);}int DlgWidth = rcDlg.right - rcDlg.left;int DlgHeight = rcDlg.bottom - rcDlg.top;// Find dialog's upper left based on rcCenter.int xLeft = (rcCenter.left + rcCenter.right) / 2 - DlgWidth / 2;int yTop = (rcCenter.top + rcCenter.bottom) / 2 - DlgHeight / 2;// If the dialog is outside the screen, move it inside.if(xLeft < rcArea.left) xLeft = rcArea.left;else if(xLeft + DlgWidth > rcArea.right) xLeft = rcArea.right - DlgWidth;if(yTop < rcArea.top) yTop = rcArea.top;else if(yTop + DlgHeight > rcArea.bottom) yTop = rcArea.bottom - DlgHeight;// Map screen coordinates to child coordinates.return SetWindowPos(hWnd, NULL, xLeft, yTop, 0, 0,SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);}void LoadRippleEffect(HWND hWnd) // Ripple initialization function{BITMAP bm;HBITMAP hImage;hImage = (HBITMAP)LoadImage(hInst, MAKEINTRESOURCE(IDB_BITMAP1), IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION);if (hImage){GetObject(hImage, sizeof(bm), &bm);Ripple_Create(0, 0, bm.bmWidth, bm.bmHeight, 101, hWnd, hInst, hImage);DeleteObject(hImage);}else{MessageBox(hWnd, "Failed to load resource image!", "Error", MB_ICONERROR);SendMessage(hWnd, WM_CLOSE, 0, 0);}}// About dialog callback functionBOOL CALLBACK AboutProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){RECT rect;switch(message){case WM_INITDIALOG:CenterWindow(hWnd,g_hWnd);GetWindowRect(hWnd,&rect);ZeroMemory(&lf, sizeof(LOGFONT));strcpy(lf.lfFaceName, "Lucida Console");lf.lfHeight = 15;lf.lfWeight = FW_BOLD;lf.lfQuality = ANTIALIASED_QUALITY;InitVScroller(hInst, hWnd, about_text, IDB_BITMAP2, lf, 20);uFMOD_PlaySong((void*)IDR_RCDATA1, 0, XM_RESOURCE);uFMOD_SetVolume(100);return TRUE;case WM_TIMER:UpdateVScroller(RGB(255, 255, 255), RGB(128, 255, 0));return TRUE;case WM_PAINT:DrawVScroller(DT_CENTER | DT_TOP | DT_NOPREFIX | DT_NOCLIP);return TRUE;case WM_RBUTTONDOWN:case WM_DESTROY:case WM_CLOSE:uFMOD_StopSong();KillVScroller();EndDialog(hWnd,0);return TRUE;}return FALSE;}// Main dialog controls handlervoid Handler(HWND hWnd, WPARAM wParam, LPARAM lParam){switch(HIWORD(wParam)){case BN_CLICKED:{switch(LOWORD(wParam)){case IDC_EXIT:SendMessage(hWnd,WM_CLOSE,0,0);break;case IDC_ABOUT:DialogBoxParam(hInst,MAKEINTRESOURCE(IDD_DIALOG2),hWnd,DLGPROC(&AboutProc),NULL);break;case IDC_GENERATE:SetVoiceVolume(100);SpeakMe("You just clicked the check button");break;}}break;}}// Main dialog callback functionBOOL CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){switch(message){case WM_INITDIALOG:g_hWnd = hWnd;SetWindowText(hWnd,"Demo Keygen-Team URET");SetDlgItemText(hWnd,IDC_FOOTER,"By: Blue Indian^URET");SendMessage(hWnd,WM_SETICON,1,(LPARAM)(LoadIcon(hInst,MAKEINTRESOURCE(IDI_ICON1))));LoadRippleEffect(hWnd);InitVoice();FadeIn(hWnd);return TRUE;case WM_MOUSEMOVE:SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0);return TRUE;case WM_COMMAND:Handler(hWnd,wParam,lParam);return TRUE;case WM_CLOSE:case WM_DESTROY:FreeVoice();FadeOut(hWnd);EndDialog(hWnd,0);return TRUE;}return FALSE;}// Yes, this is the famous Main functionint WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){hInst = hInstance;InitCommonControls();Ripple_Register(hInstance);DialogBoxParam(hInstance,MAKEINTRESOURCE(IDD_DIALOG1),HWND_DESKTOP,DLGPROC(&DlgProc),NULL);}

 

Download:

VC Keygen Template with text speaker.zip

  • Upvote 4

Share this post


Link to post
Share on other sites
Phoenix

WoW! good one Blue..... Lovely and beautiful.


 


Thanks buddy......  :):scenic:


Share this post


Link to post
Share on other sites
m0rpheus

awww its unexpected bro, very nice one


Share this post


Link to post
Share on other sites
OPiC

when I click on "Check" button , the app gets too slow ;) 


Share this post


Link to post
Share on other sites
Blue Indian

when I click on "Check" button , the app gets too slow ;)

 

Check the source code, and you will get to know why :blind: The SAPI is working on the main thread, that's why. If you want to get rid of this, call the function inside a child thread, it's a child play.

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Guidelines