2023-12-03 21:05:22 +08:00
|
|
|
@echo off
|
2023-12-28 14:10:34 +08:00
|
|
|
setlocal EnableDelayedExpansion
|
2023-12-03 21:05:22 +08:00
|
|
|
|
|
|
|
set "IDA_PATH=D:\IDA_Pro_v6.8\idaq.exe"
|
2023-12-28 14:10:34 +08:00
|
|
|
set "FOLDER_PATH=D:\bishe\Gencoding\train_malware"
|
2023-12-03 21:05:22 +08:00
|
|
|
set "SCRIPT_PATH=../raw-feature-extractor/preprocessing_ida.py"
|
2023-12-28 14:10:34 +08:00
|
|
|
set "SAVE_PATH=../train_malware_result/"
|
2023-12-03 21:05:22 +08:00
|
|
|
|
2023-12-28 14:10:34 +08:00
|
|
|
for %%f in ("%FOLDER_PATH%\*.*") do (
|
|
|
|
echo %%f
|
|
|
|
if /i "%%~xf"==".idb" (
|
|
|
|
echo Found IDB file: %%f
|
|
|
|
) else (
|
|
|
|
echo !time! %%f
|
|
|
|
%IDA_PATH% -c -A -S"%SCRIPT_PATH% --path %SAVE_PATH%" %%f
|
2023-12-03 21:05:22 +08:00
|
|
|
)
|
2023-12-28 14:10:34 +08:00
|
|
|
)
|
2023-12-03 21:05:22 +08:00
|
|
|
|
|
|
|
endlocal
|
|
|
|
|