Hanbit Lee

16 papers A* 1A 2B 1Journal 8Unranked 4
YearRankTypeTitle / Venue / Authors
2024 J jnl
Appl. Soft Comput.
Hanbit Lee, Jinseok Seol, Sang-goo Lee, Jaehui Park, Junho Shim
2024 J jnl
Eng. Comput.
Hanbit Lee, Yeongmin Yoo, Jongsoo Lee
2023 J jnl
IEEE Access
Hanbit Lee, Sang-goo Lee, Jaehui Park, Junho Shim
2023 A conf
WACV
Hanbit Lee, Youna Kim, Sang-goo Lee
2023 J jnl
Expert Syst. Appl.
Yeongmin Yoo, Hanbit Lee, Jongsoo Lee
2021 J jnl
CoRR
Hanbit Lee, Jinseok Seol, Sang-goo Lee
2021 B conf
SMC
Yeongmin Kim, Youngjae Cho, Hanbit Lee, Il-Chul Moon
2020 J jnl
CoRR
Wonseok Lee, Hanbit Lee, Sang-goo Lee
2020 conf
EMNLP (1)
Kang Min Yoo, Hanbit Lee, Franck Dernoncourt, Trung Bui, Walter Chang, Sang-goo Lee
2020 J jnl
CoRR
Kang Min Yoo, Hanbit Lee, Franck Dernoncourt, Trung Bui, Walter Chang, Sang-goo Lee
2019 A conf
WACV
Hanbit Lee, Sang-goo Lee
2019 conf
ICCV Workshops
Kang Min Yoo, Hyun Soo Jo, Hanbit Lee, Jeeseung Han, Sang-goo Lee
2017 J jnl
CoRR
Hanbit Lee, Jinseok Seol, Sang-goo Lee
2016 conf
CBRecSys@RecSys
Yeonchan Ahn, Hanbit Lee, Heesik Jeon, Seungdo Ha, Sang-goo Lee
2016 A* conf
SIGIR
Hanbit Lee, Yeonchan Ahn, Haejun Lee, Seungdo Ha, Sang-goo Lee
2015 conf
RecSys Posters
Hanbit Lee, Sang-goo Lee
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