MSP430 lifting issues
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 72/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- reverse-engineering
Direção de pesquisa
Start with the referenced MSP430 cases in arch/msp430/src/lift.rs and flag.rs, then inspect the rlc/rrc builder in rust/src/low_level_il/lifting.rs. Reproduce the lifts from kat-msp430.elf at the listed addresses and compare them with the expected LLIL sketches. Done means rra, byte stores and autoincrement, subtract carry, rotations through carry, and rla.b produce the stated semantics.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Binary files and instruction addresses (ZIP available for upload separately):
kat-msp430.elf: 0x401e, 0x40de, 0x40e0, 0x40fe, 0x4440, 0xae40; SHA-2567161cda75990fbfe523a17677127c99b47f018f670ef98c8ada90600c02c95a2
1: MSP430 rra
Binary instruction: kat-msp430.elf / b64_encode at 0x40e0; bytes 0b11.
Disassembly: rra r11.
Current lifted LLIL (relevant lines):
r11 = ror.w{cnz}(r11, 1)
flag:v = 0
Expected LLIL (semantic sketch):
r11 = r11 s>> 1 // update C, N, Z; clear V
Rotate-right wraps the low bit into the sign position; rra copies the original sign bit.
Code: arch/msp430/src/lift.rs:198
2: MSP430 mov.b and byte autoincrement
Binary instruction: kat-msp430.elf / b64_encode at 0x40fe; bytes df497ac00300.
Disassembly: mov.b -0x3f86(r9), 0x3(r15).
Current lifted LLIL (relevant lines):
[r15 + 3].w = zx.w([r9 - 0x3f86].b)
The byte autoincrement part also appears in kat-msp430.elf / memcpy at 0xae40: mov.b @r13+, r11 (7b4d) lifts as:
r11 = zx.w([r13].b)
r13 = r13 + 2
The expected pointer update for that byte move is r13 = r13 + 1.
Expected LLIL (semantic sketch):
[r15 + 3].b = [r9 - 0x3f86].b
The current width changes adjacent memory and skips bytes in byte streams.
Code: byte store width, autoincrement width
3: MSP430 subtract/compare carry
Binary instruction: kat-msp430.elf / b64_encode at 0x401e; bytes 39900300.
Disassembly: cmp 0x3, r9.
Current lifted LLIL (relevant lines):
sub.w{*}(r9, 3)
Expected LLIL (semantic sketch):
sub.w{*}(r9, 3); flag:c uses no-borrow subtraction polarity
Inverted carry polarity reverses branches that consume C after a subtract or compare.
Code: arch/msp430/src/flag.rs:30
4: Rust LLIL rlc / rrc builder
Binary instruction: kat-msp430.elf / b64_encode at 0x40de; bytes 0b10.
Disassembly: rrc r11.
Current lifted LLIL (relevant lines):
r11 = rrc.w{*}(r11, 1, r4)
Expected LLIL (semantic sketch):
r11 = rrc.w{*}(r11, 1, flag:c)
LLIL rotation through carry is ternary; omitting C makes the expression decode with an unrelated third operand.
Code: LLIL builder, MSP430 caller
5: MSP430 rla.b
Binary instruction: kat-msp430.elf / md5 at 0x4440; bytes 4d5d.
Disassembly: rla.b r13.
Current lifted LLIL (relevant lines):
r13 = zx.w(rol.b{*}(r13.b, 1))
Expected LLIL (semantic sketch):
r13 = zx.w(r13.b << 1) // carry out from bit 7
A rotate feeds the old high bit into bit zero; arithmetic left shift must insert zero there.
- Linguagem predominante
- C++
- Estrelas
- 1.3k
- Forks
- 304
- Merge médio
- 2d 20h
- PRs com merge (30d)
- 10
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Vector35/binaryninja-api
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
Vector35/binaryninja-api#8715 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Vector35/binaryninja-api#8714 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
Vector35/binaryninja-api#8713 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
Vector35/binaryninja-api#8689 ·
Mantenedores costumam responder em até 2 dias
-
Component: Python API
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Vector35/binaryninja-api#8649 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de Vector35/binaryninja-api
Issues semelhantes
-
Bug Core VIF
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
ESPresense/ESPresense#2680 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 75/100
stew675/llama-cpp-rdna-boosts#348 ·
Mantenedores costumam responder em até 1 dia
-
Documentation: Add comprehensive newcomer onboarding guide, project structure, and local usage to READMETalvez já em andamento @Ash-Blanc assumiu hoje. Abertaarea/other status/bot-triaged status/need-triage
Dificuldade 2/5 Meio dia Facilidade para iniciantes 85/100
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia