Waris Quamer

14 papers A 2C 1Journal 9Unranked 2
YearRankTypeTitle / Venue / Authors
2026 J jnl
CoRR
Waris Quamer, Mu-Ruei Tseng, Ghady Nasrallah, Ricardo Gutierrez-Osuna
2026 J jnl
CoRR
Waris Quamer, Mu-Ruei Tseng, Ghady Nasrallah, Ricardo Gutierrez-Osuna
2025 C conf
ASRU
Waris Quamer, Ricardo Gutierrez-Osuna
2025 J jnl
CoRR
Waris Quamer, Ricardo Gutierrez-Osuna
2024 J jnl
CoRR
Waris Quamer, Ricardo Gutierrez-Osuna
2024 conf
SLT
Waris Quamer, Ricardo Gutierrez-Osuna
2024 J jnl
CoRR
Waris Quamer, Ricardo Gutierrez-Osuna
2023 A conf
INTERSPEECH
Waris Quamer, Anurag Das, Ricardo Gutierrez-Osuna
2023 J jnl
J. Ambient Intell. Humaniz. Comput.
Praphula Kumar Jain, Waris Quamer, Vijayalakshmi Saravanan, Rajendra Pamula
2023 J jnl
J. Ambient Intell. Humaniz. Comput.
Praphula Kumar Jain, Waris Quamer, Rajendra Pamula, Vijayalakshmi Saravanan
2022 A conf
INTERSPEECH
Waris Quamer, Anurag Das, John Levis, Evgeny Chukharev-Hudilainen, Ricardo Gutierrez-Osuna
2021 J jnl
ACM Trans. Asian Low Resour. Lang. Inf. Process.
Waris Quamer, Praphula Kumar Jain, Arpit Rai, Vijayalakshmi Saravanan, Rajendra Pamula, Chiranjeev Kumar
2020 J jnl
CoRR
Suyash Shandilya, Waris Quamer
2018 conf
ICACDS (2)
Praphula Kumar Jain, Waris Quamer, Rajendra Pamula
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