Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //http://waleedassar.blogspot.com - (@waleedassar)
- //This file should be placed in the same directory as ollydbg.exe
- TYPE SYSTEM_INFORMATION_CLASS
- IF 0 "SystemBasicInformation"
- IF 1 "SystemProcessorInformation"
- IF 2 "SystemPerformanceInformation"
- IF 3 "SystemTimeOfDayInformation"
- IF 4 "SystemPathInformation"
- IF 5 "SystemProcessInformation"
- IF 6 "SystemCallCountInformation"
- IF 7 "SystemDeviceInformation"
- IF 8 "SystemProcessorPerformanceInformation"
- IF 9 "SystemFlagsInformation"
- IF A "SystemCallTimeInformation"
- IF B "SystemModuleInformation"
- IF C "SystemLocksInformation"
- IF D "SystemStackTraceInformation"
- IF E "SystemPagedPoolInformation"
- IF F "SystemNonPagedPoolInformation"
- IF 10 "SystemHandleInformation"
- IF 11 "SystemObjectInformation"
- IF 12 "SystemPageFileInformation"
- IF 13 "SystemVdmInstemulInformation"
- IF 14 "SystemVdmBopInformation"
- IF 15 "SystemFileCacheInformation"
- IF 16 "SystemPoolTagInformation"
- IF 17 "SystemInterruptInformation"
- IF 18 "SystemDpcBehaviorInformation"
- IF 19 "SystemFullMemoryInformation"
- IF 1A "SystemLoadGdiDriverInformation"
- IF 1B "SystemUnloadGdiDriverInformation"
- IF 1C "SystemTimeAdjustmentInformation"
- IF 1D "SystemSummaryMemoryInformation"
- IF 1E "SystemNextEventIdInformation"
- IF 1F "SystemEventIdsInformation"
- IF 20 "SystemCrashDumpInformation"
- IF 21 "SystemExceptionInformation"
- IF 22 "SystemCrashDumpStateInformation"
- IF 23 "SystemKernelDebuggerInformation"
- IF 24 "SystemContextSwitchInformation"
- IF 25 "SystemRegistryQuotaInformation"
- IF 26 "SystemExtendServiceTableInformation"
- IF 27 "SystemPrioritySeperation"
- IF 28 "SystemPlugPlayBusInformation"
- IF 29 "SystemDockInformation"
- IF 2A "SystemPowerInformation"
- IF 2B "SystemProcessorSpeedInformation"
- IF 2C "SystemCurrentTimeZoneInformation"
- IF 2D "SystemLookasideInformation"
- IF 2E "SystemTimeSlipNotification"
- IF 2F "SystemSessionCreate"
- IF 30 "SystemSessionDetach"
- IF 31 "SystemSessionInformation"
- IF 32 "SystemRangeStartInformation"
- IF 33 "SystemVerifierInformation"
- IF 34 "SystemVerifierThunkExtend"
- IF 35 "SystemSessionProcessInformation"
- IF 36 "SystemLoadGdiDriverInSystemSpace"
- IF 37 "SystemNumaProcessorMap"
- IF 38 "SystemPrefetcherInformation"
- IF 39 "SystemExtendedProcessInformation"
- IF 3A "SystemRecommendedSharedDataAlignment"
- IF 3B "SystemComPlusPackage"
- IF 3C "SystemNumaAvailableMemory"
- END
- TYPE PRIVILEGGE
- IF 2 "SE_CREATE_TOKEN_PRIVILEGE"
- IF 3 "SE_ASSIGNPRIMARYTOKEN_PRIVILEGE"
- IF 4 "SE_LOCK_MEMORY_PRIVILEGE"
- IF 5 "SE_INCREASE_QUOTA_PRIVILEGE"
- IF 6 "SE_MACHINE_ACCOUNT_PRIVILEGE"
- IF 7 "SE_TCB_PRIVILEGE"
- IF 8 "SE_SECURITY_PRIVILEGE"
- IF 9 "SE_TAKE_OWNERSHIP_PRIVILEGE"
- IF A "SE_LOAD_DRIVER_PRIVILEGE"
- IF B "SE_SYSTEM_PROFILE_PRIVILEGE"
- IF C "SE_SYSTEMTIME_PRIVILEGE"
- IF D "SE_PROF_SINGLE_PROCESS_PRIVILEGE"
- IF E "SE_INC_BASE_PRIORITY_PRIVILEGE"
- IF F "SE_CREATE_PAGEFILE_PRIVILEGE"
- IF 10 "SE_CREATE_PERMANENT_PRIVILEGE"
- IF 11 "SE_BACKUP_PRIVILEGE"
- IF 12 "SE_RESTORE_PRIVILEGE"
- IF 13 "SE_SHUTDOWN_PRIVILEGE"
- IF 14 "SE_DEBUG_PRIVILEGE"
- IF 15 "SE_AUDIT_PRIVILEGE"
- IF 16 "SE_SYSTEM_ENVIRONMENT_PRIVILEGE"
- IF 17 "SE_CHANGE_NOTIFY_PRIVILEGE"
- IF 18 "SE_REMOTE_SHUTDOWN_PRIVILEGE"
- IF 19 "SE_UNDOCK_PRIVILEGE"
- IF 1A "SE_SYNC_AGENT_PRIVILEGE"
- IF 1B "SE_ENABLE_DELEGATION_PRIVILEGE"
- IF 1C "SE_MANAGE_VOLUME_PRIVILEGE"
- IF 1D "SE_IMPERSONATE_PRIVILEGE"
- IF 1E "SE_CREATE_GLOBAL_PRIVILEGE"
- IF 1F "SE_TRUSTED_CREDMAN_ACCESS_PRIVILEGE"
- IF 20 "SE_RELABEL_PRIVILEGE"
- IF 21 "SE_INC_WORKING_SET_PRIVILEGE"
- IF 22 "SE_TIME_ZONE_PRIVILEGE"
- IF 23 "SE_CREATE_SYMBOLIC_LINK_PRIVILEGE"
- END
- TYPE THREAD_INFORMATION_CLASS
- IF 0 "ThreadBasicInformation"
- IF 1 "ThreadTimes"
- IF 2 "ThreadPriority"
- IF 3 "ThreadBasePriority"
- IF 4 "ThreadAffinityMask"
- IF 5 "ThreadImpersonationToken"
- IF 6 "ThreadDescriptorTableEntry"
- IF 7 "ThreadEnableAlignmentFaultFixup"
- IF 8 "ThreadEventPair_Reusable"
- IF 9 "ThreadQuerySetWin32StartAddress"
- IF 0A "ThreadZeroTlsCell"
- IF 0B "ThreadPerformanceCount"
- IF 0C "ThreadAmILastThread"
- IF 0D "ThreadIdealProcessor"
- IF 0E "ThreadPriorityBoost"
- IF 0F "ThreadSetTlsArrayAddress"
- IF 10 "ThreadIsIoPending"
- IF 11 "ThreadHideFromDebugger"
- IF 12 "ThreadBreakOnTermination"
- IF 13 "ThreadSwitchLegacyState"
- IF 14 "ThreadIsTerminated"
- IF 15 "ThreadLastSystemCall"
- IF 16 "ThreadIoPriority"
- IF 17 "ThreadCycleTime"
- IF 18 "ThreadPagePriority"
- IF 19 "ThreadActualBasePriority"
- IF 1A "ThreadTebInformation"
- IF 1B "ThreadCSwitchMon"
- IF 1C "ThreadCSwitchPmu"
- IF 1D "ThreadWow64Context"
- IF 1E "ThreadGroupInformation"
- IF 1F "ThreadUmsInformation"
- IF 20 "ThreadCounterProfiling"
- IF 21 "ThreadIdealProcessorEx"
- END
- TYPE PROCESS_INFORMATION_CLASS
- IF 0 "ProcessBasicInformation"
- IF 1 "ProcessQuotaLimits"
- IF 2 "ProcessIoCounters"
- IF 3 "ProcessVmCounters"
- IF 4 "ProcessTimes"
- IF 5 "ProcessBasePriority"
- IF 6 "ProcessRaisePriority"
- IF 7 "ProcessDebugPort"
- IF 8 "ProcessExceptionPort"
- IF 9 "ProcessAccessToken"
- IF 0A "ProcessLdtInformation"
- IF 0B "ProcessLdtSize"
- IF 0C "ProcessDefaultHardErrorMode"
- IF 0D "ProcessIoPortHandlers"
- IF 0E "ProcessPooledUsageAndLimits"
- IF 0F "ProcessWorkingSetWatch"
- IF 10 "ProcessUserModeIOPL"
- IF 11 "ProcessEnableAlignmentFaultFixup"
- IF 12 "ProcessPriorityClass"
- IF 13 "ProcessWx86Information"
- IF 14 "ProcessHandleCount"
- IF 15 "ProcessAffinityMask"
- IF 16 "ProcessPriorityBoost"
- IF 17 "ProcessDeviceMap"
- IF 18 "ProcessSessionId"
- IF 19 "ProcessForegroundInformation"
- IF 1A "ProcessWow64PEB"
- IF 1B "ProcessImageName"
- IF 1C "ProcessLUIDDeviceMapsEnabled"
- IF 1D "ProcessBreakOnTermination"
- IF 1E "ProcessDebugObjectHandle"
- IF 1F "ProcessDebugFlags"
- IF 20 "ProcessHandleTracing"
- IF 21 "ProcessIoPriority"
- IF 22 "ProcessExecuteFlags"
- IF 23 "ProcessTlsInformation"
- IF 24 "ProcessCookie"
- IF 25 "ProcessImageInformation"
- IF 26 "ProcessCycleTime"
- IF 27 "ProcessPagePriority"
- IF 28 "ProcessInstrumentationCallback"
- IF 29 "ProcessThreadStackAllocation"
- IF 2A "ProcessWorkingSetWatchEx"
- IF 2B "ProcessImageFileNameWin32"
- IF 2C "ProcessImageFileMapping"
- IF 2D "ProcessAffinityUpdateMode"
- IF 2E "ProcessMemoryAllocationMode"
- IF 2F "ProcessActiveGroupMask"
- IF 30 "ProcessTokenVirtualizationEnabled"
- IF 31 "ProcessConsoleHostProcess"
- IF 32 "ProcessWindowInformation"
- END
- TYPE GETWRITEWATCHFLAGS
- IF 1 "WRITE_WATCH_FLAG_RESET"
- END
- TYPE SymOptions
- IF 1 "WRITE_WATCH_FLAG_RESET"
- END
- TYPE CSIDL
- if 0x0 "DESKTOP"
- if 0x1 "INTERNET"
- if 0x2 "PROGRAMS"
- if 0x3 "CONTROLS"
- if 0x4 "PRINTERS"
- if 0x5 "PERSONAL"
- if 0x6 "FAVORITES"
- if 0x7 "STARTUP"
- if 0x8 "RECENT"
- if 0x9 "SENDTO"
- if 0xA "BITBUCKET"
- if 0xB "STARTMENU"
- if 0xC "MYDOCUMENTS"
- if 0xD "MYMUSIC"
- if 0xE "MYVIDEO"
- if 0x10 "DESKTOPDIRECTORY"
- if 0x11 "DRIVES"
- if 0x12 "NETWORK"
- if 0x13 "NETHOOD"
- if 0x14 "FONTS"
- if 0x15 "TEMPLATES"
- if 0x16 "COMMON_STARTMENU"
- if 0x17 "COMMON_PROGRAMS"
- if 0x18 "COMMON_STARTUP"
- if 0x19 "COMMON_DESKTOPDIRECTORY"
- if 0x1A "APPDATA"
- if 0x1B "PRINTHOOD"
- if 0x1C "LOCAL_APPDATA"
- if 0x1D "ALTSTARTUP"
- if 0x1E "COMMON_ALTSTARTUP"
- if 0x1F "COMMON_FAVORITES"
- if 0x20 "INTERNET_CACHE"
- if 0x21 "COOKIES"
- if 0x22 "HISTORY"
- if 0x23 "COMMON_APPDATA"
- if 0x24 "WINDOWS"
- if 0x25 "SYSTEM"
- if 0x26 "PROGRAM_FILES"
- if 0x27 "MYPICTURES"
- if 0x28 "PROFILE"
- if 0x29 "SYSTEMX86"
- if 0x2A "PROGRAM_FILESX86"
- if 0x2B "PROGRAM_FILES_COMMON"
- if 0x2C "PROGRAM_FILES_COMMONX86"
- if 0x2D "COMMON_TEMPLATES"
- if 0x2E "COMMON_DOCUMENTS"
- if 0x2F "COMMON_ADMINTOOLS"
- if 0x30 "ADMINTOOLS"
- if 0x31 "CONNECTIONS"
- if 0x35 "COMMON_MUSIC"
- if 0x36 "COMMON_PICTURES"
- if 0x37 "COMMON_VIDEO"
- if 0x38 "RESOURCES"
- if 0x39 "RESOURCES_LOCALIZED"
- if 0x3A "COMMON_OEM_LINKS"
- if 0x3B "CDBURN_AREA"
- if 0x3D "COMPUTERSNEARME"
- END
- TYPE VMINF_CLASS
- if 0x0 "MemoryBasicInformation"
- if 0x1 "MemoryWorkingSetList"
- if 0x2 "MemorySectionName"
- if 0x3 "MemoryBasicVlmInformation"
- END
- TYPE PROT__x
- if 0x10 "PAGE_EXECUTE"
- if 0x20 "PAGE_EXECUTE_READ"
- if 0x40 "PAGE_EXECUTE_READWRITE"
- if 0x80 "PAGE_EXECUTE_WRITECOPY"
- if 0x01 "PAGE_NOACCESS"
- if 0x02 "PAGE_READONLY"
- if 0x04 "PAGE_READWRITE"
- if 0x08 "PAGE_WRITECOPY"
- if 0x100 "PAGE_GUARD"
- if 0x200 "PAGE_NOCACHE"
- if 0x400 "PAGE_WRITECOMBINE"
- END
- TYPE ALLOC_ATT
- if 0x08000000 "SEC_COMMIT"
- if 0x01000000 "SEC_IMAGE"
- if 0x11000000 "SEC_IMAGE_NO_EXECUTE"
- if 0x80000000 "SEC_LARGE_PAGES"
- if 0x10000000 "SEC_NOCACHE"
- if 0x04000000 "SEC_RESERVE"
- if 0x40000000 "SEC_WRITECOMBINE"
- END
- TYPE ALLOC_TYPE
- if 0x00001000 "MEM_COMMIT"
- if 0x00002000 "MEM_RESERVE"
- if 0x00080000 "MEM_RESET"
- if 0x01000000 "MEM_RESET_UNDO"
- if 0x20000000 "MEM_LARGE_PAGES"
- if 0x00400000 "MEM_PHYSICAL"
- if 0x00100000 "MEM_TOP_DOWN"
- if 0x00200000 "MEM_WRITE_WATCH"
- END
- TYPE VIEW__x
- if 0x1 "VIEW_SHARE"
- if 0x2 "VIEW_UNMAP"
- END
- STDFUNC ThunRTMain
- "Bulky" ADDR
- END
- STDFUNC RtlSetProcessIsCritical
- "Critical" BOOL
- "pOld" ADDR
- "NeedBreaks" BOOL
- END
- STDFUNC VirtualAllocEx
- "hProcess" INT
- "lpAddress" INT
- "dwSize" INT
- "flAllocationType" INT
- "flProtect" INT
- End
- STDFUNC SetProcessDEPPolicy
- "dwFlags" BOOL
- End
- STDFUNC GetLongPathNameW
- "lpszShortPath" UNICODE
- "lpszLongPath" UNICODE
- "cchBuffer" INT
- END
- STDFUNC GetLongPathNameA
- "lpszShortPath" ASCII
- "lpszLongPath" ASCII
- "cchBuffer" INT
- END
- STDFUNC StgOpenStorage
- "pwcsName" UNICODE
- "pstgPriority" ADDR
- "grfMode" INT
- "snbExclude" INT
- "reserved" INT
- "IStorage" ADDR
- END
- STDFUNC HeapSetInformation
- "HeapHandle" INT
- "HeapInformationClass" INT
- "HeapInformation" ADDR
- "HeapInformationLength" INT
- END
- STDFUNC InterlockedCompareExchange
- "Destination" ADDR
- "Exchange" INT
- "Comparand" INT
- END
- STDFUNC UnDecorateSymbolName
- "DecoratedName" ASCII
- "UnDecoratedName" ASCII
- "UndecoratedLength" INT
- "Flags" INT
- END
- STDFunc SysAllocStringLen
- "strIn" UNICODE
- "ui" INT
- END
- STDFUNC SysFreeString
- "bstrString" ADDR
- END
- STDFUNC SysReAllocStringLen
- "pbstr" ADDR
- "pch" UNICODE
- "cch" INT
- END
- STDFUNC ZwQueryInformationThread
- "HANDLE" INT
- "ThreadInformationClass" THREAD_INFORMATION_CLASS
- "ThreadInformation" ADDR
- "ThreadInformationLength" INT
- "ResultLength" ADDR
- END
- STDFUNC NtQueryInformationThread
- "HANDLE" INT
- "ThreadInformationClass" THREAD_INFORMATION_CLASS
- "ThreadInformation" ADDR
- "ThreadInformationLength" INT
- "ResultLength" ADDR
- END
- STDFUNC ZwSetInformationThread
- "HANDLE" INT
- "ThreadInformationClass" THREAD_INFORMATION_CLASS
- "ThreadInformation" ADDR
- "ThreadInformationLength" ADDR
- END
- STDFUNC NtSetInformationThread
- "HANDLE" INT
- "ThreadInformationClass" THREAD_INFORMATION_CLASS
- "ThreadInformation" ADDR
- "ThreadInformationLength" ADDR
- END
- STDFUNC ZwQueryInformationProcess
- "HANDLE" INT
- "ProcessInformationClass" PROCESS_INFORMATION_CLASS
- "ProcessInformation" ADDR
- "ProcessInformationLength" INT
- "ResultLength" ADDR
- END
- STDFUNC NtQueryInformationProcess
- "HANDLE" INT
- "ProcessInformationClass" PROCESS_INFORMATION_CLASS
- "ProcessInformation" ADDR
- "ProcessInformationLength" INT
- "ResultLength" ADDR
- END
- STDFUNC ZwSetInformationProcess
- "HANDLE" INT
- "ProcessInformationClass" PROCESS_INFORMATION_CLASS
- "ProcessInformation" ADDR
- "ProcessInformationLength" ADDR
- END
- STDFUNC NtSetInformationProcess
- "HANDLE" INT
- "ProcessInformationClass" PROCESS_INFORMATION_CLASS
- "ProcessInformation" ADDR
- "ProcessInformationLength" ADDR
- END
- STDFUNC RtlAdjustPrivilege
- "Privilege" PRIVILEGGE
- "Enable" BOOL
- "CurrentThread" INT
- "Enabled" ADDR
- END
- STDFUNC RtlDecompressBuffer
- "CompressionFormat" INT
- "UncompressedBuffer" ADDR
- "UncompressedBufferSize" INT
- "CompressedBuffer" ADDR
- "CompressedBufferSize" INT
- "FinalUncompressedSize" ADDR
- END
- STDFUNC SHGetSpecialFolderLocation
- "hwndOwner" INT
- "nFolder" INT
- "ppidl" ADDR
- END
- STDFUNC CreateProcessInternalW
- "UNK1" INT
- "ModuleFileName" UNICODE
- "CmdLine" UNICODE
- "pProcessSecurity" ADDR
- "pThreadSecurity" ADDR
- "InheritHandles" BOOL
- "CreationFlags" INT
- "pEnvironment" ADDR
- "CurrentDirectory" UNICODE
- "pStartupInfo" ADDR
- "pProcessInfo" ADDR
- "UNK2" INT
- END
- STDFUNC GetWriteWatch
- "dwFlags" GETWRITEWATCHFLAGS
- "lpBaseAddress" ADDR
- "dwRegionSize" INT
- "lpAddresses" ADDR
- "lpdwCount" ADDR
- "lpdwGranularity" ADDR
- END
- STDFUNC _Disasm
- "src" ASCII
- "srcsize" INT
- "srcip" INT
- "srcdec" ASCII
- "disasm" ADDR
- "dismode" INT
- "threadid" INT
- END
- STDFUNC CoInitialize
- "pvReserved" ADDR
- END
- STDFUNC SYMOPTIONS
- "src" ASCII
- "srcsize" INT
- "srcip" INT
- "srcdec" ASCII
- "disasm" ADDR
- "dismode" INT
- "threadid" INT
- END
- STDFUNC SymSetOptions
- "SymOptions" SymOptions
- END
- STDFUNC ZwQuerySystemInformationEx
- "InformationClass" INT
- "QueryInformation" ADDR
- "QueryInformationLength" ADDR
- "SystemInfotmation" ADDR
- "SystemInformationLength" INT
- "ReturnLength" ADDR
- END
- STDFUNC GetActiveProcessorCount
- "GroupNumber" INT
- END
- STDFUNC GetMaximumProcessorCount
- "GroupNumber" INT
- END
- STDFUNC ZwCreateDebugObject
- "pTEBDebugObject" ADDR
- "DesiredAccess" INT
- "pObjAttributes" ADDR
- "Flags" BOOL
- END
- STDFUNC SHGetFolderPathA
- "hwndOwner" INT
- "nFolder" CSIDL
- "hToken" INT
- "dwFlags" INT
- "pszPath" ASCII
- END
- STDFUNC SHGetFolderPathW
- "hwndOwner" INT
- "nFolder" CSIDL
- "hToken" INT
- "dwFlags" INT
- "pszPath" UNICODE
- END
- STDFUNC ZwProtectVirtualMemory
- "hProcess" HANDLE
- "pBase" ADDR
- "pSize" ADDR
- "Prot" PROT__x
- "pOut" ADDR
- END
- STDFUNC ZWQueryVirtualMemory
- "hProcess" HANDLE
- "Address" ADDR
- "VirtualMemoryInformationClass" VMINF_CLASS
- "VirtualMemoryInformation" ADDR
- "VirtualMemoryInformationLength" INT
- "pResult" ADDR
- END
- STDFUNC RtlCreateUserThread
- "ProcessHandle" INT
- "PSECURITY_DESCRIPTOR" ADDR
- "CreateSuspended" BOOL
- "StackZeroBits" INT
- "StackReserve" INT
- "StackCommit" INT
- "StartAddress" ADDR
- "Parameter" ADDR
- "pThreadHandle" ADDR
- "pCLIENT_ID" ADDR
- END
- STDFUNC ZwSetInformationDebugObject
- "hDbg" HANDLE
- "InformationClass" INT
- "pInformation" ADDR
- "InformationLength" INT
- "pResultLength" ADDR
- END
- STDFUNC ZwDebugContinue
- "hDbg" HANDLE
- "pClientID" ADDR
- "ContinueStatus" INT
- END
- STDFUNC AddVectoredExceptionHandler
- "IsFirst" BOOL
- "pHandler" ADDR
- END
- STDFUNC ZwCreateSection
- "pSectionHandle" ADDR
- "DesiredAccess" INT
- "pObjectAttributes" ADDR
- "pMaximumSize" ADDR
- "SectionPageProtection" PROT__x
- "AllocationAttributes" ALLOC_ATT
- "FileHandle" INT
- END
- STDFUNC ZwMapViewOfSection
- SectionHandle INT
- ProcessHandle INT
- pBaseAddress ADDR
- ZeroBits INT
- CommitSize INT
- pSectionOffset ADDR
- pViewSize ADDR
- InheritDisposition VIEW__x
- AllocationType ALLOC_TYPE
- Win32Protect PROT__x
- END
- STDFUNC ZwSetSystemInformation
- SystemInformationClass SYSTEM_INFORMATION_CLASS
- SystemInformation ADDR
- SystemInformationLength INT
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement