[ASM] Stuff

Posts 111 of 11 · Page 1 of 1
[ASM] Stuff
.386
.Model Flat, StdCall
OPTION CASEMAP :NONE

include \masm32\include\windows.inc
include \masm32\include\masm32.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
include \masm32\include\debug.inc
include \masm32\include\advapi32.inc
include \masm32\include\urlmon.inc
includelib \masm32\lib\masm32.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\debug.lib
includelib \masm32\lib\advapi32.lib
includelib \masm32\lib\urlmon.lib

include Explict.inc
include Functions.inc
include Events.inc
include Security.inc

.Data
NOP6 db 90h, 90h, 90h, 90h, 90h, 90h

.Data?
hThread dd ?
ThreadID dd ?

.code
ReadyForHook proc

invoke GetModuleHandle, CTEXT("d3d9.dll")
.if eax == 0
;Failed to get d3d9
.elseif
invoke GetModuleHandle, CTEXT("ClientFX.fxd")
.if eax == 0
;Failed to get ClientFX
.elseif
invoke GetModuleHandle, CTEXT("CShell.dll")
.if eax == 0
;Failed to get CShell
.elseif

.endif
.endif
.endif
ret

ReadyForHook endp
DllEntryPoint proc hInstDLLWORD, reasonWORD, unusedWORD


mov eax,reason
.if eax == DLL_PROCESS_ATTACH
mov eax, hInstDLL
invoke CreateThread, NULL, 0, addr ReadyForHook, 0, 0, 0
mov hThread, eax
.endif
ret

DllEntryPoint endp
End DllEntryPoint
PushToConsole (Still isn't working)

PushToConsole proc CommandWORD
LTClient = dword ptr -14h
CNoff = dword ptr -8

mov [ebp+LTClient], 377ED910h
mov eax, [ebp+LTClient]
mov ecx, [eax]
mov edx, [ecx+208h]
mov [ebp+CNoff], edx
push [ebp+Command]
call [ebp+CNoff]
add esp, 4h
ret

PushToConsole endp
.data

.data?
buffer db 256 dup (?)

.code

WriteMem proc MemOffsetWORD, DataPtrWORD, dataLenWORD
LOCAL OldProtWORD

pushad
invoke VirtualProtect, MemOffset, dataLen, PAGE_EXECUTE_READWRITE, addr OldProt
invoke RtlMoveMemory, MemOffset, DataPtr, dataLen
invoke VirtualProtect, MemOffset, dataLen, OldProt, addr OldProt
popad
ret

WriteMem endp
HookPatch proc uses ecx ebx fromWORD, toWORD, head:BYTE

mov ebx, to
mov ecx, from
add ecx, 05h
sub ebx, ecx
lea ecx, buffer
mov dword ptr [ecx+1], ebx
mov bl, head
mov byte ptr [ecx], bl
invoke WriteMem, from, addr buffer, 5
ret

HookPatch endp
I'll probably release more when I bypass this anti-debug thing in CA.
Nice code but its nothing without a PTC function that works... Hope you fix it becouse the hotkey men might want to use this becouse it will lag less when its written in ASM
o.O ASM


/
lol bro, hard convert it, dont use a converter they make mistakes..
Quote Originally Posted by DeadLinez View Post
lol bro, hard convert it, dont use a converter they make mistakes..
lol bro, quit trolling, when you troll it makes you an asshole..

He didn't use a converter anyway as his asm knowledge is 10x as much as yours.
I didn't use a converter. I didn't even know there was a C++ to ASM converter anyway. I think next I would probably release a full hack.exe source code in ASM. I can do a little C though but not C++. In fact, I even programmed a full hack.exe in C too.
Quote Originally Posted by Dewerong View Post
I didn't use a converter. I didn't even know there was a C++ to ASM converter anyway. I think next I would probably release a full hack.exe source code in ASM. I can do a little C though but not C++. In fact, I even programmed a full hack.exe in C too.
C++ Is Basically C..
There is a difference.
Quote Originally Posted by Dewerong View Post
There is a difference.
Yea Just A Few Difference..
But Syntax is basically the same
DeadLinez thinks he is 1337. When he is 0.


/
Quote Originally Posted by Stephen View Post
DeadLinez thinks he is 1337. When he is 0.


/
Hey Thats my dick size..
Posts 111 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?