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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:18:35+00:00 2026-06-17T09:18:35+00:00

Why register EAX, ESP and instructions sub, push and pop assemble into ASCII chars?

  • 0

Why register EAX, ESP and instructions sub, push and pop assemble into ASCII chars?

For example:

‘%’ means “and EAX”

‘-‘ means “sub EAX”

‘P’ means “push EAX”

‘X’ means “pop EAX”

‘T’ means “push ESP”

‘\’ means “pop ESP”

  • 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-17T09:18:35+00:00Added an answer on June 17, 2026 at 9:18 am

    If I’m reading the question right: Because they’re opcodes just happen to be the same as those characters in the ASCII table.

    Looking at: http://ref.x86asm.net/coder32.html and go down to AND eAX, you will note that in the dark gray column on the left, it says the opcode for that mnemonic is 25 (in hex).

    If you then look at an ASCII table (for example http://www.asciitable.com/), and look at what character 25 hex is, it will be %.

    A further guess on why this question was asked: There are some cases where being able to provide a program in type-able ASCII might be desired. The first may be something like the EICAR antivirus test string:

    X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
    

    which, if entered into notepad, saved as a COM file (e.g. eicar.com), and then run, it will print EICAR-STANDARD-ANTIVIRUS-TEST-FILE!. This makes it rather simple to paste into programs, email, etc. to ensure that anti-virus is working correctly.

    Another use would be writing shellcode for buffer overflow based attacks, again for reasons of ease of typing and escaping. If you want more details on that, I would consult something like http://projectshellcode.com/?q=node/12 for an overview of this process.

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

Sidebar

Related Questions

My EAX register contains the xxxxxx9D value and I have the following assembly code:
Is it possible to square a number stored in a register (say eax) without
// gcc -g stack.c -o stack // unsigned long sp(void){ __asm__(mov %esp, %eax);} int
I am looking into a topic on register allocation in compilers. A widely used
In the label .L0, when I check the value of %eax register, I get
Using the following code to print the ESP register: #include <stdio.h> #include <stdlib.h> unsigned
For example: ; Method 1 .data val1 DWORD 10000h .code add eax,val1 v.s: ;
I register a UPnP device with: var o: IUPnPRegistrar; W: string; R: HRESULT; begin
Code @register.inclusion_tag('template.html', takes_context=True) def include_client_side_bar(context): return { 'STATIC_URL': settings.STATIC_URL, } My code is will
int* Register = 0x00FF0000; // Address of micro-seconds timer while(*Register != 0); Should I

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.