Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8675387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:56:15+00:00 2026-06-12T19:56:15+00:00

On x86 after a call the address that is pushed to the stack points

  • 0

On x86 after a call the address that is pushed to the stack points to the place after the call instruction. This instruction can be of a variable length on x86 machines. Is there a way to detect which kind of the call was used?

For example, indirect call *(%eax) is FF 10, but this could also be part of direct call 0x10FF10FF. I.e.

12: ff 10                   call   *(%eax)
14: e8 fb 10 ff 10          call   10ff1114 <main+0x10ff1114>

E.g. if I find FF 10, then check if 3 bytes before there’s E8 – will it be enough or no? What other hidden traps that I did not think of?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:56:16+00:00Added an answer on June 12, 2026 at 7:56 pm

    Since you have slightly more information than usual, it’s slightly less impossible. But I’ll show exactly how it’s still impossible even with the extra information.

    The extra information comes from knowing where it jumped to, and knowing the return address. If the difference doesn’t match the dword right before the return address then it wasn’t a direct call. So that’s something you can find out relatively easily, without having to mess with backwards decoding (which is not possible in general, only with luck and heuristics and code that wasn’t specifically crafted to defeat that, and even then a jump could have come in from anywhere at any place).

    However, the code could be this:

      push returnaddr
      mov eax, calladdr
      jmp eax ;or whatever way you like, showing a silly jump through reg for no reason
      ...
      call calladdr
    returnaddr:
    

    And now it matches anyway, in a way that you can’t possibly detect.

    So the only thing you can find out is whether it was definitely something other than a direct call. You can’t find out with certainty that any specific way was used – it is clearly possible to replace the call calladdr in the above snippet to make it look like any desired pattern.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's my second question, one after another. That's the problem with assembly (x86 -
I'm just touching the surface of the x86 instruction set after a long period
First, I want to point out that this isn't really x86, it's msx88 which
After competing in and following this year's Google Code Jam competition, I couldn't help
After weeks of effort I have managed to write F# programs that use LLVM
I don't why, but after 6h of searching the bug, I can't identify it.
I'm seeing something that's got me stumped. Maybe you folks can advise. What appears
Basically, what I wonder is how come an x86-64 OS can run a code
I can understand this requirement for the old PPC RISC systems and even for
Hopefully someone can help me debug this problem as EXC_BAD_ACCESS is the only error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.