-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.cpp
31 lines (26 loc) · 1.05 KB
/
notes.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Python Function I made to try to define unreferenced code sections as functions
// (To make all the IDA disassembly blue)
def define_unreferenced_funcs():
MINUS_ONE = 0xffffffffffffffff
pos = ScreenEA()
end = GetSegmentAttr(pos, SEGATTR_END)
while pos <= end:
#print("At 0x%08x" % pos)
if GetFunctionAttr( pos, FUNCATTR_START) == MINUS_ONE:
#print("Found undefined function at 0x%08x" % pos )
fend = FindFuncEnd(pos)
if fend == MINUS_ONE:
print("Failed to find function end.")
Jump(pos)
return
MakeFunction(pos, fend)
pos = fend
else:
pos = FindFuncEnd(pos)
#print("FuncEnd at 0x%08x" % pos)
if not isCode(idaapi.getFlags(pos)):
pos = FindCode(pos, SEARCH_DOWN)
// Command I use to test FA
ForgedAlliance_ext.exe /map "Cobalt Valley v1" /windowed 1024 768 /EnableDiskWatch /showlog
// Notes on disassembly work:
unknown_libname_187 overwrites UserArmy validCommandSource list