Nytro Posted January 13, 2013 Report Posted January 13, 2013 [h=1]Undocumented API use - NtSetInformationThread[/h]Author: [h=1]drew77[/h]; Use of the still undocumented NtSetInformationThread.;.386.model flat,stdcalloption casemap:noneinclude \masm32\include\windows.incinclude \masm32\include\user32.incinclude \masm32\include\kernel32.incinclude \masm32\include\advapi32.incinclude \masm32\include\ntdll.incinclude \masm32\macros\macros.asmincludelib \masm32\lib\kernel32.libincludelib \masm32\lib\user32.libincludelib \masm32\lib\advapi32.libincludelib \masm32\lib\ntdll.lib.dataFailed db "Busted.",0 Sample db " ",0.codestart:; When the function is called, the thread will continue to; run but a debugger will no longer receive any events; related to that thread. Among the missing events are that; the process has terminated, if the main thread is the; hidden one. This technique is used by; HyperUnpackMe2, among others.invoke NtSetInformationThread,-2,11h,NULL,NULL ; as of Saturday, January 12, 2013, STILL undocumented; Details at hxxp://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/NT%20Objects/Thread/NtSetInformationThread.html;thread detached if debugged;invoke MessageBox, 0, ADDR Failed, ADDR Sample,MB_ICONINFORMATIONinvoke ExitProcess,0end startSursa: Undocumented API use - NtSetInformationThread - rohitab.com - Forums Quote