r/ReverseEngineering • u/gloabalist • Jul 16 '17
How to make a reverse engineer cry
https://github.com/xoreaxeaxeax/movfuscator8
138
u/cym13 Jul 16 '17
Yeah, well, https://kirschju.re/demov
45
25
u/chocoladisco Jul 16 '17
Please tell me the binaries they distribute are movfuscated, just for the glory of satan.
5
5
u/kATTERAKT Jul 17 '17
Its worth looking at what this actually does - it recovers control flow, but that's about it. It also doesn't look like it works with the instruction shuffling that hte movfuscator provides.
4
u/danukeru Jul 19 '17
Recovers control flow based on the fact that branching occurs at each iteration of looping over the whole obfuscated code. That's about it.
30
u/robot_mower_guy Jul 16 '17
Heh. I listened to this guy's DefCon talk. It was pretty interesting.
3
u/DarkCisum Jul 16 '17
Too bad Cantor Dust still isn't a thing. 🙁
4
22
u/ilikerackmounts Jul 16 '17
I wonder how bad the performance hit is for this. What mechanism in x86 allows this to work? Pointer arithmetic that happens with relative addressing?
22
u/jkerman Jul 16 '17
It sounds like massive lookup tables somehow? It says it can emulate floating point numbers, with just MOV, but it takes 500,000 instructions for that functionality
6
u/ALittleSkeptical Jul 16 '17 edited Jul 17 '17
I really hate researchers that mislead their techniques. The author wrote an entire paper saying only one instruction for Turing completeness, but then nonchalantly says it takes one instruction to jmp start. That jmp allows you to loops, an important requirement for Turing complete. It's written deceptively masking how it actually works.
Then you get some first year grad student reviewing your paper and doesn't understand the nuance and next thing people believe you can do Turing complete with only MOV instructions.
When can we start calling this sort of work what it really is... a parlor trick.
Edit: added MOV clarification for other readers that don't understand context
8
u/vancetwofold Jul 17 '17
to clarify: the author of the 'mov is turing-complete' paper and the author of the compiler are two different people. the compiler author found a way around using the jmp instruction, which is discussed in the project source, readme, and the presentation he gave. so - mov is still turing complete, it just requires some creativity.
2
u/gloabalist Jul 16 '17
3
u/ALittleSkeptical Jul 16 '17
Under the mov instruction OISC, jumps are done using a memory mapped instruction pointer, something not available in x86.
Your point?
BTW, thanks for the down vote, is what I said wrong?
1
u/gloabalist Jul 17 '17
I did not downvote your post. Cant the instruction address register be changed by a mov instruction? I am still learning assembly, so I may not understand.
2
u/ALittleSkeptical Jul 17 '17
No, not on x86, which is what the author is referring to. You sort of made my earlier point.
3
u/igor_sk Jul 17 '17
Yeah, the claims are somewhat misleading, but still it's a nice trick. What's your opinion on this?
1
u/ALittleSkeptical Jul 18 '17
Lol, I can't believe this made it into woot. So I am going to write a custom pagefault handler with instructions that doesn't count as my instruction-less code. Oh, and I won't discuss 64-bit does not support segmentation. Perfect example, thanks for the referral.
It is sad usenix sec has become an upscale black hat. Although useless hacking up a system is getting high profile academic exposure I suppose.
1
1
u/Banality_Of_Seeking Jul 16 '17 edited Jul 16 '17
try single instruction exception decryption based on no execution vectored exception handler.
1
u/brgodchamp Jul 17 '17
how would you actually start to reverse stuff compiled with this?
1
u/igor_sk Jul 19 '17
figure out how it works, then get to work. linked above: https://kirschju.re/demov
1
-29
8
u/LurkNautili Jul 16 '17
Wait, how can this possibly work? Doesn't mov just set the value of a location to the value of another location? Like... set a register to the value of another register, or a constant, or a location in memory? How do you use that to do... anything? Like control flow or whatever?
[EDIT: And yes, I'm a noob, with a noob question]