avast / avast/retdec

How to lift asm codes in text files into llvmir

Open
#1,037 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Hi, I am trying to lift a bunch of asm codes which stored in text files into llvmir using capstone2llvmir, but I have no idea how to let capstone2llvmir to do that
I've tried commands like these:
![image](https://user-images.githubusercontent.com/29673689/139227531-7485d0c6-91e8-405b-91ed-c8fcc99d2aa1.png)
```shell
./retdec-capstone2llvmir -a arm -m arm -t `echo $code`
./retdec-capstone2llvmir -a arm -m arm -t $(cat ~/Desktop/Project/small_opt/orig_exe/test.ass)
./retdec-capstone2llvmir -a arm -m arm -t $code
./retdec-capstone2llvmir -a arm -m arm -t "~/Desktop/Project/small_opt/orig_exe/test.ass"
```
but none of which works

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the retdec-capstone2llvmir command and the assembly text-file usage shown in the issue. Determine which input form the tool supports, then document a working invocation and the expected LLVM IR output or error behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli, compilers
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.