Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Jul 7, 2018
1 parent 1ce0292 commit 4f4d4a5
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 23 deletions.
30 changes: 17 additions & 13 deletions docs/relatedwork/bap/baprunlog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1420,11 +1420,19 @@ sysenter
xgetbv
ldmxcsr
stmxcsr
scasb
scasl
scasq
scas
scasw
rdtsc
rep movsb
rep movsl
rep movsq
rep movsw
repz cmpsb
repz cmpsl
repz cmpsq
repz cmpsw
repnz cmpsb
repnz cmpsl
repnz cmpsq
repnz cmpsw
repnz scasb
repnz scasl
repnz scasq
Expand All @@ -1433,14 +1441,10 @@ repz scasb
repz scasl
repz scasq
repz scasw
stosb
stosl
stosq
stosb
stosl
stosq
stosw
stosw
repnz scasb
repnz scasl
repnz scasq
repnz scasw
rep stosb
rep stosl
rep stosq
Expand Down
73 changes: 73 additions & 0 deletions docs/relatedwork/bap/opcodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
| Nop -> []
| Bswap(t, op) ->
| Retn (op, far_ret) when pref = [] || pref = [repz] || pref = [repnz]->
| Mov(t, dst, src, condition) ->
| Movs(Type.Imm _bits as t) ->
| Movzx(t, dst, ts, src) ->
| Movsx(t, dst, ts, src) ->
| Movdq(ts, s, td, d, align) ->
| Movoffset((tdst, dst), offsets) ->
| Punpck(t, et, o, d, s, vs) ->
| Ppackedbinop(t, et, fbop, _, d, s, vs) ->
| Pbinop(t, fbop, _s, o1, o2, vop) ->
| Pcmp (t,elet,bop,_,dst,src,vsrc) ->
| Pmov (t, dstet, srcet, dst, src, ext, _) ->
| Pmovmskb (t,dst,src) ->
| Palignr (t,dst,src,vsrc,imm) ->
| Pcmpstr(t,xmm1,xmm2m128,_imm,imm8cb,pcmpinfo) ->
| Pshufb (exp_type, dst_op, src_op, vsrc) ->
| Lea(t, r, a) when pref = [] ->
| Call(o1, ra) when pref = [] ->
| Jump(o) ->
| Jcc(o, c) ->
| Setcc(t, o1, c) ->
| Shift(st, s, dst, shift) ->
| Shiftd(st, s, dst, fill, count) ->
| Rotate(shift_type, exp_type, dst_op, shift_op, use_cf) ->
| Bt(t, bitoffset, bitbase) ->
| Bs(t, dst, src, dir) ->
| Hlt -> [] (* x86 Hlt is essentially a NOP *)
| Rdtsc ->
| Cpuid ->
| Xgetbv ->
| Stmxcsr (dst) ->
| Ldmxcsr (src) ->
| Fnstcw (dst) ->
| Fldcw (src) ->
| Fld _src ->
| Fst (_dst,_pop) ->
| Push(t, o) ->
| Pop(t, o) ->
| Pushf(t) ->
| Popf t ->
| Popcnt(t, s, d) ->
| Sahf ->
| Lahf ->
| Add(t, o1, o2) ->
| Adc(t, o1, o2) ->
| Inc(t, o) (* o = o + 1 *) ->
| Dec(t, o) (* o = o - 1 *) ->
| Sub(t, o1, o2) (* o1 = o1 - o2 *) ->
| Sbb(t, o1, o2) ->
| Cmp(t, o1, o2) ->
| Cmpxchg(t, src, dst) ->
| Cmpxchg8b o -> (* only 32bit case *)
| Xadd(t, dst_op, src_op) ->
| Xchg(t, src, dst) ->
| And(t, o1, o2) ->
| Or(t, o1, o2) ->
| Xor(t, o1, o2) when o1 = o2 ->
| Xor(t, o1, o2) ->
| Test(t, o1, o2) ->
| Ptest(t, o1, o2) ->
| Not(t, o) ->
| Neg(t, o) ->
| Mul (t, src) ->
| Imul (t, (oneopform, dst), src1, src2) ->
| Div(t, src) ->
| Idiv(t, src) ->
| Cld ->
| Leave t when pref = [] -> (* #UD if Lock prefix is used *)
| Interrupt3 -> [Bil.Special "int3"]
| Interrupt(Oimm i) ->
| Sysenter | Syscall -> [Bil.Special "syscall"]
10 changes: 0 additions & 10 deletions docs/relatedwork/mcsema/reportlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ EMMS
ENTER
HLT
IDIV
IF
IMUL
IN
INC
INT
INT1
INT3
INTO
IRETD
JB
JBE
Expand Down Expand Up @@ -162,8 +158,6 @@ MOVNTI
MOVNTPD
MOVNTPS
MOVNTQ
MOVNTSD
MOVNTSS
MOVQ
MOVSB
MOVSD
Expand Down Expand Up @@ -244,13 +238,11 @@ POPF
POPFD
POPFQ
POR
PREFETCH
PREFETCHNTA
PREFETCHT0
PREFETCHT1
PREFETCHT2
PREFETCHW
PREFETCHWT1
PSADBW
PSHUFB
PSHUFD
Expand Down Expand Up @@ -280,7 +272,6 @@ PUNPCKHBW
PUNPCKHDQ
PUNPCKHQDQ
PUNPCKHWD
//PUNPCKHWD
PUNPCKLBW
PUNPCKLDQ
PUNPCKLQDQ
Expand Down Expand Up @@ -330,7 +321,6 @@ ROL
ROR
RORX
SAHF
SALC
SAR
SBB
SCASB
Expand Down

0 comments on commit 4f4d4a5

Please sign in to comment.