Chae Young Lee

11 papers A* 1A 2Journal 4Unranked 4
YearRankTypeTitle / Venue / Authors
2025 conf
ASPLOS (1)
Pu (Luke) Yi, Yifan Yang, Chae Young Lee, Sara Achour
2025 A* conf
MobiCom
Chae Young Lee, Pu (Luke) Yi, Maxwell Fite, Tejus Rao, Sara Achour, Zerina Kapetanovic
2025 J jnl
CoRR
Chae Young Lee, Pu Yi, Maxwell Fite, Tejus Rao, Sara Achour, Zerina Kapetanovic
2025 A conf
IROS
Chae Young Lee, Sara Achour, Zerina Kapetanovic
2025 A conf
MobiSys
Chae Young Lee
2020 conf
CVPR Workshops
Youngmin Baek, Daehyun Nam, Sungrae Park, Junyeop Lee, Seung Shin, Jeonghun Baek, Chae Young Lee, Hwalsuk Lee
2020 J jnl
CoRR
Youngmin Baek, Daehyun Nam, Sungrae Park, Junyeop Lee, Seung Shin, Jeonghun Baek, Chae Young Lee, Hwalsuk Lee
2019 conf
WIADAR@ICDAR
Chae Young Lee, Youngmin Baek, Hwalsuk Lee
2019 J jnl
CoRR
Chae Young Lee, Youngmin Baek, Hwalsuk Lee
2018 J jnl
CoRR
Chae Young Lee, Anoop Toffy, Gue Jun Jung, Woo-Jin Han
2018 conf
ICACT
Chae Young Lee, Yeon Jun Lim, Taeseon Yoon
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