How to watch registers and instructions at Windows10

Programming, for all ages and all languages.
Post Reply
wlmnzf
Posts: 4
Joined: Fri May 05, 2017 8:09 pm

How to watch registers and instructions at Windows10

Post by wlmnzf »

We would like to write code to watch and record the information of all the registers such as eax,ecx and instructions (we need record all the instructions the cpu is executing) so that we can use Machine Learning method to identify whether some instruction sequence are the Malicious instructions.

1. We used to alter translate.c from QEMU to record intermediate information including registers and instructions,that is to say ,we will record all the information while QEMU translate instructions from the virtual machine on QEMU to real computer.

2. But collecting information from the virtual machine QEMU is less inefficiency than the real machine,so we plan to write code so that we can collect all the information in Win10 on real computer.

3. The problem is that we write code to obtain the value of PC register,but the value is always the address of next line in our code,We don't know how to watch instructions(or code) of other parallel execution programs that CPU is executing?

would you mind to give some ideas,thanks!
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: How to watch registers and instructions at Windows10

Post by AJ »

Hi,

I've never written one, but it sounds like you need to write a hypervisor.

Cheers,
Adam
User avatar
Thomas
Member
Member
Posts: 281
Joined: Thu Jun 04, 2009 11:12 pm

Re: How to watch registers and instructions at Windows10

Post by Thomas »

Hi,
OpenVMS had Xdelta and you can use Xdleta to single step instruction by instruction. OpenVMS is something i am most familiar with due to reasons I cannot disclose. There should be something available for all platforms. May be a kernel debugger is all you need, You can possibly write scripts to do powerful things. This is just a suggestion, if need to do something pre boot then it is not an option.

--Thomas
wlmnzf
Posts: 4
Joined: Fri May 05, 2017 8:09 pm

Re: How to watch registers and instructions at Windows10

Post by wlmnzf »

Thomas wrote:Hi,
OpenVMS had Xdelta and you can use Xdleta to single step instruction by instruction. OpenVMS is something i am most familiar with due to reasons I cannot disclose. There should be something available for all platforms. May be a kernel debugger is all you need, You can possibly write scripts to do powerful things. This is just a suggestion, if need to do something pre boot then it is not an option.

--Thomas
OK,Thanks a lot! I'll take these ideas into consideration.
wlmnzf
Posts: 4
Joined: Fri May 05, 2017 8:09 pm

Re: How to watch registers and instructions at Windows10

Post by wlmnzf »

AJ wrote:Hi,

I've never written one, but it sounds like you need to write a hypervisor.

Cheers,
Adam
Thanks anyway,but maybe hypervisor is not suitable for us!
Post Reply