[IDA/MapleStory] Getting AOB of a function?

Discussion in 'Programming & Reversing Discussion' started by dcrdcr, Jun 15, 2017.

Discuss [IDA/MapleStory] Getting AOB of a function? in the Programming & Reversing Discussion area at GameKiller.net

  1. dcrdcr

    dcrdcr Informed Hacker

    Post Count:
    96
    Stats
    I'm a complete noob at hacking, so go easy on me please!

    The game has this function:
    Code:
    int __thiscall CUser::GetDamageSkinID(CUser *this)
    {
      CUser *v1; // [email protected]
      int v2; // [email protected]
      int result; // [email protected]
    
      v1 = this;
      v2 = this->m_nDamageSkinID;
      if ( this->m_nDamageSkinID_Premium > 0
        && (!((int (*)(void))this->baseclass_0.baseclass_0.vfptr[9].Update)()
         || TSingleton<CWvsContext>::ms_pInstance.baseclass_0.m_Data
         && TSingleton<CWvsContext>::ms_pInstance.baseclass_0.m_Data[717].m_str) )
      {
        result = v1->m_nDamageSkinID_Premium;
      }
      else
      {
        result = v2;
      }
      return result;
    }
    
    (Pseudo-code from IDA 690, KMST v1029 debugging leak)

    How would I go on finding a correct array of bytes for this line, so I could modify it by memory editing?

    Code:
    return result;
    Help will be appreciated!
     

    Mr. Ad Advertisement

     
  2. BubblePotatoes

    BubblePotatoes Informed Hacker

    Post Count:
    69
    Stats
  3. dcrdcr

    dcrdcr Informed Hacker

    Post Count:
    96
    Stats
    Thanks, but that's not what I'm trying to do.. :c
    I'm trying to find the AOB of this specific function, so I can look its address up dynamically via signature scanning.
     
  4. BubblePotatoes

    BubblePotatoes Informed Hacker

    Post Count:
    69
    Stats
    bringing such high tech into such a potato game c;
     
  5. Apollo

    Apollo SUPPORT Premium

    Post Count:
    2,211
    Stats
    sprux
    --- Double Post Merged, Jul 1, 2017, Original Post Date: Jul 1, 2017 ---
    oh also check the maplestory unpack
     

Share This Page