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

Unable to extract simple strings #483

Open
pmondon opened this issue Jan 17, 2022 · 3 comments
Open

Unable to extract simple strings #483

pmondon opened this issue Jan 17, 2022 · 3 comments
Labels

Comments

@pmondon
Copy link

pmondon commented Jan 17, 2022

I used the standalone version of FLOSS as described in the documentation and it is not able to decode strings. I just setup a main and a function that XOR using a simple 0x80 byte and it doesn't retrieve it whether it is in the stack or the heap it doesn't work. Even taking the code from the test sample create the same result.
version used : floss.exe 1.7.0-alpha1
image
image

@williballenthin
Copy link
Collaborator

hey @pmondon happy to triage this. would you be willing to share the .exe? we can also incorporate this scenario as a test case for the project, if you're ok with it.

@pmondon
Copy link
Author

pmondon commented Jan 19, 2022

Hi, I used one of the examples from the repository compiled with VisualStudio. I also created a really simple program (yes malloc 100 is arbitrary and not beautiful I know
simple_encoder.zip
)

@mr-tz
Copy link
Collaborator

mr-tz commented Mar 17, 2022

Great test case!
vivisect fails to resolve the imports, so we cannot hook them

TRACE: floss.api_hooks: prehook: 0x140001082 call qword [rip + 4128]
TRACE: floss.api_hooks: apicall: 0x415c300f call qword [rip + 4128] ('int', None, 'msx64call', 'UnknownApi', ()) []
DEBUG: EmulatorDriver: driver hook API call NOT handled: UnknownApi

compare to IDA

.text:000000014000107A 48 8B D9          mov     rbx, rcx
.text:000000014000107D B9 64 00 00 00    mov     ecx, 64h ; 'd'  ; Size
.text:0000000140001082 FF 15 20 10 00 00 call    cs:malloc
.text:0000000140001088 48 8B F8          mov     rdi, rax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants