Newsgroups: microsoft.public.windbg
From: "Brian Catlin" <bri...@sannas.org.bad>
Date: Wed, 1 Sep 2004 21:58:21 -0700
Local: Thurs, Sep 2 2004 12:58 am
Subject: Re: How to get past SYSENTER?
news:eqnJ2FGkEHA.3372@TK2MSFTNGP09.phx.gbl...
> Hi, The executable is calling a system service, which is a routine in the operating > I'm not that much of a Windows hacker, the last time I used some debugger it > was td.exe on DOS. > Anyway, I have tried to disassembly some old DOS exe with WinDbg on my > Windows XP. > At the beginning there are a lot of calls into ntdll, then a SYSENTER > instruction. I'm trying to "trace into" it, but what happens is that the exe > itself runs to the end immediately. I found a few things about this on the > net, and it seems to me that this instruction takes the processing to the > program itself after the OS's initialization stuff. How could I acquire the > address the processor goes to so that I can finally disassemble the code of > this old exe? system, generally exported by the Executive, and is not part of your executable. Disassembling the operating system isn't really going to get you anything, but since we're on the topic, here's how it all works: NTDLL is used to call into the operating system, which is (generally) in the MOV EAX, Service Number The processor-specific kernel-mode transition code depends upon whether the CPU Win2K and earlier: WinXP and later (Intel): AMD K6 and later KiSystemService uses the system service number(in EAX) as an index into the This is probably way more than you wanted to know, but once I get on a roll, -Brian Brian Catlin, Sannas Consulting 310-944-9492 You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||