Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Guides
Programming Guides & Questions
[Theory] Native Windows API (NTAPI)
Message
<blockquote data-quote="maka" data-source="post: 754522" data-attributes="member: 73327"><p>Hi</p><p></p><p>As far as I know, you're right. If you open kernel32.dll on W10 with IDA (which has a free version, IDA Free) you'll see this:</p><p>[ATTACH=full]194398[/ATTACH]</p><p></p><p>OpenProcess from kernel32.dll will call OpenProcess from KernelBase.dll (on W10):</p><p>[ATTACH=full]194400[/ATTACH]</p><p>OpenProcess (kernel32.dll) => OpenProcess (KernelBase.dll) => NtOpenProcess (ntdll.dll)</p><p></p><p></p><p></p><p>Yes, NtOpenProcess and ZwOpenProcess <strong>in usermode</strong> are the same:[ATTACH=full]194401[/ATTACH]</p><p></p><p></p><p></p><p>if I'm not mistaken, when you call NtOpenProcess/ZwOpenprocess from usermode it will call the real NtOpenProcess from ntoskrnl.exe and if you call ZwOpenProcess from kernel mode it will call ZwOpenProcess (ntoskrnl.exe).</p><p></p><p></p><p>In kernel mode use ZwOpenProcess</p><p></p><p></p><p>Welcome to the club <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite109" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>It's a pity that users like Wave and Opcode are no longer in the forum because they have a great knowledge about reversing and Windows Internals. I hope that one day they will return.</p><p>PS: I may be wrong in some of my affirmations. If someone find false information in my post, please let me know.</p></blockquote><p></p>
[QUOTE="maka, post: 754522, member: 73327"] Hi As far as I know, you're right. If you open kernel32.dll on W10 with IDA (which has a free version, IDA Free) you'll see this: [ATTACH=full]194398[/ATTACH] OpenProcess from kernel32.dll will call OpenProcess from KernelBase.dll (on W10): [ATTACH=full]194400[/ATTACH] OpenProcess (kernel32.dll) => OpenProcess (KernelBase.dll) => NtOpenProcess (ntdll.dll) Yes, NtOpenProcess and ZwOpenProcess [B]in usermode[/B] are the same:[ATTACH=full]194401[/ATTACH] if I'm not mistaken, when you call NtOpenProcess/ZwOpenprocess from usermode it will call the real NtOpenProcess from ntoskrnl.exe and if you call ZwOpenProcess from kernel mode it will call ZwOpenProcess (ntoskrnl.exe). In kernel mode use ZwOpenProcess Welcome to the club :) It's a pity that users like Wave and Opcode are no longer in the forum because they have a great knowledge about reversing and Windows Internals. I hope that one day they will return. PS: I may be wrong in some of my affirmations. If someone find false information in my post, please let me know. [/QUOTE]
Insert quotes…
Verification
Post reply
Top