Slashdot Mirror


Researchers Seek Help In Solving DuQu Mystery Language

An anonymous reader writes "DuQu, the malicious code that followed in the wake of the infamous Stuxnet code, has been analyzed nearly as much as its predecessor. But one part of the code remains a mystery, and researchers are asking programmers for help in solving it. The mystery concerns an essential component of the malware that communicates with command-and-control servers and has the ability to download additional payload modules and execute them on infected machines."

89 of 131 comments (clear)

  1. It says... by Anonymous Coward · · Score: 5, Funny

    NSA Property, Keep Out.

    1. Re:It says... by Beardo+the+Bearded · · Score: 5, Interesting

      It looks to me to be the output from the PLC compiler. Clear, count, and compare are basic ladder logic commands.

      If you figure out which PLCs the Iranians are using that'll give you the compiler; each brand has its own and you're really unlikely to see it if you haven't used it. How many people here have used DirectSoft? Have you seen Schneider's programming interface?

      That would explain why the researchers haven't seen it. You rarely use PLCs outside of industry.

      --

      ---
      ECHELON is a government program to find words like bomb, jihad, plutonium, assassinate, and anarchy.
    2. Re:It says... by chinton · · Score: 2

      No, it says "Seatec Astronomy".

    3. Re:It says... by uhuru_meditation · · Score: 1

      SIEMENS PLC..

    4. Re:It says... by bl968 · · Score: 1

      It's actually \|/

      --
      "GET / HTTP/1.0" 200 51230 "-" "Mozilla/4.0 (compatible; Setec Astronomy)"
    5. Re:It says... by daem0n1x · · Score: 1

      Actually, it doesn't come from the NSA. The name resembles "Do cu", which is "from the ass" in Portuguese. There, now you know where it comes from.

  2. Mystery Code by Oswald+McWeany · · Score: 4, Funny

    The mystery code isn't really much of a mystery- it's just how Duqu communicates with the sith lord.

    --
    "That's the way to do it" - Punch
    1. Re:Mystery Code by mcgrew · · Score: 1

      Besides, I thought Obi Wan killed DuQu?

    2. Re:Mystery Code by ericloewe · · Score: 2

      You must be quoting that mythical Star Wars prequel trilogy that somehow spread around like wildfire. Good thing it's just a myth.

    3. Re:Mystery Code by dougisfunny · · Score: 2

      Anakin actually killed both DuQu and Obi Wan.

      --
      This is not the funny you're looking for.
    4. Re:Mystery Code by steelfood · · Score: 1

      Sounds insidious.

      --
      "If a nation expects to be ignorant and free in a state of civilization, it expects what never was and never will be."
    5. Re:Mystery Code by schroedingers_hat · · Score: 1

      Wait, the World Health Organization is a sith lord too?

  3. easy by P-niiice · · Score: 1

    hmmm yes, your average script kiddie can totally create a custom language and totally stump the entire computing universe. my daughter did it last week while looking for proxies to get around my facebook ban. no government needed!

    1. Re:easy by Havokmon · · Score: 1

      You mean you're not already running a squid/dansguardian box with NTLM auth locally and blocking all other Internet access? :)

      --
      "I can't give you a brain, so I'll give you a diploma" - The Great Oz (blatently stolen sig)
  4. Probably written in INTERCAL by el+borak · · Score: 1

    Learned INTERCAL from Guy Steele in the Comparative Languages course at CMU.

    --
    An imperfect plan executed violently is far superior to a perfect plan. -- George Patton
  5. answer is simple by Anonymous Coward · · Score: 1

    It's in ROT-13 Pig Latin.

    I'll take my paycheck in gum, Trident Layers to be specific.

  6. Re:Looks like assembly to me by PPH · · Score: 3, Insightful

    I kid, I kid...

    Why? Its entirely possible that this snippet of code is a piece of in-line assembly. It may have started out coming from some higher level language, but been tweaked or completely rewritten in assembly and its origin is no longer recognizable.

    --
    Have gnu, will travel.
  7. Uhh what? by JustNiz · · Score: 1

    ...and here's me thinking that compiled code has already been reduced to machine code.

    1. Re:Uhh what? by Zocalo · · Score: 3, Interesting

      Of course it has, but that's not the point. There's potentially something unusual here, so if you can work out what language/compiler/linker was used there might be a clue to the identity of the code's author(s). It wouldn't be the first time that a piece of malware has been written in an experimental language developed for educational purposes and seldom, if ever, seen outside that educational establishment. It would only be circumstatial evidence of course, but it's still better than nothing and might help narrow the field enough to get a lead on the authors.

      --
      UNIX? They're not even circumcised! Savages!
    2. Re:Uhh what? by Anonymous Coward · · Score: 1

      Assembler is a 1-to-1 correlation with machine code. Simple software can switch between the two.
      As explained in the article (blasphemy, I know), high-level languages and the compilers they use tend to leave evidence in the machine code, which can be recognized by some of the real code-nutters when decompiled into assembler.

    3. Re:Uhh what? by spads · · Score: 1

      Could be that it's a completely custom compiler which the thing downloads then wipes after use. Unless someone recognizes the language, it might be quite hard to figure out.

      "This compiler will self-destruct in 10 seconds - 'squelch...'"

      --
      Bukowski said it. I believe it. That settles it.
    4. Re:Uhh what? by 19thNervousBreakdown · · Score: 3, Insightful

      A compiler takes your high-level language instructions, and generates the many, many low-level instructions it might take to express a given high-level instruction. The thing is, much like there's many ways to write a cover letter for a resume, there's a lot of different ways to do that high->low expression, but a compiler writer is unlikely to bother with more than one way, or maybe a couple others if there's some benefit to doing so.

      A person on the other hand, will have all sorts of random variations in what they write. Oh, they'll come up with certain ruts, and have a certain style, but the won't be exactly the same every single time.

      Compilers also do useless stuff. For a car analogy, it's kind of like the tow hooks under your bumper--most of the time they aren't used. A person isn't going to bother to put them there if they're not currently needed or they can envision a need for them--a compiler never forgets to put those hooks there, and sometimes puts them there even when it's redundant. Optimization gets rid of that kind of thing, but no compiler is perfect, and they're often conservative.

      --
      <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
    5. Re:Uhh what? by rev0lt · · Score: 1

      I've seen hand-written assembly listings and guessed correctly how many programmers worked on it, and which ones did what. Most compilers do leave a signature, specially if the code is compiled with optimizations - there are many ways of implementing the same base algorithms, and the key tricks show on the disassembly.

    6. Re:Uhh what? by lightknight · · Score: 1

      Or just a regular code obfuscator.

      --
      I am John Hurt.
    7. Re:Uhh what? by Anonymous Coward · · Score: 1

      +1 CarAnalogy

    8. Re:Uhh what? by Em+Adespoton · · Score: 1

      Regular code obfuscators are pretty obvious to spot, and you can usually fingerprint which obfuscator was used, if it wasn't homemade. Whatever this code is, it's not something you see in every day asm.

  8. Re:Looks like assembly to me by forkfail · · Score: 3, Insightful

    Or even self modifying assembly....

    That would be a real pisser to figure out.

    --
    Check your premises.
  9. Re:Assembly? by Qzukk · · Score: 2

    Who would be insane enough to write OO code in assembly?

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  10. it was written in assembly language by circletimessquare · · Score: 3, Funny

    that's just a guess

    but the level these guys are working at here, something well above script kiddie and slightly below elder neckbeard, it seems entirely plausible to me

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
    1. Re:it was written in assembly language by spads · · Score: 2

      I think it could be even well above the advanced neck beard. These guys wanted to do all the damage possible, without giving them any technology they could figure out and use.

      --
      Bukowski said it. I believe it. That settles it.
    2. Re:it was written in assembly language by VortexCortex · · Score: 4, Interesting

      Well, if it's above the advanced level of Neck-beard the Gray then it's even more advanced than something like a tiny VM that interprets encrypted bytecode and has re-allocatable variable width opcodes such that the second time you encounter an instruction it may not do the same thing. Eg: my opcodes are Arithmetic encoded and encrypted with an evolving 12bit block cipher; Additionally, each execution swaps a few "function pointers" that the op-codes invoke. The compiler for my VM makes several passes to discover the optimal compression, encryption, and initial opcode-to-action table to use. To reverse engineer such a beast requires manually stepping through machine code from the very first instruction -- That is, given a partial sample of code: no amount of visual analysis will reveal what it does. The language used to write programs for it? ASM, or a subset of C; Though it could be Java, Python or any other high level language -- That's the beauty of compilers.

      Not saying this is what's been done, just that I've done and seen some VERY wicked code. I once cracked DRM that was implemented in enciphered MIPS and used such an embedded VM. It looked like the input language for the generated opcode was C.

      The government employees paid to come up with such a thing would be at most on-par with the masses of crypto nerds that joygasm over such things -- Who do you think they would hire? There's not some magical government-only breed of human with super hacker powers... Ergo, they must hire from the available pool of people, and since they don't hire us all, or even necessarily the absolute brightest, the highest level of hackerdom they could employ would be on-par with "the advanced neck beard" at most.

    3. Re:it was written in assembly language by circletimessquare · · Score: 5, Funny

      fine, you've made your point

      but the official coder manual officially classifies neckbeards as

      young neckbeard, adult neckbeard, elder neckbeard, and ancient neckbeard

      with Hit Points 100, 300, 700, and 1500, respectively

      the ancient variety is allowed to cast Befuddlement at will with a savings throw adjustment of -6 on your character's intelligence rating. i see you tried to cast that spell in your past post

      but i have no idea what this "advanced" neckbeard is you refer too. i don't think such a neckbeard classification exists... oh shoot, did you just Befuddle me?

      fine, i'll wait out the next 3 turns

      *sigh*

      --
      intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
  11. Re:Assembly? by Surt · · Score: 2

    My dad did. Maybe he's behind this. But he was a first generation programmer. Trying to get him to move on from assembly was a pointless endeavor.

    --
    "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  12. It's either: by blueforce · · Score: 4, Funny

    Objective-Brainfuck or Brainfuck with Classes

    --
    If you do what you always did, you get what you always got.
  13. Re:Assembly? by Ohrion · · Score: 1

    I'm sure he did write assembly. But Object Oriented assembly? Come on now...

  14. Re:Assembly? by SmurfButcher+Bob · · Score: 1

    > from assembly was a pointerless endeavor.

    ftfy.

    --

    help me i've cloned myself and can't remember which one I am

  15. Re:Assembly? by hawkbat05 · · Score: 1

    By the sounds of the article they haven't ruled that out. They're just checking to see if it could be a higher level language that would help identify the writer(s).

  16. Any sucker by AliasMarlowe · · Score: 4, Funny

    Any sucker can tell it was written in Linda.

    --
    Those who can make you believe absurdities can make you commit atrocities. - Voltaire
    1. Re:Any sucker by PPH · · Score: 1

      Well, I couldn't tell. Because I'm the suckee, not the sucker.

      Seriously, that would be kind of disturbing. A virus written using a distributed memory, multi-processor model. The more systems it infects, the more powerful it gets and the larger the problems it can handle.

      --
      Have gnu, will travel.
    2. Re:Any sucker by witherstaff · · Score: 1

      I hadn't heard of that language, thanks for the laugh. On a related note, we had an employee with a last name Lovelace. An older client, always prim and proper, left a message once to see when "Mr. Deepthroat would be stopping by to finish the job". Client would have probably died of embarassment if she realized her slip-up.

    3. Re:Any sucker by AliasMarlowe · · Score: 1

      On a related note, we had an employee with a last name Lovelace. An older client, always prim and proper, left a message once to see when "Mr. Deepthroat would be stopping by to finish the job".

      Got to watch out for those "prim and proper" ones. She probably exhausted Mr. Lovelace by the time he "finished the job" on each visit.

      --
      Those who can make you believe absurdities can make you commit atrocities. - Voltaire
  17. Re:Assembly? by Surt · · Score: 1

    No seriously. When OO became a fad he figured out how to build up macros to support an OO model.

    --
    "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  18. Re:Assembly? by Minwee · · Score: 1

    Right. That limits the suspects to... um... just about anyone who took a second-year computer science course above the level of "See Spot Run".

  19. Possibly? by Authustian · · Score: 1

    Could it be possible that the authors came up with their own language, and/or compiler?

  20. Re:Assembly? by Mr+Z · · Score: 1

    It's out there. I remember reading about a engine control algorithm running on a 68HC16 microcontroller in Circuit Cellar Ink back in the mid-90s, and it was written in object oriented assembler. It caught me so off-guard that I still remember it almost 20 years later.

  21. Re:Assembly? by tibit · · Score: 1

    That's beside the point. Who the fuck cares what is the imaginary high level language this stuff was written in? They are analyzing the somewhat annotated disassembly anyway. To me it looks like it may be the output from some PLC environment. Perhaps it's CoDeSys output. It doesn't matter anyway, there are no tools that will take this and restore the source. It's not like you need something uber-fancy anyway to help with what's the key here: figuring out what the code does.

    --
    A successful API design takes a mixture of software design and pedagogy.
  22. Re:NSA by TaoPhoenix · · Score: 5, Insightful

    Actually, I'll reverse the joke and gun for +1 Insightful.

    Ready?

    Literally why does this story even exist? This code takes out nuclear reactors and "researchers ask programmers for help"? Really?! (Does "Ask" imply they want the answer FREE?!)

    So the Dept of Homeland Security is busy helping yank down file share sites and they have no time for this?

    Ladies and Gentlemen and AI's, this is your answer to why we're spiralling into a mess.

    --
    My first Journal Entry ever, in 8 years! http://slashdot.org/journal/365947/aphelion-scifi-fantasy-horror-poetry-webzine
  23. Re:Assembly? by 19thNervousBreakdown · · Score: 1

    Why's that so hard to believe? I've been programming almost exclusively in object-oriented languages for 15 years now, give or take. Chances are no matter what language I write in, whatever I write is going to include many object-oriented features. If I was working with a complex assembly project, a type system would be one of the first things I came up with. From there, it's not much of a stretch to imagine you'd want to associate data with instances of that type, and functions that can operate on them. Bam! Object-oriented assembly. Private members and inheritance are just small steps from there.

    --
    <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
  24. Re:NSA by Anonymous Coward · · Score: 2, Informative

    DHS, conspiracy theories aside, is likely conducting their own investigation into DuQu, the details of which are unlikely to be shared with the general public. TFA is about Kaspersky Labs, an independently owned security firm, asking for help from the general public.

  25. Re:So, we meet at last.... by Spy+Handler · · Score: 1

    My powers have doubled since the last time we met, DuQu!

  26. Re:Assembly? by Nadaka · · Score: 1

    I did when I was college.

  27. Re:Assembly? by rev0lt · · Score: 1

    I *wish* my day-to-day job was OO asm development. I've done a fair amount of x86 OO programming, and it is quite easy (if you're fluent in asm).

  28. Re:Assembly? by rev0lt · · Score: 1

    Or just consider that the Borland Turbo Assembler did have "native" OO support, and that there are a ton of MASM OO macros than can be somewhat easily adapted to any modern assembler.

  29. erlang by slew · · Score: 5, Insightful

    My guess is that it's probably erlang. It fits all the descriptions of how erlang works. Erlang is used in all sorts of realtime systems, it wouldn't be a stretch to see that it was used in a virus library. Someone that is in the Telecom or Network infrastructure industry might be familiar with Erlang and that type of person might also be the same type of person that knows enough about networks and network vunerabilities to architect a framework for virus distribution.

    1. Re:erlang by tibit · · Score: 1

      +1 insightful. I haven't thought of Erlang!

      --
      A successful API design takes a mixture of software design and pedagogy.
    2. Re:erlang by Panaflex · · Score: 1

      But wouldn't erlang would have separate functions for each callback? Everything else is very similar.

      Another architecture this looks similar too is the X Toolkit event library...

      --
      I said no... but I missed and it came out yes.
  30. Re:NSA by Baloroth · · Score: 5, Insightful

    Literally why does this story even exist? This code takes out nuclear reactors and "researchers ask programmers for help"? Really?! (Does "Ask" imply they want the answer FREE?!) So the Dept of Homeland Security is busy helping yank down file share sites and they have no time for this?

    Why would DHS have anything to do with this? DuQu so far hasn't done anything to American interests (in fact, so far as I can tell, it has helped them). The people in TFA looking at the code are Kaspersky: a Russian anti-virus company. They don't even recognize the language the code is written in, much less how it works, and they are wondering if anyone of the billions of people on the Internet knows (specifically, if it is a a specialized language used in some niche industry or something). If no one does, they can be pretty sure it was a custom created language, and proceed accordingly. They aren't asking for someone to do their work for them: they are saying "hey, this look like anything anyone knows?" DHS might be looking at it too, if they didn't create it: but the story has absolutely nothing whatsoever to do with them, in any way. Not even the same continent.

    Also, I don't know where you got "takes out nuclear reactors." Stuxnet did damage to nuclear centrifuges. AFAICT all DuQu seems to be doing is stealing data (private keys, actually). Bad for people who get infected, yes. Not like it is causing nuclear meltdowns or something.

    --
    "None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
  31. Perl by 0100010001010011 · · Score: 2

    That clearly looks like perl to me.

    1. Re:Perl by larien · · Score: 5, Funny

      Can't be perl. It's far too readable, for a start.

    2. Re:Perl by youn · · Score: 1

      IMHO compiling may actually make it more readable :p

      --
      Never antropomorphize computers, they do not like that :p
  32. FTFA by g0bshiTe · · Score: 1

    They don't know the language? Why are they concerned with the language it was written in? What if it was written in C++ or C on ARM and cross compiled for x86, would it look funky like that? Or is it possible it's compiled in TASM and they are actually looking at a 16-bit code segment where most of them have never seen less than 32-bit code?

    --
    I am Bennett Haselton! I am Bennett Haselton!
  33. the decoded message is by Eponymous+Coward · · Score: 2, Funny

    "Be sure to drink your Ovaltine."

    1. Re:the decoded message is by cant_get_a_good_nick · · Score: 1

      "Be sure to drink your Ovaltine."

      Or you'll shoot your eye out?

  34. Re:Why should I care? by AHuxley · · Score: 1

    Like, who cares? This code is like Sputnik in orbit above your country - it sets the new legal framework that its ok to mess with industrial computers world wide and get to hide behind state support.

    --
    Domestic spying is now "Benign Information Gathering"
  35. Re:Assembly? by JonySuede · · Score: 1
    --
    Jehovah be praised, Oracle was not selected
  36. Re:Assembly? by hawkbat05 · · Score: 1

    The researchers care what high level language was used. It could help identify who wrote it since it's likely that the language has a small user base.

  37. Re:Assembly? by tibit · · Score: 1

    Good point, although compared to mainstream tools like MSVC, almost everything has a "small" user base.

    --
    A successful API design takes a mixture of software design and pedagogy.
  38. Re:Assembly? by IwantToKeepAnon · · Score: 1

    I have also. TASM (Borland's Turbo Assembler) had support for it. The assembler would manage a vtable for you among other things. I've also programmed OO in Korn shell. Why OO in assembler or ksh? Because it was the right tool for the job and OO principals can be used anywhere they make sense and help the effort. It's not as far out there as you make it seem.

    --
    "Happy families are all alike; every unhappy family is unhappy in its own way." -- Anna Karenina by Leo Tolstoy
  39. Looks like the SCADA variant by Taco+Cowboy · · Score: 2

    I only took a glance so don't blame me if I am wrong, but it looks like the SCADA variant

    More info available at http://en.wikipedia.org/wiki/SCADA

    --
    Muchas Gracias, Señor Edward Snowden !
    1. Re:Looks like the SCADA variant by CBravo · · Score: 1

      In the story they mention an event driven architecture which could hint at hardware oriented design (maybe code that can complie to multiple architectures).

      --
      nosig today
    2. Re:Looks like the SCADA variant by mikael · · Score: 1

      Lots of libraries are event-driven: X-windows, GUI widgets, Qt, device-drivers. Even certain 2D graphics API's had callbacks like TIGA.

      Back in the 1980's, ADT (Abstract Data Types) were the big thing in C programming. They were the predecessors to object-orientated design. You started by having a typedef'ed structure. Then you had init, allocate, deallocate functions. With function-pointers (something like: int (*procfunc)( int param1, int param2) stored within that structure, you could do all sorts of C++ things, like different instances of different class types. While C++ inline functions didn't exist, you just used macros to modify structure variables.

      Function calls were also expensive (thus the use of macros). Compilers like Borland C++ (the command line version) had all sorts of compiler optimizations to speed up function calls (it also did as much work to implement UNIX library functions as possible). There were different ways of optimizing function calls. One way was to avoid saving the entire register set - though that would mess up interrupt handlers. Another way was to use register variables for function calls as much as possible. There was a different between Pascal and C function call conventions. One had the calling function clean up the stack frame, while the other version had the called function do the clean up. Then there were all the different programming model sizes (tiny, medium, small, large, huge). These had different code, data and stack segments (64K = 32-bit). Other optimizations were for size or speed. There was the capability to generate DLL files. Other optimizations would include merging small functions into larger ones.

      Interesting thing was, that the Borland C++ compiler would pick up just statements outside the case conditions of a switch statement while GNU C++ even today won't. Even a return followed by a break would cause an unreachable code error.

      --
      Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
  40. Re:NSA by Forty+Two+Tenfold · · Score: 1

    DHS, conspiracy theories aside, is likely conducting their own investigation into DuQu

    No need for that unless they snuffed the original developer before securing the relevant docs.~

    --
    Upward mobility is a slippery slope - the higher you climb the more you show your ass.
  41. Re:Assembly? by lightknight · · Score: 1

    Because it annoys the PhDs, that's why they care.

    Think about it. We use high-level languages because it expresses an idea in fewer words. If I call a TextBox control in C#, that's simpler than the equivalent in Assembly. These people, of course, are annoyed, because without knowing what the higher language was (assuming there was one used), it will take their minds years to analyze what exactly the code is dong; whereas if they knew what the higher language was, they could create a decompiler, and have something approaching the original source code in a few weeks / months.

         

    --
    I am John Hurt.
  42. Spin language? by colin_faber · · Score: 1

    This looks a lot like "Spin" from a company called parallax. It's a proprietary programming language used to control their pic and hyperpic processors.

  43. Wrong. by shuttah · · Score: 1

    "This code takes out nuclear reactors and "researchers ask programmers for help"? Really?!"

    No, no DuQu does not, and has never attempted to, 'take out nuclear reactors.' That was a different piece of malware.

    It would benefit us all - as well as yourself - if before you commented you educated yourself on the subject of the submitted story.

  44. Re:Looks like assembly to me by v1 · · Score: 2

    I don't understand why they are avoiding this option like the plague. C'mon... practically every compiler compiles its language into assembly and runs that through an assembler for final object code creation. (tho some will then run THAT through an optimizer etc) There's absolutely no reason for them to insist it can't be written in native assembler. I wrote many things for the 6502 that way - if you want it fast and small, that's the way to go.

    And sorry, if they have to reverse it back into C++ or some other higher level language to figure out what it does, they're idiots, no better than script kiddies. I don't care of they have ten CS masters degrees. Assembly just takes a little more time to work out, it's not like it's encrypted and they don't have the key.

    None of this should come as a surprise to anyone. The authors are black-hats. They make their living on buffer overflows and bug exploitation, they damn well know how to code in assembly, and specifically how to tear it apart and analyze it in fine detail. Why can't these "experts" do that?

    --
    I work for the Department of Redundancy Department.
  45. Re:NSA by lennier · · Score: 4, Funny

    DHS, conspiracy theories aside, is likely conducting their own investigation into DuQu

    No need for that unless they snuffed the original developer before securing the relevant docs.~

    Hey, everyone makes mistakes. That drone was supposed to have been loaded with tranquilizer darts, not Hellfires. Boy, there were some red faces in the office when we found out what happened.

    --
    You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
  46. Seriously! by HiggsBison · · Score: 5, Insightful

    I'm sure he did write assembly. But Object Oriented assembly?

    I'm incredulous that you are incredulous. I thought I saw a book about that somewhere. So I walked over to my tall stack of random language books and there it is:
    Object-Oriented Assembly Language, Len Dorfman, McGraw-Hill, 1990

    I hereby thwack you upside the head.

    --
    My other car is a 1984 Nark Avenger.
  47. Re:Assembly? by PPH · · Score: 1

    Not the whole app. According to TFA, it was written in C++. They even know which implementation. But this particular function (subroutine, method, whatever) appears not to be written in that.

    Its something different. Or someone banged out some ASM by hand. If they can figure out what language this routine was written in, they can narrow down the list of possible authors*.

    * Come on now. You didn't think the NSA wasn't scraping all the developers' resumes from LinkedIn to build a skill set database to figure out who wrote what, did you?

    --
    Have gnu, will travel.
  48. Re:Assembly? by tibit · · Score: 1

    Creating a "decompiler" isn't exactly trivial. The types of analyses you have to do on machine code compiled with today's optimizing compilers are fairly generic, they will give you some higher-level representation of the code no matter what was the underlying language. Those tools recognize certain patterns to provide even higher level information, but at a basic level they pretty much repeat what a compiler would do: there's data flow and control flow analysis, and a whole lot of inference based on those. I'm sure there's a whole lot of techniques and tricks published...

    --
    A successful API design takes a mixture of software design and pedagogy.
  49. Re:Looks like assembly to me by Brett+Buck · · Score: 2

    I think most are missing the point. They probably already know what it does (if they don't, given the effort they have expended, then they are boobs). What they want to do is find what the language was *in order to track down the authors* on the premise that it was some strange language only used in a few places and if they find it, they can narrow the range of likely candidates .

  50. Re:iron python by Mr+Z · · Score: 2

    Ok, you and someone on the article both said the same thing, with absolutely nothing to back it up. Care to elaborate? I'm particularly curious how a .NET bytecode executable ends up as baroque machine code as opposed to CLI bytecode like most .NET languages.

  51. Forth ? by eulernet · · Score: 1

    One of the comments on the page already said that.

    I remember I disassembled Forth a lot of years ago.
    It comes in 2 flavours: interpreted and compiled.
    It relies on RPN heavily.
    It's a very compact language, both in source and in compiled form.
    You extend the language by using "words", and it's like OOP.

    It's one of the weirdest language I ever used.

  52. Output from a IEC 61131-3 dev kit by uberskullz · · Score: 2

    Yeah it looks like the output from a PLC development kit, the original code might be written in STL http://en.wikipedia.org/wiki/Structured_text.

  53. Re:Looks like assembly to me by Whiteox · · Score: 2

    Actually looks like the result of a macro assembler module. The MOV functions gives it away. The only reason for doing that is to make it faster or to reduce the code size, not necessarily to obfuscate. The programmer is old school.

    --
    Don't be apathetic. Procrastinate!
  54. Sounds like.. by Sigg3.net · · Score: 1

    ... it's Java!

  55. Re:Assembly? by lightknight · · Score: 1

    Two points:

    1.) No one said it was trivial, but for a capable researcher who has spent a fair portion of their life dealing with decompilers (and writing a few of their own), they probably have an idea how to do it fairly quickly.

    2.) While it's possible to walk-through reams of Assembly code, it's painful. Extremely painful. A 100-line 'function' in Assembly code will cause most programmers to pause, and a 100,000 lines of Assembly code ('functions' and all) will break even the most vigilant of programmers. The human mind just does not like holding 100,000 variables actively in working memory (whether it can actually do that is open to some debate). 100,000 lines in Assembly is 2,000 lines in a higher-level languages, segmented properly so the human brain doesn't crash.

    --
    I am John Hurt.
  56. Re:Assembly? by dr2chase · · Score: 1

    Just for reference, I have a PhD, I work on compilers and runtime systems. People like me program in assembly, we program in HLLs, whatever works. We will (for actual example) pore over 88 pages of assembly-language output from a compiler in order to find the register allocation bug. Other people I've worked with on compilers (some with PhDs, some not) do things like diagnosing a C optimizer bug based only on the C++ input to cfront (later run through a C compiler) and the busted output, or, after pondering the full set of symptoms, (correctly) diagnose a "compiler bug" as a lack of thermal compound between CPU and heat sink (over the phone!)

    You get good at this stuff when you do it full-time, and a compiler/debugger person who had come across this language in the past would probably ID it confidently. It's probably NOT something that passed through a C compiler, because those still have calling conventions, structure layout conventions, and other funny idioms that would still be obvious to someone familiar with C compilers on that platform (which presumably the guys at Kaspersky are).

  57. Re:Assembly? by P-niiice · · Score: 1

    teach me obi wan that stuff sounds cool.