Results 1 to 14 of 14
  1. #1
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106

    How to find the pointer to the D3D9 device by lauwy

    This tutorial is by lauwy from MPGH!!!

    First download the test envoirment,
    Edit the plugin path
    Restart olly
    load this in ollydbg

    Press ctrl a to scan the file
    Click on the run button in the top of olly 3x

    Click the richt mous button , searth for all intermodulars class.

    Find somting like this:
    d3d9.Direct3DCreate9

    Dubbel click on it,
    We need the CALL under it:

    Code:
    0040315A  |. E8 7F700000    CALL <JMP.&d3d9.Direct3DCreate9>
    0040315F  |. A3 10CE4000    MOV DWORD PTR DS:[40CE10],EAX //This is what we need, this is the IDirect3DDevice9 
    00403164  |. 6A 38          PUSH 38
    00403166  |. 8D45 BC        LEA EAX,DWORD PTR SS:[EBP-44]
    00403169  |. 6A 00          PUSH 0
    0040316B  |. 50             PUSH EAX
    0040316C  |. E8 4F080000    CALL test9.004039C0
    40CE10 points to the Createdivice,

    40CE10 = [out, retval] IDirect3DDevice9 **ppReturnedDeviceInterface

    Code:
    HRESULT CreateDevice(
      [in]           UINT Adapter, //6
      [in]           D3DDEVTYPE DeviceType, //5
      [in]           HWND hFocusWindow, //4
      [in]           DWORD BehaviorFlags, //3
      [in, out]      D3DPRESENT_PARAMETERS *pPresentationParameters, //2
      [out, retval]  IDirect3DDevice9 **ppReturnedDeviceInterface //1
    );
    We need the pointer to CreateDevice, what do we know?
    We know one part of CreateDevice, and we know that we need 6 x push, becouse CreateDevice has 6 "parts".
    We need to find somting like this:

    Code:
    MOV EAX,DWORD PTR DS:[40CE10]
    Change the addy to yours, this can be different!



    Searth for this, I found this 2 times,

    Code:
    00403171  |. 83C4 0C        ADD ESP,0C
    00403174  |. 8B4D 08        MOV ECX,DWORD PTR SS:[EBP+8]
    00403177  |. A1 10CE4000    MOV EAX,DWORD PTR DS:[40CE10]
    0040317C  |. 8D5D BC        LEA EBX,DWORD PTR SS:[EBP-44]
    0040317F  |. 6A 01          PUSH 1 				//This needs to be somting with [40CE10]
    00403181  |. 894D D8        MOV DWORD PTR SS:[EBP-28],ECX
    00403184  |. 5E             POP ESI				
    00403185  |. C745 C4 160000>MOV DWORD PTR SS:[EBP-3C],16
    0040318C  |. 68 08CE4000    PUSH test9.0040CE08			
    00403191  |. 53             PUSH EBX				
    00403192  |. 6A 20          PUSH 20			
    00403194  |. 51             PUSH ECX				
    00403195  |. 8975 DC        MOV DWORD PTR SS:[EBP-24],ESI
    00403198  |. 8975 D4        MOV DWORD PTR SS:[EBP-2C],ESI
    0040319B  |. C745 BC 200300>MOV DWORD PTR SS:[EBP-44],320
    004031A2  |. C745 C0 580200>MOV DWORD PTR SS:[EBP-40],258
    004031A9  |. 8B10           MOV EDX,DWORD PTR DS:[EAX]
    004031AB  |. 56             PUSH ESI				
    004031AC  |. 6A 00          PUSH 0				
    004031AE  |. 50             PUSH EAX				
    004031AF  |. FF52 40        CALL DWORD PTR DS:[EDX+40]
    This isn't create device, this is becouse the first command isn't the IDirect3DDevice9 here is EAX the IDirect3DDevice9, but they push 1, and that isn't EAX
    Next!

    Code:
    00403470  |. A1 10CE4000    MOV EAX,DWORD PTR DS:[40CE10]
    00403475  |. 50             PUSH EAX				//This is 40CE10 	|| [out, retval]  IDirect3DDevice9 **ppReturnedDeviceInterface
    00403476  |. 8B08           MOV ECX,DWORD PTR DS:[EAX]
    00403478  |. FF51 08        CALL DWORD PTR DS:[ECX+8]
    0040347B  \. C3             RETN
    0040347C  /$ 55             PUSH EBP				//2			||  [in, out]      D3DPRESENT_PARAMETERS *pPresentationParameters,
    0040347D  |. 8BEC           MOV EBP,ESP
    0040347F  |. 833D CCE14000 >CMP DWORD PTR DS:[40E1CC],0
    00403486  |. 57             PUSH EDI				//3			||  [in]           DWORD BehaviorFlags,
    00403487  |. 8B7D 08        MOV EDI,DWORD PTR SS:[EBP+8]
    0040348A  |. 897D 08        MOV DWORD PTR SS:[EBP+8],EDI
    0040348D  |. 75 11          JNZ SHORT test9.004034A0
    0040348F  |. FF75 10        PUSH DWORD PTR SS:[EBP+10]		//4			||   [in]           D3DDEVTYPE DeviceType,		
    00403492  |. FF75 0C        PUSH DWORD PTR SS:[EBP+C]		//5			||   [in]           HWND hFocusWindow,
    00403495  |. 57             PUSH EDI				//6			||   [in]           UINT Adapter,
    00403496  |. E8 550F0000    CALL test9.004043F0
    Here is EAX, DWORD PTR DS:[40CE10] and it gets pushed at the top of the call, that is good
    There are 6x push and the first is the IDirect3DDevice9 , this is createdevice!!!

    To make every thing clear:
    0x4043F0 is the "Pointer to the D3D9 device"

    Going to find out how this is done in Crossfire, then I'm going to share that 2 If some one know how to do this, contact me. THen I make a tut and give you 80% of the credits

    Share what you know (a)

    Video:


    100% credits lauwy

    Scan: so useless xD
    https://www.virustotal.com/file-scan/...9b5-1291558790

    Antivir: Nothing found
    ArcaVir: Nothing found
    AVG: Nothing found
    BitDefender: Nothing found
    VirusBlokAda32: Nothing found
    VirusBuster: Nothing found

    Report overview
    Scanned by viruschief.com



    Some other tuts by me:
    https://www.mpgh.net/forum/242-crossf...t-pointer.html
    https://www.mpgh.net/forum/242-crossf...shell-dll.html
    https://www.mpgh.net/forum/242-crossf...-own-base.html

    Some OLD hacks by me:
    Best:
    https://www.mpgh.net/forum/175-crossf...v0-1-win7.html
    Other:
    https://www.mpgh.net/forum/320-crossf...st2661414.html
    https://www.mpgh.net/forum/242-crossf...-my-hacks.html
    https://www.mpgh.net/forum/175-crossf...osmoke-v3.html

    Some software I found:
    https://www.mpgh.net/forum/242-crossf...lease-uce.html

    And there is a lot more (a)
    Last edited by lauwy; 12-05-2010 at 10:22 AM.
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

  2. The Following 22 Users Say Thank You to lauwy For This Useful Post:

    -iFaDy..* (04-12-2012),6ixth (05-07-2013),cttbot89 (02-14-2012),dhanexlab (05-03-2012),fufyn~* (01-14-2013),G-uniT62 (12-05-2010),giniyat202 (08-05-2011),gmanIs (03-09-2013),j4mp3r (04-07-2015),mechanical2015 (12-05-2010),newbiss (11-22-2013),NIgga* (04-03-2015),Pronome191 (01-04-2013),reiginald (12-06-2010),Skaterforeva1 (01-23-2014),tianz (10-17-2012),tommytho (03-27-2011),UltraPGNoob (12-06-2010),vcorp (12-07-2012),zezo774 (07-21-2012),zomege (01-15-2013),_disav0w (02-14-2013)

  3. #2
    mechanical2015's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    hack city
    Posts
    379
    Reputation
    11
    Thanks
    633
    My Mood
    Happy
    woooooooooooo! very good tut help ful!

  4. #3
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    Np , I'm alway's here to share what I know (a).

    Edit:
    I could't find a tutorial for this, so I thought I make one my self
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

  5. The Following User Says Thank You to lauwy For This Useful Post:

    mechanical2015 (12-05-2010)

  6. #4
    mechanical2015's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    hack city
    Posts
    379
    Reputation
    11
    Thanks
    633
    My Mood
    Happy
    i wanna try this!

    opss

  7. #5
    Coke's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    You would like to know wouldn't you.
    Posts
    4,665
    Reputation
    885
    Thanks
    1,249
    My Mood
    Daring
    Add Virus scans.

  8. #6
    Derail's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Hm,let me see.....
    Posts
    5,262
    Reputation
    360
    Thanks
    1,125
    My Mood
    Sleepy
    Virus scans....

  9. #7
    lauwy's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    522
    Reputation
    19
    Thanks
    1,106
    VirusTotal - Free Online Virus, Malware and URL Scanner

    Can't find more scanner that can scan so mutch files, why do we need here also scan't, that wasn't before :S.

    If you don't trust this, download from my cshell tutorial ollydbg, and searth for the test9.exe on the site:

    Test9.exe
    https://www.mpgh.net/forum/207-combat...vironment.html

    Olly:
    https://www.mpgh.net/forum/242-crossf...shell-dll.html

    Yes it is showen as a virus by some scan's becouse it is ollydbg xD so useless to add scanners to files like this xD


    Quote Originally Posted by Derail View Post
    Virus scans....

    This are 225 files, most scanners like https://virscan.org/about.php support max 20 files xD
    Last edited by lauwy; 12-05-2010 at 10:18 AM.
    Need some help to get back on track

    Find the pointer to the D3D9 Device (Not usefull for Cross)

    https://www.mpgh.net/forum/242-crossf...ice-lauwy.html

    Fix olly if scanning doesn't work

    https://www.mpgh.net/forum/242-crossf...ing-fails.html

    Unpack cshell.dll

    https://www.mpgh.net/forum/242-crossf...shell-dll.html

  10. #8
    sh_z_sektor's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Olly
    Posts
    1,505
    Reputation
    63
    Thanks
    1,633
    My Mood
    Amused
    thank you very much bro this will help alot thanks bro

  11. #9
    okled's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    tirane albania
    Posts
    1,593
    Reputation
    -94
    Thanks
    471
    My Mood
    Sleepy
    WOW GOOD JOB MAN

  12. #10
    UltraPGNoob's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    671
    Reputation
    15
    Thanks
    611
    My Mood
    Fine
    you're still working well lauwy good job

  13. #11
    reiginald's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    MPGH/Earth.
    Posts
    447
    Reputation
    13
    Thanks
    249
    My Mood
    Cold
    Your the best genius !!!!!!
    Last edited by reiginald; 12-06-2010 at 04:37 AM.

  14. #12
    sh_z_sektor's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Olly
    Posts
    1,505
    Reputation
    63
    Thanks
    1,633
    My Mood
    Amused
    Quote Originally Posted by UltraPGNoob View Post
    you're still working well lauwy good job
    Yea he is this is very helpful and may get new coders good job again

  15. #13
    WalloWenn-'s Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    My Mood
    In Love
    Good Job man

  16. #14
    Th3_Soult1on's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    29
    My Mood
    Yeehaw
    so much to read xD
    *SICKNATURE*