Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CyberForce/Pesidious
/ functions
Functions
960 in github.com/CyberForce/Pesidious
⨍
Functions
960
◇
Types & classes
176
↓ 2 callers
Method
get_unwind_info_version
Returns UNWIND_INFO structure version
portable-executable/portable-executable-library2/pe_lib/pe_exception_directory.cpp:49
↓ 2 callers
Method
get_version
portable-executable/portable-executable-library2/pe_lib/pe_rich_data.cpp:17
↓ 2 callers
Method
get_virtual_memory_threshold
Returns the maximum block size that can be allocated from heap segments, in bytes
portable-executable/portable-executable-library2/pe_lib/pe_load_config.cpp:117
↓ 2 callers
Method
has_config
Returns true if image has config directory
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:583
↓ 2 callers
Method
has_overlay
Returns true if image has overlay data at the end of file
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1076
↓ 2 callers
Method
has_tls
Returns true if image has TLS directory
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:577
↓ 2 callers
Method
is_console
Returns true if image has console subsystem
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1112
↓ 2 callers
Method
is_exe_name
Returns true if data type is exe name
portable-executable/portable-executable-library2/pe_lib/pe_debug.cpp:399
↓ 2 callers
Method
is_file
Returns true if structure contains file name
portable-executable/portable-executable-library2/pe_lib/pe_debug.cpp:540
↓ 2 callers
Method
is_gui
Returns true if image has Windows GUI subsystem
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1118
↓ 2 callers
Method
is_native_entry_point
Returns true if entry point is native
portable-executable/portable-executable-library2/pe_lib/pe_dotnet.cpp:50
↓ 2 callers
Function
load_dataset
r""" Extracts the input data from disk and packages them into format expected by \p MalGAN. Supports loading files from numpy, torch, and p
main_malgan.py:128
↓ 2 callers
Method
prepare_section
Prepares section before attaching it
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:437
↓ 2 callers
Function
process_imported_functions_output
(imports)
extract_features.py:284
↓ 2 callers
Method
realign_file
Realigns file (changes file alignment)
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1538
↓ 2 callers
Function
rebuild_bound_imports
imports - bound imported modules list imports_section - section where export directory will be placed (must be attached to PE image) offset_from_secti
portable-executable/portable-executable-library2/pe_lib/pe_bound_import.cpp:203
↓ 2 callers
Method
remove_bitmap
Removes bitmap by name/ID and language
portable-executable/portable-executable-library2/pe_lib/resource_bitmap_writer.cpp:44
↓ 2 callers
Method
remove_resource_type
Removes all resources of given type or root name If there's more than one directory entry of a given type, only the first one will be deleted (that's
portable-executable/portable-executable-library2/pe_lib/pe_resource_manager.cpp:27
↓ 2 callers
Method
rewrite_iat_and_original_iat_contents
Returns true if Original import address and import address tables contents will be rewritten works only if import descriptor IAT (and orig.IAT, if pre
portable-executable/portable-executable-library2/pe_lib/pe_imports.cpp:49
↓ 2 callers
Function
run_rl
(pefolder, pefile, show)
mutated_builder.py:158
↓ 2 callers
Function
run_test
portable-executable/portable-executable-library2/tests/test_runner/main.cpp:62
↓ 2 callers
Method
rva_to_va_64
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1246
↓ 2 callers
Method
section_and_offset_from_rva
Returns section and offset (raw data only) from its start from RVA
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1276
↓ 2 callers
Method
set_callbacks_rva
Sets TLS callbacks RVA
portable-executable/portable-executable-library2/pe_lib/pe_tls.cpp:107
↓ 2 callers
Method
set_characteristics
Sets characteristics
portable-executable/portable-executable-library2/pe_lib/pe_tls.cpp:119
↓ 2 callers
Method
set_dll_characteristics
Sets DLL Characteristics
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1289
↓ 2 callers
Method
set_image_base_64
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1396
↓ 2 callers
Method
set_name
Sets entry name
portable-executable/portable-executable-library2/pe_lib/pe_resources.cpp:174
↓ 2 callers
Method
set_name
Sets name of function (or clears it, if empty name is passed)
portable-executable/portable-executable-library2/pe_lib/pe_exports.cpp:72
↓ 2 callers
Method
set_ordinal_base
Sets ordinal base
portable-executable/portable-executable-library2/pe_lib/pe_exports.cpp:202
↓ 2 callers
Method
set_stub_overlay
Sets stub MSVS overlay
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:141
↓ 2 callers
Method
set_subsystem
Sets subsystem value
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1106
↓ 2 callers
Method
set_symbol_name
Sets symbol name
portable-executable/portable-executable-library2/pe_lib/pe_debug.cpp:583
↓ 2 callers
Method
set_version_info
Sets/replaces full version information: file_version_info: versions and file info lang_string_values_map: map of version info strings with encodings t
portable-executable/portable-executable-library2/pe_lib/resource_version_info_writer.cpp:21
↓ 2 callers
Method
set_virtual_address
Sets section virtual address
portable-executable/portable-executable-library2/pe_lib/pe_section.cpp:257
↓ 2 callers
Function
test_version
portable-executable/portable-executable-library2/tests/test_resource_version_info/main.cpp:12
↓ 2 callers
Method
zero_directory_entry_iat
Returns true if IMAGE_DIRECTORY_ENTRY_IAT must be zeroed, works only if auto_set_to_pe_headers = true
portable-executable/portable-executable-library2/pe_lib/pe_imports.cpp:68
↓ 1 callers
Function
__random_length
()
mutated_builder.py:194
↓ 1 callers
Method
_calc_discrim_loss
r""" Calculates the parameter :math:`L_{D}` as defined in Eq. (2) of Hu & Tan's paper. :param X: Examples to calculate the loss ov
malgan/__init__.py:345
↓ 1 callers
Function
_configure_activation_function
r""" Parse the activation function from a string and return the corresponding activation function PyTorch module. If the activation functio
main_malgan.py:108
↓ 1 callers
Function
_export_results
r""" Exports MalGAN results. :param model: MalGAN model :param valid_loss: Average loss on the malware validation set :param tes
malgan/_export_results.py:16
↓ 1 callers
Method
_fit_blackbox
r""" Firsts the blackbox detector using the specified malware and benign training sets. :param mal_train: Malware training dataset
malgan/__init__.py:190
↓ 1 callers
Method
_fit_epoch
r""" Trains a single entire epoch :param epoch_num: Epoch number :param g_optim: Generator optimizer :param d_op
malgan/__init__.py:284
↓ 1 callers
Method
add_module_ref
Adds module reference
portable-executable/portable-executable-library2/pe_lib/pe_bound_import.cpp:79
↓ 1 callers
Method
add_translation
Adds translation to translation list
portable-executable/portable-executable-library2/pe_lib/version_info_editor.cpp:110
↓ 1 callers
Function
agent_policy
(agent)
mutated_builder.py:162
↓ 1 callers
Method
auto_set_to_pe_headers
Returns true if PE headers should be updated automatically after rebuilding of imports
portable-executable/portable-executable-library2/pe_lib/pe_imports.cpp:62
↓ 1 callers
Method
auto_strip_last_section_enabled
Returns true if the last section should be stripped automatically, if imports are inside it
portable-executable/portable-executable-library2/pe_lib/pe_imports.cpp:74
↓ 1 callers
Function
binary_builder
( malware_pe: str, adversarial_vector: str, feature_mapping: str, output_path: str, f
binary_builder.py:142
↓ 1 callers
Function
call_c_application_for_imports
( pefile: str, importFile: str, cpath: str, output_dir: str )
binary_builder.py:860
↓ 1 callers
Function
call_c_application_for_section
( section_app: str, pefile: str, section_file: str, section_content: str, output_file
binary_builder.py:870
↓ 1 callers
Method
chooseAction
(self, observation, epsilon)
rl_train.py:223
↓ 1 callers
Method
clear_characteristics_flags
Clears PE characteristics flag
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1082
↓ 1 callers
Method
clear_imports
Clears imported functions list
portable-executable/portable-executable-library2/pe_lib/pe_imports.cpp:252
↓ 1 callers
Function
compute_td_loss
(batch_size)
rl_train.py:249
↓ 1 callers
Method
create_pe
portable-executable/portable-executable-library2/pe_lib/pe_factory.cpp:6
↓ 1 callers
Method
discardable
portable-executable/portable-executable-library2/pe_lib/pe_section.cpp:95
↓ 1 callers
Function
edit_tls
(bytez)
mutated_builder.py:308
↓ 1 callers
Method
enable_auto_strip_last_section
Sets if the last section should be stripped automatically, if imports are inside it, default true
portable-executable/portable-executable-library2/pe_lib/pe_imports.cpp:122
↓ 1 callers
Function
evaluate
( action_function, pefolder, pefile , show)
mutated_builder.py:83
↓ 1 callers
Method
executable
Returns true if section is executable
portable-executable/portable-executable-library2/pe_lib/pe_section.cpp:85
↓ 1 callers
Method
extract
(self, bytez)
gym_malware/envs/utils/pefeatures2.py:339
↓ 1 callers
Function
extract_imports
(file, feature_vector_mapping: dict, filtered_import_list: list,index: int = 0, win32: bool = True)
extract_features.py:335
↓ 1 callers
Function
extract_sections
(file, feature_vector_mapping: dict, index: int = 0, win32: bool = True)
extract_features.py:367
↓ 1 callers
Function
features_extractor
(adversarial_vector: str, feature_mapping: str)
binary_builder.py:724
↓ 1 callers
Function
features_mapping_index
(malware_path: str, benign_path: str, output_path: str)
extract_features.py:80
↓ 1 callers
Method
fill_stub_overlay
Fills MSVC stub overlay with character c
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:134
↓ 1 callers
Function
filter_imported_functions
Filters the returned imported functions of binary to remove those with special characters (lots of noise for some reason), and require func
binary_builder.py:786
↓ 1 callers
Function
filter_imported_functions
Filters the returned imported functions of binary to remove those with special characters (lots of noise for some reason), and require func
extract_features.py:258
↓ 1 callers
Method
fit
r""" Fits the learner. Supports NumPy and PyTorch arrays as input. Returns a torch tensor as output. :param X: Examples
malgan/detector.py:57
↓ 1 callers
Method
fit_one_cycle
r""" Trains the model for the specified number of epochs. The epoch with the best validation loss is used as the final model.
malgan/__init__.py:212
↓ 1 callers
Method
forward
(self, x)
mutate.py:139
↓ 1 callers
Method
forward
(self, x)
rl_train.py:219
↓ 1 callers
Method
get_characteristics
Returns characteristics of directory
portable-executable/portable-executable-library2/pe_lib/pe_resources.cpp:222
↓ 1 callers
Method
get_characteristics
Returns characteristics
portable-executable/portable-executable-library2/pe_lib/pe_exports.cpp:106
↓ 1 callers
Method
get_codepage
Returns resource codepage
portable-executable/portable-executable-library2/pe_lib/resource_data_info.cpp:23
↓ 1 callers
Method
get_edit_list_va
Returns VA of edit list (reserved by system)
portable-executable/portable-executable-library2/pe_lib/pe_load_config.cpp:141
↓ 1 callers
Method
get_file_os
Returns file OS type
portable-executable/portable-executable-library2/pe_lib/file_version_info.cpp:101
↓ 1 callers
Method
get_file_os_raw
Returns file OS type (raw DWORD)
portable-executable/portable-executable-library2/pe_lib/file_version_info.cpp:95
↓ 1 callers
Method
get_file_type
Returns file type
portable-executable/portable-executable-library2/pe_lib/file_version_info.cpp:159
↓ 1 callers
Method
get_file_type_raw
Returns file type (raw DWORD)
portable-executable/portable-executable-library2/pe_lib/file_version_info.cpp:153
↓ 1 callers
Method
get_from_name
r""" Gets the enum item from the specified name :param name: Name of the enum object :return: Enum item assoc
malgan/detector.py:39
↓ 1 callers
Function
get_full_path
portable-executable/portable-executable-library2/tests/test_runner/main.cpp:96
↓ 1 callers
Method
get_guid
Returns debug PDB 7.0 structure GUID
portable-executable/portable-executable-library2/pe_lib/pe_debug.cpp:319
↓ 1 callers
Method
get_heap_size_commit_32
Returns heap size commit for PE32 and PE64 respectively
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1446
↓ 1 callers
Method
get_heap_size_reserve_32
Returns heap size reserve for PE32 and PE64 respectively
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1457
↓ 1 callers
Method
get_icon_by_id
Returns icon data by ID and index in language directory (instead of language) (minimum checks of format correctness)
portable-executable/portable-executable-library2/pe_lib/resource_cursor_icon_reader.cpp:148
↓ 1 callers
Function
get_latest_model_from
(basedir)
mutated_builder.py:59
↓ 1 callers
Method
get_major_version
Returns major version of directory
portable-executable/portable-executable-library2/pe_lib/pe_resources.cpp:234
↓ 1 callers
Method
get_major_version
Returns major version number
portable-executable/portable-executable-library2/pe_lib/pe_load_config.cpp:61
↓ 1 callers
Method
get_major_version
Returns major version
portable-executable/portable-executable-library2/pe_lib/pe_exports.cpp:118
↓ 1 callers
Method
get_minor_version
Returns minor version of directory
portable-executable/portable-executable-library2/pe_lib/pe_resources.cpp:240
↓ 1 callers
Method
get_minor_version
Returns minor version number
portable-executable/portable-executable-library2/pe_lib/pe_load_config.cpp:67
↓ 1 callers
Method
get_minor_version
Returns minor version
portable-executable/portable-executable-library2/pe_lib/pe_exports.cpp:124
↓ 1 callers
Method
get_nt_headers_ptr
Returns nt headers data pointer
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1613
↓ 1 callers
Method
get_number_of_functions
Returns number of functions
portable-executable/portable-executable-library2/pe_lib/pe_exports.cpp:142
↓ 1 callers
Method
get_number_of_names
Returns number of function names
portable-executable/portable-executable-library2/pe_lib/pe_exports.cpp:148
↓ 1 callers
Method
get_pe_signature
Returns PE signature
portable-executable/portable-executable-library2/pe_lib/pe_base.cpp:1307
↓ 1 callers
Method
get_rva_of_code_manager_table
Returns RVA of code manager table
portable-executable/portable-executable-library2/pe_lib/pe_dotnet.cpp:105
↓ 1 callers
Method
get_rva_of_export_address_table_jumps
Returns RVA of export address table jumps
portable-executable/portable-executable-library2/pe_lib/pe_dotnet.cpp:129
← previous
next →
301–400 of 960, ranked by callers