unicorn icon indicating copy to clipboard operation
unicorn copied to clipboard

Unsupported stmxcsr instruction (UC_ERR_INSN_INVALID)

Open EvMac0 opened this issue 4 months ago • 1 comments

Unicorn 2.1.1 with Qiling 1.4.6 On Windows 10 x64, Intel i5 Target PE: simple console x32 exe builded in Delphi 11

Got error at:

00404752 | 3905 58204200 | cmp dword ptr ds:[422058],eax |  
00404758 | 74 06 | je attr.404760 |  
0040475A | 50 | push eax |  
0040475B | 0FAE1C24 | stmxcsr dword ptr ss:[esp] | <<<<<<<<<<<<<<<<<-------------------------------------
0040475F | 58 | pop eax |  
00404760 | C3 | ret |  
00404761 | 8D40 00 | lea eax,dword ptr ds:[eax] |  
00404764 | 8B08 | mov ecx,dword ptr ds:[eax] |  
[x]     CPU Context:
[x]     ah      : 0x0
[x]     al      : 0x0
[x]     ch      : 0x0
[x]     cl      : 0xd8
[x]     dh      : 0xfb
[x]     dl      : 0xfd
[x]     bh      : 0x0
[x]     bl      : 0x2
[x]     ax      : 0x0
[x]     cx      : 0xd8
[x]     dx      : 0xfbfd
[x]     bx      : 0x2
[x]     sp      : 0xcfb8
[x]     bp      : 0xcfd0
[x]     si      : 0xf000
[x]     di      : 0x12
[x]     ip      : 0x475b
[x]     eax     : 0x0
[x]     ecx     : 0xd8
[x]     edx     : 0x78bfbfd
[x]     ebx     : 0x2
[x]     esp     : 0xffffcfb8
[x]     ebp     : 0xffffcfd0
[x]     esi     : 0x41f000
[x]     edi     : 0x12
[x]     eip     : 0x40475b
[x]     cr0     : 0x11
[x]     cr1     : 0x0
[x]     cr2     : 0x0
[x]     cr3     : 0x0
[x]     cr4     : 0x0
[x]     dr0     : 0x0
[x]     dr1     : 0x0
[x]     dr2     : 0x0
[x]     dr3     : 0x0
[x]     dr4     : 0x0
[x]     dr5     : 0x0
[x]     dr6     : 0xffff0ff0
[x]     dr7     : 0x400
[x]     st0     : 0x0
[x]     st1     : 0x0
[x]     st2     : 0x0
[x]     st3     : 0x0
[x]     st4     : 0x0
[x]     st5     : 0x0
[x]     st6     : 0x0
[x]     st7     : 0x0
[x]     eflags  : 0x200006
[x]     cs      : 0x1b
[x]     ss      : 0x28
[x]     ds      : 0x28
[x]     es      : 0x28
[x]     fs      : 0x73
[x]     gs      : 0x7b
[x]     Hexdump:
[x]     0f ae 1c 24 58 c3 8d 40

[x]     PC = 0x0040475b (C:\..\qiling-1.4.6\examples\rootfs\x86_windows\bin\Attr.exe + 0x475b)

Invalid instruction (UC_ERR_INSN_INVALID)

Can you support stmxcsr instruction?

EvMac0 avatar Oct 01 '24 11:10 EvMac0