Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Conversation

ilektragiassa
Copy link

PEP8, replaced scripts/bin2asm.py with asm2vec/binary_to_asm.py

@ilektragiassa ilektragiassa requested a review from a team as a code owner October 2, 2023 14:46
Comment on lines 11 to 17
def __init__(self, input_path: str, output_path: str) -> None:
"""Disassembles the newly collected malware files
:param input_path: the path to the malware binaries
:param output_path: the path for the assembly functions to be extracted
"""
self.binary_dir = Path(input_path)
self.asm_dir = Path(output_path)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we simplify this?
The paths are only used in one method.
Therefore to keep generic and reuasable, lets not have a class. Just functions.
And pass the paths into the one function that needs them

Copy link
Collaborator

@jamienutter jamienutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work

@ilektragiassa ilektragiassa merged commit 5497a20 into master Oct 2, 2023
@ilektragiassa ilektragiassa deleted the AEGIS-6405-asm2vec-pytorch-edits branch October 2, 2023 15:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants