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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:07:11+00:00 2026-05-25T21:07:11+00:00

I came across a key logger program in asm in a forum. I though

  • 0

I came across a key logger program in asm in a forum. I though that I might create a key logger myself. When I was reading the code to see what was actually going on in that program, I came across some interesting things.

1.The program almost never pushed a variable to the stack. It moved the value of the variable to a register and then pushed the register.
eg.

;hInst:DWORD 4
lea esi, hInst
push esi

2.The program cleared arrays using stosd.
eg:

    ;array1 BYTE 256 DUP(?)
    lea edi, array1
    push 256/4
    xor eax, eax
    rep stosd 3

The program used push-pop to assign values as in the above example.

What are the advantages of the above conventions?

  • 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-05-25T21:07:11+00:00Added an answer on May 25, 2026 at 9:07 pm

    1) I can’t think of any advantages on current machines, but way back in the day, you could only push regs. There was no push mem/immed form.

    2) Simplicity/same as #1. I’ve heard that nowadays the string instructions are all but deprecated. However, way back in the day they were the only way to fly as they were much faster (cycle times not much better, but conserved the VERY limited memory bandwidth of the day by not forcing more instruction loads).

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

Sidebar

Related Questions

I came across a controller in an older set of code (Rails 1.2.3) that
I came across this in the Python interpreter source code. void PyThread_delete_key_value(int key) {
When i reading about smartcards i came across this term called private key challenge.
I came across the 2 versions of sql code.. --1 CREATE TABLE Location (
I came across a thread that seemed like it might be related at djangocode
I came across an oddity today that I don't quite understand. Take this code,
I've recently came across a piece of code that uses BouncyCastle's PBE with AES
I had to review some code, and came across something that someone did, and
I came across a question recently that was for Generating primary key in a
I came across a printed article by Bertrand Meyer where he states that tests

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.