Jacob V. Maizel

15 papers Journal 13Unranked 2
YearRankTypeTitle / Venue / Authors
2003 J jnl
Bioinform.
Shu-Yun Le, Jih-Hsiang Chen, Danielle Konings, Jacob V. Maizel
2003 conf
CSB
Shu-Yun Le, Jih-Hsiang Chen, Jacob V. Maizel
2002 J jnl
Knowl. Based Syst.
Shu-Yun Le, Wei-Min Liu, Jacob V. Maizel
1998 J jnl
Parallel Comput.
Jih-Hsiang Chen, Shu-Yun Le, Bruce A. Shapiro, Jacob V. Maizel
1992 J jnl
Comput. Appl. Biosci.
Jih-Hsiang Chen, Shu-Yun Le, Jacob V. Maizel
1991 J jnl
Comput. Appl. Biosci.
Shu-Yun Le, Jih-Hsiang Chen, Jacob V. Maizel
1990 J jnl
Comput. Appl. Biosci.
Jih-Hsiang Chen, Shu-Yun Le, Bruce A. Shapiro, Kathleen M. Currey, Jacob V. Maizel
1990 conf
SIGGRAPH (Panels)
Donna J. Cox, Larry Smarr, Jacob V. Maizel, Rich Hirsh
1989 J jnl
Comput. Appl. Biosci.
Shu-Yun Le, John Owens, Ruth Nussinov, Jih-Hsiang Chen, Bruce A. Shapiro, Jacob V. Maizel
1988 J jnl
Comput. Appl. Biosci.
John Owens, Devjani Chatterjee, Ruth Nussinov, Andrzej K. Konopka, Jacob V. Maizel
1988 J jnl
Comput. Appl. Biosci.
Shu-Yun Le, Jih-Hsiang Chen, Kathleen M. Currey, Jacob V. Maizel
1988 J jnl
Comput. Appl. Biosci.
Shu-Yun Le, Jih-Hsiang Chen, Ruth Nussinov, Jacob V. Maizel
1988 J jnl
Comput. Appl. Biosci.
Kotoko Nakata, Minoru Kanehisa, Jacob V. Maizel
1986 J jnl
Nucleic Acids Res.
Bruce A. Shapiro, Ruth Nussinov, Lewis E. Lipkin, Jacob V. Maizel
1984 J jnl
Nucleic Acids Res.
Bruce A. Shapiro, Jacob V. Maizel, Lewis E. Lipkin, Kathleen M. Currey, Colin G. Whitney
redb/extractors/decompiler/bninja/function_type.py
← Index redb/extractors/decompiler/bninja/function_type.py python
from enum import Enum

import binaryninja


class FunctionType(Enum):
    USER = "USER"
    LIBRARY = "LIBRARY"
    EXTERNAL = "EXTERNAL"
    THUNK = "THUNK"
    UNKNOWN = "UNKNOWN"


class FunctionTypeAnalysis:
    """Get the function kind based on the symbol type associated to this function"""

    def __init__(self, function):
        """Sets the function type dependent on the symbol type associated to this function. If
        any errors occur, then returns UNKNOWN
        """
        self.func_type = FunctionType.USER

        try:
            symbol_type = function.symbol.type
            # Check if it's an external function (there should not be, already skipping these)
            if symbol_type == binaryninja.enums.SymbolType.ImportedFunctionSymbol:
                self.func_type = FunctionType.EXTERNAL

            # Library functions detected by Binary Ninja
            if symbol_type == binaryninja.enums.SymbolType.LibraryFunctionSymbol:
                self.func_type = FunctionType.LIBRARY

            # Check if it's a thunk function
            if function.is_thunk:
                self.func_type = FunctionType.THUNK

        except Exception as _:
            self.func_type = FunctionType.UNKNOWN

    def get_function_type(self):
        return self.func_type