MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / funcNameInner

Method funcNameInner

src/disassembler/IDA/ida_analysis_api.py:26–42  ·  view source on GitHub ↗

Return the name of the function (including windows name fixes). Args: raw_func_name (str): raw string func name Return Value: The actual (wanted) name of the wanted function

(self, raw_func_name)

Source from the content-addressed store, hash-verified

24 self.disas = disas
25
26 def funcNameInner(self, raw_func_name):
27 """Return the name of the function (including windows name fixes).
28
29 Args:
30 raw_func_name (str): raw string func name
31
32 Return Value:
33 The actual (wanted) name of the wanted function
34 """
35 base_name = raw_func_name
36 # check for the libc edge case
37 if isWindows() and (not isMatching()) and base_name.startswith("__imp_"):
38 base_name = base_name[len("__imp_"):]
39 if isWindows() and (not isMatching()) and base_name.startswith("_"):
40 return base_name[1:]
41 else:
42 return base_name
43
44 def funcNameEA(self, func_ea):
45 """Return the name of the function that was defined in the given address (including windows name fixes).

Callers 6

funcNameEAMethod · 0.95
analyzeFunctionMethod · 0.95
analyzeIslandFunctionMethod · 0.95
exportsInnerMethod · 0.80
nameAtMethod · 0.80
funcNameMethod · 0.80

Calls 2

isWindowsFunction · 0.85
isMatchingFunction · 0.85

Tested by

no test coverage detected