Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more xor instructions #379

Merged
merged 1 commit into from Dec 8, 2020
Merged

add more xor instructions #379

merged 1 commit into from Dec 8, 2020

Conversation

mr-tz
Copy link
Collaborator

@mr-tz mr-tz commented Dec 7, 2020

  • cover more XOR instructions
  • force vivisect function at FVA in tests

Copy link
Collaborator

@williballenthin williballenthin left a comment

Choose a reason for hiding this comment

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

good fix

@@ -223,13 +228,30 @@ def sample(request):
return resolve_sample(request.param)


def get_function(extractor, fva):
def get_function(extractor, fva, force=True):
Copy link
Collaborator

Choose a reason for hiding this comment

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

i'm not a huge fan of how this function behaves implicitly (by creating the function if it doesn't exist, which doesn't match how capa works from the cli).

i'd recommend moving the make_function calls to a separate procedure, maybe invoked by the get_extractor function used by tests. this way, a user can easily find all the fixups we do to support testing.

Copy link
Collaborator

Choose a reason for hiding this comment

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

for example, within 3b13b_extractor(), check isinstance(extractor, VivisectExtractor) and if so, do the appropriate make_function calls before returning it.

@mr-tz mr-tz merged commit 9ce0c94 into master Dec 8, 2020
@mr-tz mr-tz deleted the fix/nzxor-xor-instructions branch December 8, 2020 08:37
@williballenthin williballenthin added this to the v1.5.0 milestone Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants