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)
| 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). |
no test coverage detected