Omid Sadeghi

18 papers A* 3A 3Journal 10Unranked 2
YearRankTypeTitle / Venue / Authors
2025 J jnl
INFORMS J. Optim.
Mitas Ray, Omid Sadeghi, Lillian J. Ratliff, Maryam Fazel
2024 A conf
UAI
Adhyyan Narang, Omid Sadeghi, Lillian J. Ratliff, Maryam Fazel, Jeff A. Bilmes
2023 conf
ACDA
Maryam Fazel, Omid Sadeghi
2023 A* conf
NeurIPS
Omid Sadeghi, Maryam Fazel
2023 J jnl
CoRR
Omid Sadeghi, Maryam Fazel
2022 J jnl
CoRR
Adhyyan Narang, Omid Sadeghi, Lillian J. Ratliff, Maryam Fazel, Jeff A. Bilmes
2021 A conf
AISTATS
Omid Sadeghi, Maryam Fazel
2021 J jnl
CoRR
Omid Sadeghi, Maryam Fazel
2021 J jnl
CoRR
Omid Sadeghi, Prasanna Sanjay Raut, Maryam Fazel
2021 A* conf
AAAI
Prasanna Sanjay Raut, Omid Sadeghi, Maryam Fazel
2020 A* conf
NeurIPS
Omid Sadeghi, Prasanna Sanjay Raut, Maryam Fazel
2020 J jnl
CoRR
Mitas Ray, Omid Sadeghi, Lillian J. Ratliff, Maryam Fazel
2020 A conf
AISTATS
Omid Sadeghi, Maryam Fazel
2020 J jnl
CoRR
Prasanna Sanjay Raut, Omid Sadeghi, Maryam Fazel
2019 J jnl
CoRR
Omid Sadeghi, Reza Eghbali, Maryam Fazel
2019 J jnl
CoRR
Omid Sadeghi, Maryam Fazel
2017 conf
CASCON
Omid Sadeghi, Volodymyr Paprotski, Hans-Arno Jacobsen, Vadim Berestetsky, Phil Coulthard
2011 J jnl
IEICE Electron. Express
Gholamreza Karimi, Omid Sadeghi
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