Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit uScylla;
- (*
- SDK for Scylla Imports Reconstruction
- https://forum.tuts4you.com/files/go/33527f76821a0cde32ae196fa9ac4180/scylla-imports-reconstruction
- https://github.com/NtQuery/Scylla
- *)
- interface
- uses
- Windows;
- const
- {$IFDEF WIN64}
- ScyllaDll = 'Scylla_x64.dll';
- {$ELSE}
- ScyllaDll = 'Scylla_x86.dll';
- {$ENDIF}
- SCY_ERROR_SUCCESS : integer = 0;
- SCY_ERROR_PROCOPEN : integer = -1;
- SCY_ERROR_IATWRITE : integer = -2;
- SCY_ERROR_IATSEARCH : integer = -3;
- SCY_ERROR_IATNOTFOUND: integer = -4;
- SCY_ERROR_PIDNOTFOUND: integer = -5;
- function ScyllaDumpCurrentProcessW(fileToDump: LPWSTR;
- imagebase : DWORD_PTR;
- entrypoint: DWORD;
- fileResult: LPWSTR): BOOL; stdcall; external ScyllaDll;
- function ScyllaDumpCurrentProcessA(fileToDump: LPCSTR;
- imagebase : DWORD_PTR;
- entrypoint: DWORD;
- fileResult: LPCSTR): BOOL; stdcall; external ScyllaDll;
- function ScyllaDumpProcessW(pid : DWORD_PTR;
- fileToDump: LPWSTR;
- imagebase : DWORD_PTR;
- entrypoint: DWORD_PTR;
- fileResult: LPWSTR): BOOL; stdcall; external ScyllaDll;
- function ScyllaDumpProcessA(pid : DWORD_PTR;
- fileToDump: LPCSTR;
- imagebase : DWORD_PTR;
- entrypoint: DWORD_PTR;
- fileResult: LPCSTR): BOOL; stdcall; external ScyllaDll;
- function ScyllaRebuildFileW(fileToRebuild : LPWSTR;
- removeDosStub : BOOL;
- updatePeHeaderChecksum: BOOL;
- createBackup : BOOL): BOOL; stdcall; external ScyllaDll;
- function ScyllaRebuildFileA(fileToRebuild : LPCSTR;
- removeDosStub : BOOL;
- updatePeHeaderChecksum: BOOL;
- createBackup : BOOL): BOOL; stdcall; external ScyllaDll;
- function ScyllaVersionInformationW(): LPWSTR; stdcall; external ScyllaDll;
- function ScyllaVersionInformationA(): LPCSTR; stdcall; external ScyllaDll;
- function ScyllaVersionInformationDword(): DWORD; stdcall; external ScyllaDll;
- function ScyllaStartGui(dwProcessId: DWORD;
- hmod : DWORD): integer; stdcall; external ScyllaDll;
- function ScyllaIatSearch(dwProcessId : DWORD;
- iatStart : PDWORD;
- iatSize : PDWORD;
- searchStart : DWORD_PTR;
- advancedSearch: BOOL): integer; stdcall; external ScyllaDll;
- function ScyllaIatFixAutoW(iatAddr : DWORD_PTR;
- iatSize : DWORD;
- dwProcessId: DWORD;
- dumpFile : LPWSTR;
- iatFixFile : LPWSTR): integer; stdcall; external ScyllaDll;
- implementation
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement