Katarzyna Adamiak

14 papers C 1Misc 1Journal 7Unranked 5
YearRankTypeTitle / Venue / Authors
2025 J jnl
IEEE Access
Tymoteusz Zwierzchowski, Katarzyna Adamiak
2024 J jnl
Int. J. Appl. Math. Comput. Sci.
Katarzyna Adamiak, Tymoteusz Zwierzchowski
2024 conf
AUTOMATION
Katarzyna Adamiak, Tymoteusz Zwierzchowski
2023 J jnl
IEEE Access
Katarzyna Adamiak, Tymoteusz Zwierzchowski
2022 Misc conf
MMAR
Katarzyna Adamiak
2021 conf
AUTOMATION
Katarzyna Adamiak
2021 conf
AUTOMATION
Filip Szewczyk, Katarzyna Adamiak
2020 J jnl
IEEE Trans. Autom. Control.
Andrzej Bartoszewicz, Katarzyna Adamiak
2020 conf
AUTOMATION
Katarzyna Adamiak
2020 J jnl
IEEE Access
Katarzyna Adamiak
2020 conf
KKA
Katarzyna Adamiak
2019 J jnl
Int. J. Appl. Math. Comput. Sci.
Andrzej Bartoszewicz, Katarzyna Adamiak
2018 J jnl
Serv. Oriented Comput. Appl.
Hodjat Soleimani Malekan, Katarzyna Adamiak, Hamideh Afsarmanesh
2016 C conf
PRO-VE
Katarzyna Adamiak, Hodjat Soleimani Malekan, Hamideh Afsarmanesh
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