Hafid Haffaf

26 papers B 3C 2Journal 17Unranked 4
YearRankTypeTitle / Venue / Authors
2022 J jnl
Appl. Comput. Syst.
Soulimane Mammar, Hafid Haffaf, Kamel Rahmouni
2021 J jnl
Int. J. Syst. Syst. Eng.
Fatiha Mekelleche, Hafid Haffaf, Belkacem Ould Bouamama
2020 J jnl
Int. J. Syst. Syst. Eng.
Mokhtar Bouhalouane, Hafid Haffaf, Larbi Sekhri
2020 J jnl
Int. J. Syst. Syst. Eng.
Mokhtar Bouhalouane, Larbi Sekhri, Hafid Haffaf
2019 J jnl
Informatica (Slovenia)
Cherifa Boudia, Asmaa Bengueddach, Hafid Haffaf
2019 J jnl
Int. J. Syst. Syst. Eng.
Hamza Cherif Bouchaour, Hafid Haffaf
2019 B conf
IWCMC
Djamila Bendouda, Hafid Haffaf
2018 J jnl
Int. J. High Perform. Comput. Netw.
Djamila Bendouda, Lynda Mokdad, Hafid Haffaf
2018 J jnl
Future Gener. Comput. Syst.
Djamila Bendouda, Abderrezak Rachedi, Hafid Haffaf
2017 B conf
IWCMC
Djamila Bendouda, Abderrezak Rachedi, Hafid Haffaf
2017 J jnl
J. Commun.
Fatiha Mekelleche, Hafid Haffaf
2017 J jnl
J. Inf. Process. Syst.
Moustafa Kouider Elouahed, Hafid Haffaf
2016 C conf
CoDIT
Ibtissam Abdesselam, Hafid Haffaf, Belkacem Ould Bouamama
2016 J jnl
Int. J. Syst. Syst. Eng.
Ibtissam Abdesselam, Hafid Haffaf, Belkacem Ould Bouamama
2016 J jnl
J. Innov. Digit. Ecosyst.
Nacera Bahnes, Kechar Bouabdellah, Hafid Haffaf
2015 conf
FNC/MobiSPC
Mokhtar Bouhalouane, Larbi Sekhri, Hafid Haffaf
2013 B conf
IWCMC
Sabrina Abid, Hafid Haffaf
2013 J jnl
Secur. Commun. Networks
Benahmed Khelifa, Madjid Merabti, Hafid Haffaf
2013 conf
ITSC
Pushpendra Kumar, Rochdi Merzouki, Belkacem Ould Bouamama, Hafid Haffaf
2012 conf
ITST
Kechar Bouabdellah, Hafid Haffaf
2012 J jnl
IEEE Trans. Syst. Man Cybern. Part A
Wissam Khalil, Rochdi Merzouki, Belkacem Ould Bouamama, Hafid Haffaf
2012 J jnl
Int. J. Mob. Comput. Multim. Commun.
Benahmed Khelifa, Madjid Merabti, Hafid Haffaf
2012 J jnl
Int. J. Mob. Comput. Multim. Commun.
Zahia Bidai, Moufida Maimour, Hafid Haffaf
2009 C conf
ISCC
Benahmed Khelifa, Hafid Haffaf, Madjid Merabti, David Llewellyn-Jones
2009 conf
CIIA
Sabrina Abid, Hafid Haffaf
2006 J jnl
J. Frankl. Inst.
Hafid Haffaf, Belkacem Ould Bouamama, Geneviève Dauphin-Tanguy
redb/extractors/decompiler/bninja/analysis/api.py
← Index redb/extractors/decompiler/bninja/analysis/api.py python
from enum import Enum


class ApiCategory(Enum):
    FILE_OP = [
        "CreateFile",
        "ReadFile",
        "WriteFile",
        "DeleteFile",
        "SetFilePointer",
        "CopyFile",
        "MoveFile",
        "FindFirstFile",
        "FindNextFile",
    ]
    MEMORY_OP = [
        "VirtualAlloc",
        "VirtualFree",
        "HeapAlloc",
        "HeapFree",
        "LocalAlloc",
        "GlobalAlloc",
        "MapViewOfFile",
        "VirtualProtect",
    ]
    NETWORK_OP = [
        "socket",
        "connect",
        "bind",
        "send",
        "recv",
        "WSAStartup",
        "InternetOpen",
        "InternetConnect",
        "HttpOpenRequest",
        "HttpSendRequest",
        "InternetReadFile",
        "URLDownloadToFile",
    ]
    REGISTRY_OP = [
        "RegOpenKey",
        "RegCreateKey",
        "RegSetValue",
        "RegQueryValue",
        "RegDeleteKey",
        "RegEnumKey",
        "RegFlushKey",
    ]
    PROCESS_OP = [
        "CreateProcess",
        "OpenProcess",
        "TerminateProcess",
        "GetProcessId",
        "CreateProcessAsUser",
        "NtCreateProcess",
    ]
    THREAD_OP = [
        "CreateThread",
        "SuspendThread",
        "ResumeThread",
        "CreateRemoteThread",
        "SetThreadContext",
        "GetThreadContext",
    ]
    INJECTION_OP = [
        "WriteProcessMemory",
        "VirtualAllocEx",
        "NtWriteVirtualMemory",
        "SetWindowsHookEx",
        "QueueUserAPC",
        "NtMapViewOfSection",
    ]
    EVASION_OP = [
        "IsDebuggerPresent",
        "CheckRemoteDebuggerPresent",
        "NtQueryInformationProcess",
        "GetTickCount",
        "OutputDebugString",
        "Sleep",
        "QueryPerformanceCounter",
    ]
    SPYING_OP = [
        "GetAsyncKeyState",
        "GetKeyboardState",
        "GetKeyState",
        "GetForegroundWindow",
        "SetWindowsHookEx",
        "BitBlt",
        "GetClipboardData",
    ]
    SYSTEM_OP = [
        "CreateToolhelp32Snapshot",
        "EnumDeviceDrivers",
        "EnumProcesses",
        "GetSystemDirectoryA",
        "GetLogicalDrives",
    ]
    SERVICE_OP = [
        "CreateServiceA",
        "OpenServiceA",
        "StartServiceA",
        "DeleteService",
        "OpenSCManagerA",
        "ControlService",
    ]
    CRYPTO_OP = [
        "CryptAcquireContext",
        "CryptGenKey",
        "CryptEncrypt",
        "CryptDecrypt",
        "CryptCreateHash",
        "CryptHashData",
        "CryptGenRandom",
    ]
    DLL_OP = ["LoadLibrary", "GetProcAddress", "FreeLibrary", "LdrLoadDll"]
    UNKNOWN_OP = []

    @classmethod
    def from_api(cls, api_name):
        for category in cls:
            if any(api_name.startswith(api) for api in category.value):
                return category
        return cls.UNKNOWN_OP