Starting directory for scan (D:\)
File name search pattern (e.g. *.*)
Output filename prefix (e.g. ridgeracer)
The script is as follows
Code: Select all
@echo off
REM *********************************************************************************
REM * Dumpstrs.cmd
REM *
REM * Version: 1.0
REM * Author: steddy
REM * Requirements: Windows 2000 / Windows XP
REM * Description: Scan specified directory (%1) recursively and output all
REM * strings found to the console. Can be piped to a file
REM *********************************************************************************
SETLOCAL
SET STRINGCMD=c:\ps2dev\ee\bin\ee-strings.exe
SET NUMCHARS=6
REM ** Validate directory name
IF "%1" EQU "" GOTO USAGE
IF "%2" EQU "" GOTO USAGE
IF "%3" EQU "" GOTO USAGE
IF EXIST "%1" GOTO CHECKDIR
@ECHO Dumpstrs: Directory %1 does not exist
EXIT /B -1
:CHECKDIR
REM ** Format the directory name and build final path string
SET DIRNAME=%1
IF "%DIRNAME:~-1%" EQU "\" GOTO DIROK
SET SEARCHPATH=%DIRNAME%\%2
GOTO DOSCAN
:DIROK
SET SEARCHPATH=%DIRNAME%%2
:DOSCAN
REM ** Delete output filename if it already exists
IF NOT EXIST %3%.ALL GOTO NODEL1
DEL /Q %3%.ALL
:NODEL1
SET OUTFILE=%3%
@ECHO Dumpstrs: Using search pattern %SEARCHPATH%
REM ** Walk the directory tree calling ee-strings
FOR /f "Tokens=*" %%a in ('dir /s /b /a-d "%1"') do call :getstrings %%a
@ECHO Dumpstrs: Full scan complete
REM ** Now issue FIND commands to check for only strings we are interested in
FINDSTR /R /I "sce\w*" %OUTFILE%.ALL >%OUTFILE%.FND
@ECHO Dumpstrs: Find complete. Results in %OUTFILE%.FND
EXIT /B 1
:GETSTRINGS
REM ** Run ee-strings for each file found outputting results to the console
%STRINGCMD% -a -%NUMCHARS% %1 >> %OUTFILE%.ALL
EXIT /B
:USAGE
@ECHO Usage: Dumpstrs DirectoryName Pattern OutfileName
@Echo example: Dumpstrs d:\psp_game\usrdir\ *.prx outfile
Sorry for not taking the time to calculate the hashes or exclude found ones, this has taken 8 hours already. Its getting late over here and I can only do the hashing manually. If anyone has a command line tool I would be happy to go through it.
The results (not all are functions but most are):
Code: Select all
Function
nsCertExt
nsCertSequence
nsCertType
sceAtracDecodeData
sceGuSignal
sceInitRegistry
sceIoAssign
sceIoChstat
sceIoClose
sceIoGetstat
sceIoLseek
sceIoOpen
sceIoOpenAsync
sceIoReadAsync
sceIoSetAsyncCallback
sceKernelChangeThreadPriority
sceKernelCreateCallback
sceKernelCreateThread
sceKernelDeleteCallback
sceKernelDeleteThread
sceKernelExitGame
sceKernelGetThreadCurrentPriority
sceKernelLoadModule
sceKernelMaxFreeMemSize
sceKernelStartModule
sceKernelStartThread
sceKernelStopModule
sceKernelTotalFreeMemSize
sceKernelUnloadModule
sceMpegAtrac
sceMpegAtracDecode
sceMpegAvc
sceMpegAvcDecode
sceMpegCreate
sceMpegDmacpDemuxCh
sceMpegFlushAllStream
sceMpegGetAvcAu
sceMpegGetAvcDecodeStop
sceMpegInit
sceMpegInitAu
sceMpegMallocAvcEsBuf
sceMpegMpegData
sceMpegQueryMemSize
sceMpegQueryStreamOffset
sceMpegQueryStreamSize
sceMpegRegistStream
sceMpegRingbufferConstruct
sceMpegRingbufferPut
sceMpegRingbufferQueryMemSize
sceMScmIsCLDAttached
sceNetAdhoc
sceNetAdhocctlAddHandler
scenetAdhocctlConnect
sceNetAdhocctlDelHandler
sceNetAdhocctlDisconnect
sceNetAdhocctlGetPeerList
sceNetAdhocctlInit
sceNetAdhocctlTerm
sceNetAdhocDownloadClient
sceNetAdhocDownloadMemoryPool
sceNetAdhocDownloadReplySession
sceNetAdhocDownloadRequestSession
sceNetAdhocInit
sceNetAdhocMatching
sceNetAdhocMatchingEvent
sceNetAdhocMatchingInit
sceNetAdhocMatchingInput
sceNetAdhocMatchingLock
sceNetAdhocMatchingMemoryPool
sceNetAdhocMatchingTerm
sceNetAdhocPdpCreate
sceNetAdhocTerm
sceNetApctlAddHandler
sceNetApctlDelHandler
sceNetApctlDisconnect
sceNetApctlGetState
sceNetApctlInit
sceNetApctlTerm
sceNetApDialogDummy
sceNetCallout
sceNetCalloutQueue
sceNetGetLocalEtherAddr
sceNetGetLocalEtherAddr
sceNetInetInit
sceNetInetTerm
sceNetInit
sceNetNetintr
sceNetResolverCreate
sceNetResolverInit
sceNetResolverStartNtoA
sceNetSlpque
sceNetSpl
sceNetTerm
sceNetThreadInfo
sceNetThreadList
scePowerRegisterCallback
sceQueryAtracEsSize
sceUmdActivate
sceUmdRegisterUMDCallBack
sceUtility_netparam_internal
sceUtilityExecFileOpen
sceUtilityGameSharingInitStart
sceUtilityGameSharingShutdownStart
sceUtilityGameSharingUpdate
sceUtilityGetSystemParamString
sceUtilityNetconfInitStart
sceUtilityNetconfUpdate
sceUtilityOskShutdownStart
sceUtilityOskUpdate
sceUtilitySavedataInitStart
sceUtilitySavedataShutdownStart
sceUtilitySavedataUpdate
sceWaveMain
Steddy