neoz / asm_ops Goto Github PK
View Code? Open in Web Editor NEWAssembler Opcode for IDA Plugin
Assembler Opcode for IDA Plugin
nice work!
there is a typo, however: " ... In Ida screen, press Alt-N to active ARM assemble."
you must mean "to activate ASM assemble", or "to activate Asm_Ops", which is the name of this tool?
keep it up, cheers.
on my IDA 6.9, your function get_arch() fails to detect X86 architecture (and its mode), thus return (None, None). hence the script totally fails.
i put a "print" in the loop of that function, and the output is like followings.
('register', 'ax')
('register', 'cx')
('register', 'dx')
('register', 'bx')
('register', 'sp')
('register', 'bp')
('register', 'si')
('register', 'di')
('register', 'r8')
('register', 'r9')
('register', 'r10')
('register', 'r11')
('register', 'r12')
('register', 'r13')
('register', 'r14')
('register', 'r15')
('register', 'al')
('register', 'cl')
('register', 'dl')
('register', 'bl')
('register', 'ah')
('register', 'ch')
('register', 'dh')
('register', 'bh')
('register', 'spl')
('register', 'bpl')
('register', 'sil')
('register', 'dil')
('register', 'ip')
('register', 'es')
('register', 'cs')
('register', 'ss')
('register', 'ds')
('register', 'fs')
('register', 'gs')
('register', 'cf')
('register', 'zf')
('register', 'sf')
('register', 'of')
('register', 'pf')
('register', 'af')
('register', 'tf')
('register', 'if')
('register', 'df')
('register', 'efl')
('register', 'st0')
('register', 'st1')
('register', 'st2')
('register', 'st3')
('register', 'st4')
('register', 'st5')
('register', 'st6')
('register', 'st7')
('register', 'fpctrl')
('register', 'fpstat')
('register', 'fptags')
('register', 'mm0')
('register', 'mm1')
('register', 'mm2')
('register', 'mm3')
('register', 'mm4')
('register', 'mm5')
('register', 'mm6')
('register', 'mm7')
('register', 'xmm0')
('register', 'xmm1')
('register', 'xmm2')
('register', 'xmm3')
('register', 'xmm4')
('register', 'xmm5')
('register', 'xmm6')
('register', 'xmm7')
('register', 'xmm8')
('register', 'xmm9')
('register', 'xmm10')
('register', 'xmm11')
('register', 'xmm12')
('register', 'xmm13')
('register', 'xmm14')
('register', 'xmm15')
('register', 'mxcsr')
('register', 'ymm0')
('register', 'ymm1')
('register', 'ymm2')
('register', 'ymm3')
('register', 'ymm4')
('register', 'ymm5')
('register', 'ymm6')
('register', 'ymm7')
('register', 'ymm8')
('register', 'ymm9')
('register', 'ymm10')
('register', 'ymm11')
('register', 'ymm12')
('register', 'ymm13')
('register', 'ymm14')
('register', 'ymm15')
('register', 'bnd0')
('register', 'bnd1')
('register', 'bnd2')
('register', 'bnd3')
('register', 'xmm16')
('register', 'xmm17')
('register', 'xmm18')
('register', 'xmm19')
('register', 'xmm20')
('register', 'xmm21')
('register', 'xmm22')
('register', 'xmm23')
('register', 'xmm24')
('register', 'xmm25')
('register', 'xmm26')
('register', 'xmm27')
('register', 'xmm28')
('register', 'xmm29')
('register', 'xmm30')
('register', 'xmm31')
('register', 'ymm16')
('register', 'ymm17')
('register', 'ymm18')
('register', 'ymm19')
('register', 'ymm20')
('register', 'ymm21')
('register', 'ymm22')
('register', 'ymm23')
('register', 'ymm24')
('register', 'ymm25')
('register', 'ymm26')
('register', 'ymm27')
('register', 'ymm28')
('register', 'ymm29')
('register', 'ymm30')
('register', 'ymm31')
('register', 'zmm0')
('register', 'zmm1')
('register', 'zmm2')
('register', 'zmm3')
('register', 'zmm4')
('register', 'zmm5')
('register', 'zmm6')
('register', 'zmm7')
('register', 'zmm8')
('register', 'zmm9')
('register', 'zmm10')
('register', 'zmm11')
('register', 'zmm12')
('register', 'zmm13')
('register', 'zmm14')
('register', 'zmm15')
('register', 'zmm16')
('register', 'zmm17')
('register', 'zmm18')
('register', 'zmm19')
('register', 'zmm20')
('register', 'zmm21')
('register', 'zmm22')
('register', 'zmm23')
('register', 'zmm24')
('register', 'zmm25')
('register', 'zmm26')
('register', 'zmm27')
('register', 'zmm28')
('register', 'zmm29')
('register', 'zmm30')
('register', 'zmm31')
('register', 'k0')
('register', 'k1')
('register', 'k2')
('register', 'k3')
('register', 'k4')
('register', 'k5')
('register', 'k6')
('register', 'k7')
this means:
you cannot detect register using its CAPITAL name. to be sure that your code works in any cases, a safer way is to do:
if name.upper() == 'RAX':
for some unknown reasons, there is no EAX or RAX, so even if you compare capitalized register name, you still cannot detect the architecture & mode. i see this issue in both IDA32 & IDA64 on my Windows 64bit. so this technique (to detect X86 arch & mode) is not reliable, and you should find a better way for this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.