X64 lua functions menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    aeo's Avatar Contributor
    Reputation
    135
    Join Date
    Apr 2007
    Posts
    286
    Thanks G/R
    97/68
    Trade Feedback
    7 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    X64 lua functions

    More for a challenge and some thing to do I started to port my lua extension to x64. I assumed all functions were the same. I then realized that at least registerfunction now takes 1 argument according to ida psudocode. I called it the same way I use to calll it and it dosnt register new functions. Ijust wanted to see if anyone else has ran into changes in lua functions/function definitions in x64.

    Sorry for any typos I'm on mobile. Also I will release my x64 idb tonight in this thread in hopes to encourage more input .

    Thanks ace

    X64 lua functions
  2. #2
    l0l1dk's Avatar Elite User

    Reputation
    499
    Join Date
    Sep 2010
    Posts
    342
    Thanks G/R
    1/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It takes 2 arguments on 64-bit too. However, 32-bit uses __cdecl and 64-bit uses __fastcall, so on 64-bit the first argument will be passed in rcx and the second in rdx.
    Last edited by l0l1dk; 07-11-2015 at 10:24 PM.

  3. #3
    aeo's Avatar Contributor
    Reputation
    135
    Join Date
    Apr 2007
    Posts
    286
    Thanks G/R
    97/68
    Trade Feedback
    7 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Must have missed that in ida. Will check it out. Also good info from that link didn't know that about x64 calling conventions Thanks.
    Last edited by aeo; 07-12-2015 at 06:25 AM.

  4. #4
    aeo's Avatar Contributor
    Reputation
    135
    Join Date
    Apr 2007
    Posts
    286
    Thanks G/R
    97/68
    Trade Feedback
    7 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    as promised heres my x64 idb for 20216. Got my functions registered and working on implementing all my helper funcs( UnitPosition, Los, ect.)
    https://mega.co.nz/#!mFM3WR7L!XEUUy5...-RoYJhzyhangRQ

    There are mistakes in this IDB. most are correct but its a diff from awhile ago. This is alose IDA 6.1 id recomend not upgrading so you can bindiff it in the future.
    Last edited by aeo; 07-14-2015 at 12:14 PM.

Similar Threads

  1. Big List of Lua Functions
    By Lytle69 in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 10-15-2008, 03:02 AM
  2. LUA Function Thread
    By steveo123 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-13-2008, 08:54 AM
  3. [Guide] How to use local LUA function!
    By Dartignan in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 08-05-2008, 09:28 PM
  4. Replies: 22
    Last Post: 05-29-2008, 03:52 PM
  5. [Question] Lua functions
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-10-2008, 07:39 PM
All times are GMT -5. The time now is 06:57 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search