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 7835893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:51:59+00:00 2026-06-02T13:51:59+00:00

Know I want to replace function prologue with jmp to jump to my allocate

  • 0

Know I want to replace function prologue with jmp to jump to my allocate zone(VirtualAllocateEx). But function prologue just have 3 bytes, and jmp have 5 bytes.
like this:

55                 `push ebp`  

8B EC              `mov ebp, esp`

833D C4354200 02   `cmp dword ptr ds:[4235C4],2`

E9 AD00000000  `jmp` 00140000 // replace above three instructions

If I want to use jmp to cover function prologue, the third instruction after function prologue must be covered.

So know I want to use int3 to replace function prologue to to jump to my allocate zone or any address, how can I do it?

I try to use VEH or SEH to do so, but I can’t figure out how to make it.

  • 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-02T13:52:00+00:00Added an answer on June 2, 2026 at 1:52 pm

    You need to write the original code (the one you quoted) on another memory location (just allocate something).

    Write it while saving some space for the additional OpCodes (your custom new code).
    It doesn’t have to fit exactly as you’re allowed to fill the unused bytes with NOP (0x90 if I’m not mistaken).

    Now, jump to this code from the original code.

    I’ve been doing this stuff when I was making game trainers years ago.. Works very well.

    On thing to note: Your reWritten code should, at the end, jump back to the original place to continue the code flow.

    Let me know if it’s unclear.

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

Sidebar

Related Questions

I want to replace the current Java process by a new one just like
I want to call a function that generates a function, but I don't know
I just want to know, what are the replacements of the preg_replace function. Is
I want to know any good link for asp.net MVC-3 video tutorials. I have
I want to replace first word in title to have <span></span> inside. Example for
I know how to replace text with getElementById() function in such situation: <script type=text/javascript>
I have some code like this: case class FunctionCommand[A](function: Function1[Array[A], Unit]) class MyClass(commands: List[FunctionCommand[_]])
Say you have a string, but you don't know what it contains. And you
I want to know if controller can fully replace http handler when no view
I want a function which can replace substring in a big string with specific

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.