Thread: [ASM] Stuff

Results 1 to 11 of 11
  1. #1
    Dewerong's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Inside a Packet
    Posts
    59
    Reputation
    10
    Thanks
    2

    [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.

  2. #2
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    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

  3. The Following User Says Thank You to Mr.Magicman For This Useful Post:

    flameswor10 (10-06-2010)

  4. #3
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    o.O ASM


    /

  5. #4
    DeadLinez's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    https://mpgh.net Sexy Points: 989,576,420
    Posts
    465
    Reputation
    11
    Thanks
    500
    My Mood
    Psychedelic
    lol bro, hard convert it, dont use a converter they make mistakes..

  6. #5
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    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.

  7. #6
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    DeadLinez thinks he is 1337. When he is 0.


    /

  8. #7
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by Stephen View Post
    DeadLinez thinks he is 1337. When he is 0.


    /
    Hey Thats my dick size..

  9. #8
    Dewerong's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Inside a Packet
    Posts
    59
    Reputation
    10
    Thanks
    2
    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.

  10. #9
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    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..

  11. #10
    Dewerong's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Inside a Packet
    Posts
    59
    Reputation
    10
    Thanks
    2
    There is a difference.

  12. #11
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by Dewerong View Post
    There is a difference.
    Yea Just A Few Difference..
    But Syntax is basically the same

Similar Threads

  1. [Help] Coding Some Stuff To BF3 [asm]
    By cold123321 in forum C++/C Programming
    Replies: 7
    Last Post: 10-08-2011, 06:34 PM
  2. Stupid People Doing Stupid Stuff!
    By Dave84311 in forum General
    Replies: 9
    Last Post: 08-22-2007, 11:54 PM
  3. Where could I learn C++? (Beginner, and Advanced stuff)
    By TsumikiriX in forum C++/C Programming
    Replies: 8
    Last Post: 07-19-2006, 08:11 PM
  4. New Warrock Skin Stuff
    By Kyojiro in forum WarRock - International Hacks
    Replies: 17
    Last Post: 02-20-2006, 09:55 AM
  5. Korean Warrock Uboat And Other stuff :D
    By Kyojiro in forum WarRock - International Hacks
    Replies: 11
    Last Post: 01-19-2006, 02:56 PM