Giter Club home page Giter Club logo

Comments (6)

SergiusTheBest avatar SergiusTheBest commented on August 11, 2024 1

I'll leave this issue open until we remove that message.

from mhook.

Grivus avatar Grivus commented on August 11, 2024

@simonides, could you please post your kernel32.dll version and winver output (cmd->winver->line with version info)?

I have tried to run mhook-test on Win10 and met no ANOMALY in log, but my byte-code of VirtualAlloc is different from yours one.

from mhook.

simonides avatar simonides commented on August 11, 2024

@Grivus Thank you for taking a look. The file version is 10.0.16299.15 . Date modified: 29.9.2017 15:42
kernel32.zip
Winver output: Version 1709 (OS Build 16299.125)

from mhook.

simonides avatar simonides commented on August 11, 2024

This is how it looks on Win7(Build 7601:SP1): https://pastebin.com/MVt16n2z
File version: 6.1.7601.23714
kernel32.zip

from mhook.

Grivus avatar Grivus commented on August 11, 2024

@simonides, ok, I think I figured it out.

The REX prefix consists of only four meaningful bits, and all that bits are zero in the opcode 0x40 - first part of the
00007FFEF0CADFE0 40 53 push rbx
command. So mhook think that while it is legal opcode there is no sense to write it, because it change nothing from assembler point of view.

But Windows has it's own rules, and like described here it want all instructions to be at least 2 bytes long to allow us insert some jump instead of it if needed. So Windows compilers insert empty REX into small-size commands to reach needed length.

So you can just ignore that message. I think we could remove it to not confuse users.

from mhook.

simonides avatar simonides commented on August 11, 2024

Thank you for clarifying!

from mhook.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.