A forum for reverse engineering, OS internals and malware analysis 

Forum for discussion about kernel-mode development.
 #33170  by xjk220
 Sun Aug 25, 2019 2:56 pm
Hi all, i am trying to understand ZwImpersonateThread , i dont find any information online.
Analyzed zeroaccess dll

it calls ZwOpenProcess -> ZwOpenThread -> ZwImpersonateThread , if it the call was success, dll adjusts privileges. i wanted to understand how can be this function useful. thx
 #33171  by Siro
 Wed Aug 28, 2019 9:38 am
Can you be more specific with your question?

What is it that you want to understand? How ZwImpersonateThread works internally? Or how to use it? Or what to use it for?
 #33175  by xjk220
 Wed Aug 28, 2019 8:59 pm
Siro wrote:Can you be more specific with your question?

What is it that you want to understand? How ZwImpersonateThread works internally? Or how to use it? Or what to use it for?
yes exactly, any possible scenario where ZwImpersonateThread can be useful