Giter Site home page Giter Site logo

win10 NtClose in x86 about windows-syscalls HOT 3 CLOSED

j00ru avatar j00ru commented on July 22, 2024
win10 NtClose in x86

from windows-syscalls.

Comments (3)

thegfw avatar thegfw commented on July 22, 2024

wow64 and x64

from windows-syscalls.

 avatar commented on July 22, 2024

@thegfw system service index is 0xF, that right. It's works well if you change it to "mov eax,0Fh".

from windows-syscalls.

j00ru avatar j00ru commented on July 22, 2024

@thegfw In the wow64 version of ntdll.dll, the upper 16 bits of the syscall ID encode information about the syscall's arguments, so that they can be correctly converted to how the 64-bit kernel expects them.

More specifically, the value is used by wow64cpu!TurboDispatchJumpAddressStart to choose the dispatch function from the wow64cpu!TurboThunkDispatch list:

00000000`77bb4620 0000000077bb1908 wow64cpu!ServiceNoTurbo
00000000`77bb4628 0000000077bb1e06 wow64cpu!Thunk0Arg
00000000`77bb4630 0000000077bb1ca8 wow64cpu!Thunk0ArgReloadState
00000000`77bb4638 0000000077bb1db6 wow64cpu!Thunk1ArgSp
00000000`77bb4640 0000000077bb1dc7 wow64cpu!Thunk1ArgNSp
[...]

In this case, wow64cpu!Thunk1ArgSp (at index 3) is used to convert the single parameter of NtClose, and then call into kernel-mode. So, the actual system call ID is still 0xF.

from windows-syscalls.

Related Issues (5)

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.