{"id":102,"date":"2011-10-25T19:15:30","date_gmt":"2011-10-25T19:15:30","guid":{"rendered":"http:\/\/www.gironsec.com\/blog\/?p=102"},"modified":"2011-10-25T19:15:30","modified_gmt":"2011-10-25T19:15:30","slug":"reversing-origin-p2","status":"publish","type":"post","link":"https:\/\/www.gironsec.com\/blog\/2011\/10\/reversing-origin-p2\/","title":{"rendered":"Reversing Origin P2"},"content":{"rendered":"<p>The triumphant release of Battlefield 3 marks the second time in my life where I waited til midnight to purchase a game standing outside a store. The first of which being Fallout 3 (after all I did wait 10 years for a sequel). And with the newest game out you would think there would be some sort of update right? &#8230;.RIGHT?<\/p>\n<p><a href=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/1257673443250.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-103\" title=\"1257673443250\" src=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/1257673443250.jpg\" alt=\"\" width=\"355\" height=\"264\" srcset=\"https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/1257673443250.jpg 500w, https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/1257673443250-300x223.jpg 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>Nope. Well sorta, but not much. About the only noticeable difference I see is that they modified the UI slightly, but other than that no real code changes are present in the binary.<\/p>\n<p>&nbsp;<\/p>\n<p>Now is as good a time as any to reveal some of my findings. For starters we have some call to a telemetry server. It was on port 9922. I noticed this while Iwas monitoring new threads with processmon. After doing a slow as hell text binary search through the code for any references to the IP (159.153.235.32) which was NOT in the strings table (why?) this is what I found:<\/p>\n<p>loc_4020A6:<br \/>\nlea\u00a0\u00a0\u00a0\u00a0 edx, [ebp+var_26C4]<br \/>\npush\u00a0\u00a0\u00a0 edx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; int<br \/>\npush\u00a0\u00a0\u00a0 offset aTelemetryserve ; &#8220;TelemetryServer&#8221;<br \/>\npush\u00a0\u00a0\u00a0 offset aTelemetry ; &#8220;Telemetry&#8221;<br \/>\nlea\u00a0\u00a0\u00a0\u00a0 ecx, [ebp+var_249C]<br \/>\ncall\u00a0\u00a0\u00a0 sub_6D3230<br \/>\ncmp\u00a0\u00a0\u00a0\u00a0 eax, 0FFFFFFFFh<br \/>\njz\u00a0\u00a0\u00a0\u00a0\u00a0 short loc_4020D5<\/p>\n<p>mov\u00a0\u00a0\u00a0\u00a0 esi, [ebp+var_26C0]<br \/>\ncmp\u00a0\u00a0\u00a0\u00a0 [ebp+var_26C4], esi<br \/>\njnz\u00a0\u00a0\u00a0\u00a0 short loc_4020EB<br \/>\nloc_4020D5:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ; &#8220;159.153.235.32&#8221;<br \/>\npush\u00a0\u00a0\u00a0 offset a159_153_235_32<br \/>\nlea\u00a0\u00a0\u00a0\u00a0 ecx, [ebp+var_26C4]<br \/>\ncall\u00a0\u00a0\u00a0 sub_408CE0<br \/>\nmov\u00a0\u00a0\u00a0\u00a0 esi, [ebp+var_26C0]<\/p>\n<p>&nbsp;<\/p>\n<p>A telemetry server!<\/p>\n<p>EA owns the IP range so I assume this is part of their tracking system<\/p>\n<p>http:\/\/whois.arin.net\/rest\/net\/NET-159-153-0-0-1\/pft<\/p>\n<p>What does it send? XML of course! But what contents? This is what I have been able to extrapolate:<\/p>\n<p>Initial connection is made, it sends the following markup:<\/p>\n<p>&lt;TELEMETRY_XML&gt;<\/p>\n<p>&lt;!&#8211; new session: BEGIN &#8211;&gt;<\/p>\n<p>&lt;internal persona=&#8221;%s&#8221; UUID=&#8221;%I64x&#8221; nucleusId=&#8221;%s&#8221; locale=&#8221;%s&#8221;\u00a0 \/&gt;<\/p>\n<p>&lt;Metric Module=&#8221;%s(internal ID %u)&#8221;\u00a0 Group=&#8221;%s(internal ID %u)&#8221; String=&#8221;%s tm_API=&#8221;%i&#8221;<\/p>\n<p>timeStamp=&#8221;%I64x (%.4i-%.2i-%.2i %.2i:%.2i:%.2i)&#8221; \/&gt;<\/p>\n<p>&lt;!&#8211; new session: END &#8211;&gt;<\/p>\n<p>Then it sends a bunch of binary data. This is likely the encoded information about your system. I have yet to decode it.<\/p>\n<p>Since this is a C based library its using format string identifiers. You see strings, integers and their widths. The persona field is your sign on name. The nucleus ID is the same thing.<\/p>\n<p>The locale is the region (in my case USA), the metric module is something (???) same with the internal and group ID&#8217;s. Not sure what they are for yet. The tm_API is just some number. Lastly we have the 64 bit time stamp. Easy enough to follow and easy enough to filter through with wireshark.<\/p>\n<p>There is other stuff that I see from time to time that connects or listens, but its mostly dumb stuff like news feeds and an amazon service.<\/p>\n<p><a href=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/remoteips.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-104\" title=\"remoteips\" src=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/remoteips.png\" alt=\"\" width=\"671\" height=\"525\" srcset=\"https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/remoteips.png 671w, https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/remoteips-300x234.png 300w\" sizes=\"(max-width: 671px) 100vw, 671px\" \/><\/a><br \/>\nThe 50.19 address belongs to amazon according to ARIN:<\/p>\n<p>http:\/\/whois.arin.net\/rest\/net\/NET-50-16-0-0-1\/pft<\/p>\n<p>Connecting to it with a raw socket yields nothing in terms of a banner or header. Its a damn echo server.<\/p>\n<p><a href=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/echo-server.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-105\" title=\"echo server\" src=\"http:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/echo-server.png\" alt=\"\" width=\"403\" height=\"424\" srcset=\"https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/echo-server.png 403w, https:\/\/www.gironsec.com\/blog\/wp-content\/uploads\/2011\/10\/echo-server-285x300.png 285w\" sizes=\"(max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<p>You can look up the other ip&#8217;s you want, but I already saw most of them &#8211; web site connections made by the clients.<\/p>\n<p>There is a lot more stuff to document so I will continue this with part 3 when we go over the browser plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The triumphant release of Battlefield 3 marks the second time in my life where I waited til midnight to purchase a game standing outside a store. The first of which being Fallout 3 (after all I did wait 10 years for a sequel). And with the newest game out you would think there would be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts\/102"}],"collection":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":3,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gironsec.com\/blog\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}