0 Votes

Functions for IDA Scripts

Last modified by WikiBot on 2025/03/20 14:15

Lisp Functions

Here is a list of Lisp functions that may be used in IDA scripts

Arithmetic and logical functions

+ - * / or and not = > < <= >= /= == (these functions do not require :call keyword)

abs max min signum ceiling floor mod rem round truncate

numberp integerp floatp minusp plusp zerop (test functions)

logand logeqv logior lognot logtest logxor (bitwise functions)

eq eql equal equalp

Math functions

exp expt log sqrt

sin cos tan asin acos atan

sinh cosh tanh asinh acosh atanh

List functions

first ... tenth nth nthcdr

list list* cons append car cdr

subst sublis assoc

Sequence functions

These functions work both with lists and vectors (including strings that are treated as vectors)

length reverse concatenate

count find position search substitute remove remove-duplicates

count-if find-if position-if substitute-if remove-if

sort stable-sort merge

Array functions

arrayp vectorp

array-dimension array-dimensions array-rank array-total-size

aref

String functions

string stringp char

string= string/= string< string<= string> string>=

string-equal string-not-equal string-lessp

string-not-greaterp string-greaterp string-not-lessp

Symbol functions

symbolp keywordp