DMDG REA LIVE SIMULATOR 03

클린룸 바이트코드 교차 검증기 (Byte Matcher)

《모던 리버스 엔지니어링 : AI 기반 보안 분석과 클린룸 시스템 재구현》 09장 연계 쇼룸

🔍 원본 x86 바이너리 (Dirty Room)
AUDITOR SPEC
; 1996 DX-Ball SoundPan (Offset: 0x10002A40)
; Total Size: 63 Bytes Machine Code
55 push ebp
8B EC mov ebp, esp
D9 45 08 fld dword ptr [ebp+8] ; posX
D8 1D 20 50 40 00 fcomp dword ptr [0x405020] ; 0.0f
DF E0 fnstsw ax
9E sahf
7A 06 jp 0x10002A58
D9 45 08 fld dword ptr [ebp+8]
D8 25 24 50 40 00 fsub dword ptr [0x405024] ; 320.0f (center)
D8 35 28 50 40 00 fdiv dword ptr [0x405028] ; 320.0f (span)
D9 5D FC fstp dword ptr [ebp-4] ; clamp pan
8B 45 FC mov eax, [ebp-4]
5D pop ebp
C3 ret
🛡️ 클린룸 재구현 모던 Rust (Clean Room)
ARCHITECT REBUILD
// Cleanroom Reconstructed Rust Function
// Fully Memory-Safe & Zero Overhead
pub const CENTER_X: f32 = 320.0;
pub const MAX_SPAN: f32 = 320.0;

#[inline]
pub fn calculate_dxball_sound_pan(pos_x: f32) -> f32 {
    if pos_x.is_nan() {
        return 0.0;
    }
    let offset = pos_x - CENTER_X;
    let normalized = offset / MAX_SPAN;
    normalized.clamp(-1.0, 1.0)
}
TDD 교차 단위 테스트 통과율
0 / 3,205
바이너리 기계어 일치율 (Byte Parity)
0.0 %
클린룸 방화벽 (Cleanroom Status)
방화벽 격리 활성