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

  • Home
  • SEARCH
  • 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 8631787
In Process

The Archive Base Latest Questions

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

What I am doing is injecting a DLL into a running process. I then

  • 0

What I am doing is injecting a DLL into a running process. I then proceed to check some informations about that process, such as versions etc. My problem is I cannot seem to access a string in the assembly file, that contains the revision number I want to doublecheck. Here is what I have so far:

__declspec(naked) void CheckBuild()
{
    char* revision;
    __asm {
        sub esp, __LOCAL_SIZE
        pushad
        pushfd

        mov revision, dword ptr 0x5F5200
    }

    printf("Detected revision ID: %u\n", revision);

    __asm {
        popfd
        popad
        add esp, __LOCAL_SIZE
        retn
    }
}

For this training stuff, the address of the string, that I get through IDA and that I checked using CheatEngine and OllyDbg, is constant.

However, no matter what I try, I always get 0x5F5200 back in decimal, which is definitely not what I expect. I almost tried everything, including lea and others, but I still don’t get the valid string.

Can anyone point me to the correct direction ?

  • 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-12T09:15:56+00:00Added an answer on June 12, 2026 at 9:15 am
    1. you are missing the “dereferencing”:

      mov revision, dword ptr [0x5F5200]

    which isn’t a valid instruction since it has two indirects, so

    mov eax, dword ptr [0x5F5200]
    mov revision, eax
    
    1. if the value is indeed a string, there’s something else wrong:

      • if the string is stored at 0x5F5200, you would simply use

      printf("Detected revision ID: %s\n", 0x5F5200)

      • if the address of the string is stored at 0x5F5200, you would use

      printf("Detected revision ID: %s\n", revision)

    2. String format

    If the string is unicode, you would use

    printf("Detected revision ID: %S\n", revision);
    

    (note that with wprintf, it’s the other way ’round: %s for a wide character string, and %s for a char string).

    Finally, if the string is not guaranteed to be zero-terminated but has a fixed length, you need to copy from the address to a local buffer and ensure zero termination before the print.

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

Sidebar

Related Questions

I'm injecting Javascript into a page w/ Greasemonkey, doing some processing on the body
I have a simple dll that is being injected into a target process using
I am doing a code that do some js injection of code in page,
I'm pulling some info from a database then putting it into a DIV and
Hello i'm running an ant task through eclipse that generates some code but the
I'm injecting a stress test into my web app that connects to a mysql
I have some problem with the injecting of my cookie into login.php page. This
So in my JavaScript app I am doing some dynamic script injection etc during
Doing my first SL4 MVVM RIA based application and i ran into the following
Doing some jquery animation. I have certain divs set up with an attribute of

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.