Selasa, 11 Februari 2014

Base ASM Lost Saga ^_^

include <windows.h>

DWORD dwPB = (DWORD)GetModuleHandleA("lostsaga.exe");
DWORD hookaddy = dwPB + 0xB26068; // Offset No Delay
DWORD addy2 = hookaddy+ 0x5; // Teknik Jump Offset Ke ASM Agar Work ^_^
int loop = 50; // Loopnya Jangan di Ganti

// Deklarasi Byte ASM [ Bukan Byte String ]
__declspec(naked) void CodeCave() // On Keys
{
__asm
{
add [eax],al
add [eax],al
jmp addy2;
}
}
__declspec(naked) void CodeCave2() // Off Keys
{
__asm
{
dec ebp
inc ecx
pop eax
pop edi
dec eax
push eax
pop edi
jmp addy2
}
}

void CopyBuffer(BYTE *Buffer, int Size, DWORD *Address)
{
DWORD pPrevious = 0;
VirtualProtect(Address, Size, PAGE_EXECUTE_READWRITE, &pPrevious);
memcpy(Address, Buffer, Size);
VirtualProtect(Address, Size, pPrevious, &pPrevious);
}

void SetupHook(DWORD Function, DWORD Hook, int Size)
{
Hook = Hook - Function - 5;
BYTE bHook[4];
memcpy(bHook,(void*)&Hook,4);
BYTE Buffer[10];
memset(Buffer,0x90,10);
Buffer[0] = 0xE9;
Buffer[1] = bHook[0];
Buffer[2] = bHook[1];
Buffer[3] = bHook[2];
Buffer[4] = bHook[3];
CopyBuffer(Buffer, Size, (DWORD*)Function);
}

DWORD WINAPI dwMainThread(LPVOID)
{ while (1) {

if (GetAsyncKeyState(VK_INSERT)&1) { // On Key Settings
MessageBeep(MB_ICONINFORMATION);
SetupHook(hookaddy,(DWORD)CodeCave,5);
}
if (GetAsyncKeyState(VK_DELETE)&1) { // Off Key Settings
MessageBeep(MB_ICONINFORMATION);
SetupHook(hookaddy,(DWORD)CodeCave2,5);
return 0;
}
Sleep(10);
}

}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBox(0, "Created by CberComunity", "Just For VIP", MB_ICONINFORMATION ); // Notice yg Keluar ^_^
CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
}
return TRUE;
}

Posting Lebih Baru Posting Lama Beranda

3 komentar:

:10 :11 :12 :13
:14 :15 :16 :17
:18 :19 :20 :21
:22 :23 :24 :25
:26 :27 :28 :29
:30 :31 :32 :33
:34 :35 :36 :37
:38 :39 :40 :41
:42 :43 :44 :45
:46 :47 :48 :49
:50 :51 :52 :53
:54 :55 :56 :57
:58 :59 :60 :61
:62 :63

Posting Komentar