1 00:00:00,420 --> 00:00:06,980 So what I'm going to be talking about here is basically some not even really fancy pants 2 00:00:06,980 --> 00:00:07,240 thing. 3 00:00:07,380 --> 00:00:11,880 It's more of an artistic expression, if anything else, if you really want to call it that. 4 00:00:12,100 --> 00:00:16,740 It's really just a fun, clever technique to be an asshole to people. 5 00:00:17,060 --> 00:00:21,140 So now I'll introduce myself if this shit is going on the screen. 6 00:00:21,220 --> 00:00:21,660 Is it there? 7 00:00:23,460 --> 00:00:25,000 I'm totally sending a signal. 8 00:00:25,140 --> 00:00:25,820 Maybe I'm not. 9 00:00:26,080 --> 00:00:26,700 Hang on. 10 00:00:27,820 --> 00:00:28,640 Let's try this. 11 00:00:31,600 --> 00:00:32,000 Yeah. 12 00:00:34,860 --> 00:00:35,440 Yes, no. 13 00:00:35,960 --> 00:00:36,360 Nothing. 14 00:00:36,620 --> 00:00:37,240 There we go. 15 00:00:37,400 --> 00:00:37,840 All right. 16 00:00:40,960 --> 00:00:41,360 Okay. 17 00:00:41,660 --> 00:00:43,200 So my name is Frank2. 18 00:00:43,820 --> 00:00:45,400 It's not actually Frank Squared. 19 00:00:45,460 --> 00:00:49,940 Some asshole spammer on Twitter has Frank2, and I've been trying to ‑‑ I tried to 20 00:00:49,940 --> 00:00:53,700 socially engineer them to get rid of the account because, hey, it's technically a spam account 21 00:00:53,700 --> 00:00:54,760 and I can get rid of it. 22 00:00:54,840 --> 00:00:56,480 But apparently if you're honest with them, 23 00:00:56,480 --> 00:01:02,080 they won't do it because I was requesting to get a name taken away or something like 24 00:01:02,080 --> 00:01:04,880 that, even though it was a spam account, but, you know, fuck them, fuck Twitter. 25 00:01:06,060 --> 00:01:08,200 A lot of people recognize me by my hat. 26 00:01:09,320 --> 00:01:13,460 I'm with DC949 and DC310, and I also work for Rapid7. 27 00:01:13,720 --> 00:01:16,300 I can't put that there because there's a lot of F bombs here. 28 00:01:16,440 --> 00:01:18,060 My manager did not want me to do that. 29 00:01:19,220 --> 00:01:21,460 So I gave this talk at ThoughtCon. 30 00:01:22,180 --> 00:01:26,460 But I was given only about, I want to say, 15 minutes. 31 00:01:26,460 --> 00:01:28,140 15 minutes or so to speak. 32 00:01:28,520 --> 00:01:30,800 And this is kind of a complex topic. 33 00:01:31,380 --> 00:01:36,680 So it was basically a stand‑up performance that just so happened to feature reverse engineering 34 00:01:36,680 --> 00:01:39,160 and all sorts of funny stuff like that. 35 00:01:39,440 --> 00:01:41,400 And there were basically two camps. 36 00:01:41,800 --> 00:01:45,820 There was this one guy on Twitter who said, I have no idea what the fuck Frank2 is talking 37 00:01:45,820 --> 00:01:46,960 about, but it's awesome. 38 00:01:48,240 --> 00:01:52,700 And then there was this dude on Reddit who saw my slides and he was upset with all the 39 00:01:52,700 --> 00:01:53,340 weed references. 40 00:01:53,480 --> 00:01:56,440 And he was, you know, angered that such a serious thing is going on. 41 00:01:56,460 --> 00:01:59,160 This topic wasn't really covered so seriously. 42 00:01:59,680 --> 00:02:03,220 And the bottom line was, you know, he wanted more content and less bullshit. 43 00:02:03,800 --> 00:02:05,940 So I kind of want to focus on this quote. 44 00:02:06,120 --> 00:02:09,640 Nothing personal to the dude from Reddit if he just so happens to be in this audience. 45 00:02:10,460 --> 00:02:12,040 Because he had a fair criticism. 46 00:02:12,200 --> 00:02:15,120 Because the talk didn't have a lot of content, it was bullshit. 47 00:02:15,300 --> 00:02:18,520 Because it was geared to be, you know, a stand‑up routine for hackers, basically. 48 00:02:19,140 --> 00:02:24,240 But at the same time, I kind of feel like people don't really present their information 49 00:02:24,240 --> 00:02:26,440 in a very entertaining way. Even though it is. 50 00:02:26,980 --> 00:02:32,680 It's always very cut and dry, here is EIP, here is ESP, here is how you perform exploit, 51 00:02:32,980 --> 00:02:34,360 here is my O day, now clap. 52 00:02:35,000 --> 00:02:40,940 And a lot of people ‑‑ it just ‑‑ it just seems like ‑‑ thank you, I appreciate 53 00:02:40,940 --> 00:02:41,320 that. 54 00:02:41,520 --> 00:02:45,640 And it just seems like to me that this stuff is just ‑‑ there's so much entertainment 55 00:02:45,640 --> 00:02:46,960 at this convention alone. 56 00:02:47,320 --> 00:02:51,400 So it just feels like a lot of people should be presenting it in an entertaining fashion. 57 00:02:51,680 --> 00:02:52,660 And that's what I'm trying to do. 58 00:02:53,020 --> 00:02:55,900 So this is basically what you're going to see. 59 00:02:58,020 --> 00:03:00,340 Extremely referential shit to computer science. 60 00:03:00,560 --> 00:03:02,300 And absolutely juvenile humor. 61 00:03:02,640 --> 00:03:04,800 So I hope you'll appreciate it. 62 00:03:04,840 --> 00:03:06,520 That's exactly what I'm going to try for here. 63 00:03:06,740 --> 00:03:09,560 If you came for a serious talk, I'm very sorry. 64 00:03:10,440 --> 00:03:16,520 So if you look at the ‑‑ this is basically a very scientific analysis of the previous 65 00:03:16,520 --> 00:03:17,420 talk that I gave. 66 00:03:17,560 --> 00:03:25,640 If you compare the science to the medication, quote, unquote, that I took while performing, 67 00:03:25,820 --> 00:03:26,440 not performing. 68 00:03:26,460 --> 00:03:30,520 Not performing the talk but writing it, you'll see there was a lot more medication involved. 69 00:03:31,100 --> 00:03:33,760 But don't worry because there's a little bit more science now. 70 00:03:34,180 --> 00:03:38,200 So if you were ‑‑ well, you know, technically that counted as medication. 71 00:03:38,500 --> 00:03:39,000 So I'm not sure. 72 00:03:39,140 --> 00:03:40,740 I would probably have to increase the bar a little bit. 73 00:03:41,160 --> 00:03:41,600 Anyway. 74 00:03:41,980 --> 00:03:43,340 So here's the content. 75 00:03:44,360 --> 00:03:48,660 A while back my friend Merlin right here who is sitting in the front stage wrote this really 76 00:03:48,660 --> 00:03:55,340 awesome IRC Python repo bot that basically takes one lines ‑‑ it was a really awesome 77 00:03:55,340 --> 00:03:59,880 exercise in teaching functional programming, and it's a whole lot of fun to mess with. 78 00:04:00,140 --> 00:04:05,200 You don't even really have to ‑‑ or it's ‑‑ you can just add function after function 79 00:04:05,200 --> 00:04:05,800 after function. 80 00:04:05,980 --> 00:04:08,600 This is actually a combination of all sorts of different functions here. 81 00:04:08,840 --> 00:04:13,720 And all it really is is just me on IRC doing a rainbow sine wave that says just wagging 82 00:04:13,720 --> 00:04:14,180 my dick. 83 00:04:15,980 --> 00:04:20,440 And it's one of the silliest things you can do, but, I mean, look at that. 84 00:04:20,560 --> 00:04:24,040 It's a really awesome rainbow sine wave of just wagging my dick. 85 00:04:24,040 --> 00:04:26,160 And it's just beautiful. 86 00:04:26,440 --> 00:04:30,740 And for some reason I thought, hey, what if I applied this to binary obfuscation? 87 00:04:31,040 --> 00:04:36,700 I have no idea why I came to that conclusion, but it turned out awesome nonetheless. 88 00:04:37,640 --> 00:04:41,520 So I'm going to cover a few basics here before continuing. 89 00:04:42,780 --> 00:04:43,680 Just a second. 90 00:04:43,720 --> 00:04:44,180 I need some water. 91 00:04:53,860 --> 00:04:58,340 So F of X formulas are actually, you know, very simple in their concept. 92 00:04:58,620 --> 00:05:01,420 I mean, you have ‑‑ they work exactly like regular functions. 93 00:05:01,760 --> 00:05:08,920 You got your X, and then you got your input, and you get X times 7, so you get whatever 94 00:05:08,920 --> 00:05:11,160 X was times 7 equals your value. 95 00:05:11,420 --> 00:05:13,580 You know, in Python you can make a lambda function. 96 00:05:13,580 --> 00:05:14,980 Lambda X, X times 7. 97 00:05:15,220 --> 00:05:18,540 If you want to do Java, I'm sorry, I really don't think you should do that. 98 00:05:19,920 --> 00:05:23,760 And you know, mathematical functions can get a whole lot more complicated than just 99 00:05:23,760 --> 00:05:24,140 this. 100 00:05:24,400 --> 00:05:27,640 I mean, they can do ‑‑ there's like integrals and shit. 101 00:05:27,800 --> 00:05:28,660 How do they work? 102 00:05:29,080 --> 00:05:29,340 You know? 103 00:05:29,580 --> 00:05:34,360 So there's all sorts of shit you can do there, and they can get a whole lot more complicated, 104 00:05:34,480 --> 00:05:36,360 but this is ‑‑ it's a very basic concept. 105 00:05:37,960 --> 00:05:43,560 As far as assembly is concerned, you have your jump and cross. 106 00:05:43,580 --> 00:05:43,940 Call instructions. 107 00:05:44,340 --> 00:05:50,800 But when you see them in a debugger specifically, they don't ‑‑ they look like ‑‑ it's 108 00:05:50,800 --> 00:05:56,180 like jump 0040100, at least that's what it looks like in the debugger, but if you look 109 00:05:56,180 --> 00:06:01,360 at the actual instruction, it's an offset that goes from, you know, 5 to 10 or whatever 110 00:06:01,360 --> 00:06:02,400 the hell you want it to be. 111 00:06:02,720 --> 00:06:06,760 Call is the exact same way, but it pushes a whole bunch of stuff onto your stack. 112 00:06:08,560 --> 00:06:13,500 Except for the fact when you have, like, jump EAX or jump dereference EAX or things like 113 00:06:13,500 --> 00:06:20,000 that, that is actually a specific call to an address, and usually you don't have the 114 00:06:20,000 --> 00:06:25,340 ability to determine what's in EAX just specifically from doing disassembly or anything like that. 115 00:06:25,640 --> 00:06:26,760 This will come up later. 116 00:06:27,480 --> 00:06:30,560 It can be an issue, so you have to be aware of it. 117 00:06:31,220 --> 00:06:33,260 So let's talk about jump short for a bit. 118 00:06:36,920 --> 00:06:41,140 So jump short ‑‑ see, now you're starting to figure it out. 119 00:06:41,160 --> 00:06:41,480 Thank you. 120 00:06:42,080 --> 00:06:42,560 Okay. 121 00:06:42,560 --> 00:06:49,360 So jump short is a special jump instruction in the X86 architecture that allows you to 122 00:06:49,360 --> 00:06:55,200 have a single byte offset instead of a four byte offset, which reduces a lot of space. 123 00:06:55,680 --> 00:07:00,140 This is going to be significant again later on because of all the manipulation that's 124 00:07:00,140 --> 00:07:02,140 going to be happening with the individual instructions. 125 00:07:02,640 --> 00:07:07,260 So it's important to keep in mind that, you know, a jump short only has a range of about 126 00:07:07,260 --> 00:07:10,300 256 signed. 127 00:07:10,300 --> 00:07:14,620 I can't even remember how big the number is for a four byte number, and don't even get 128 00:07:14,620 --> 00:07:15,800 me started on 64 bit. 129 00:07:16,780 --> 00:07:21,880 There's no such thing as call short, and jump short and call short, who knows? 130 00:07:23,480 --> 00:07:25,620 So here's some computer science witchcraft. 131 00:07:25,900 --> 00:07:30,700 In the middle of making these slides, I realized that, you know, you can actually define the 132 00:07:30,700 --> 00:07:33,180 assembly as null space. 133 00:07:33,560 --> 00:07:39,840 If you look in between the individual instructions, it's actually ‑‑ every ‑‑ every 134 00:07:39,840 --> 00:07:42,120 instruction is executed one after another. 135 00:07:42,420 --> 00:07:46,580 And you can technically interpret this as an unconditional jump to the next instruction. 136 00:07:46,880 --> 00:07:53,060 So if we assume that after every instruction, there's an unconditional jump so long as the 137 00:07:53,060 --> 00:07:59,000 control flow of the instruction doesn't necessarily change, then we can assume that there is an 138 00:07:59,000 --> 00:08:00,580 unconditional jump between every instruction. 139 00:08:01,780 --> 00:08:06,480 So if you look at this ‑‑ at this assembly, for example. 140 00:08:09,400 --> 00:08:13,620 You'll see that, you know, we just have a very basic thing. 141 00:08:13,740 --> 00:08:16,080 I encourage you to decode the ASCII, by the way. 142 00:08:17,140 --> 00:08:21,220 So this is ‑‑ basically this is just a regular set of instructions. 143 00:08:21,740 --> 00:08:28,080 The jump zeros you see here in the middle are essentially the unconditional jumps you 144 00:08:28,080 --> 00:08:28,720 don't really see. 145 00:08:29,860 --> 00:08:32,540 They go from the instruction one after another. 146 00:08:32,780 --> 00:08:34,500 So that's essentially what's going on there. 147 00:08:34,500 --> 00:08:41,500 So it's therefore possible to place every single assembly instruction in anywhere you 148 00:08:41,500 --> 00:08:48,760 want, but only if every instruction is followed by an unconditional jump, because if you're 149 00:08:48,760 --> 00:08:54,780 transposing the assembly and you need to maintain the same code as before, then you're 150 00:08:54,780 --> 00:08:57,560 going to have to attach an unconditional jump to every single instruction. 151 00:08:58,020 --> 00:09:01,380 So let's see here. 152 00:09:02,600 --> 00:09:03,280 Okay. 153 00:09:06,040 --> 00:09:09,700 As far as one‑dimensional arrays are concerned, because we're going to be drawing on a grid, 154 00:09:10,080 --> 00:09:14,960 you can technically interpret a one‑dimensional grid as a two‑dimensional ‑‑ or a one‑dimensional 155 00:09:14,960 --> 00:09:15,680 array, I'm sorry. 156 00:09:15,940 --> 00:09:18,060 A one‑dimensional array is a two‑dimensional array. 157 00:09:18,320 --> 00:09:19,480 It just requires a little math. 158 00:09:19,700 --> 00:09:22,180 You have to multiply by the row or something like that. 159 00:09:22,320 --> 00:09:25,180 I can't remember exactly, but it's not that hard to figure out. 160 00:09:25,540 --> 00:09:29,480 So this gives us the ability to interpret an array as an XY grid. 161 00:09:29,760 --> 00:09:34,440 So if we have the assembly instructions that have unconditional jumps that can be linked, 162 00:09:34,500 --> 00:09:40,280 one to another, we can technically draw the instructions on an XY grid and then apply 163 00:09:40,280 --> 00:09:44,880 an unconditional jump after every single instruction in order to maintain the same code flow. 164 00:09:45,220 --> 00:09:46,460 And this is pretty fucking cool. 165 00:09:47,420 --> 00:09:51,100 So in order to actually accomplish this, you have to follow a few steps. 166 00:09:51,340 --> 00:09:54,640 First you need to disassemble every instruction, because obviously you're trying to figure 167 00:09:54,640 --> 00:09:55,440 out what your code is. 168 00:09:56,160 --> 00:10:01,560 Then you allocate space and memory a whole lot larger, or at least ‑‑ at least I 169 00:10:01,560 --> 00:10:04,420 preferred like ten times or something like that than the original code. 170 00:10:04,500 --> 00:10:10,260 So this way ‑‑ this way you have a whole lot of room to mess with, because this gives 171 00:10:10,260 --> 00:10:14,200 you the ability to do all sorts of different shapes and sizes and whatever the hell you 172 00:10:14,200 --> 00:10:14,440 want. 173 00:10:14,560 --> 00:10:15,400 It gives you a lot more room. 174 00:10:16,220 --> 00:10:19,160 So ‑‑ and for every instruction, you want to turn the FX value. 175 00:10:19,500 --> 00:10:23,820 And once you do that, you place the instruction at the corresponding XY location. 176 00:10:24,500 --> 00:10:26,940 And then you join the instruction with an unconditional jump. 177 00:10:27,020 --> 00:10:28,960 Then you mark the memory as executable and you run that. 178 00:10:30,300 --> 00:10:34,020 But unfortunately, there are a lot of issues that you're going to contend with. 179 00:10:36,100 --> 00:10:37,800 Like the 6,000‑year‑old earth. 180 00:10:39,080 --> 00:10:41,220 So like gravity, it only works in theory. 181 00:10:41,740 --> 00:10:47,240 In practice, it's not exactly going to work, because there's all sorts of different shit 182 00:10:47,240 --> 00:10:49,620 to deal with, because x86 is just a cluster fuck. 183 00:10:50,640 --> 00:10:52,920 All your jump instructions, fucked. 184 00:10:53,160 --> 00:10:54,620 Your call instructions are fucked. 185 00:10:55,840 --> 00:10:57,040 Self‑referential code is fucked. 186 00:10:57,660 --> 00:11:02,720 Any code that relies on iteration individually manipulate the code you're doing, you don't 187 00:11:02,720 --> 00:11:03,460 even think about it. 188 00:11:03,460 --> 00:11:05,180 So let's start with jump instructions. 189 00:11:07,060 --> 00:11:12,900 Since jump instructions are offsets, when they wind up placed in a different location 190 00:11:12,900 --> 00:11:17,300 than they were originally, you're not going to point to wherever you thought they were. 191 00:11:17,660 --> 00:11:20,240 Because again, like I said earlier, they're offsets. 192 00:11:20,320 --> 00:11:24,520 So if you have a jump instruction right here and it says, hey, I'm pointing five bytes 193 00:11:24,520 --> 00:11:24,960 over here. 194 00:11:25,060 --> 00:11:25,620 That's a jump short. 195 00:11:25,800 --> 00:11:26,600 And then you move it over here. 196 00:11:26,780 --> 00:11:30,320 It says, hey, I'm pointing five ‑‑ hey, wait, where did it go? 197 00:11:31,320 --> 00:11:33,000 So you're going to have an issue there. 198 00:11:33,000 --> 00:11:35,300 So short jumps are in a similar situation. 199 00:11:35,900 --> 00:11:39,400 You may as well just completely ignore short jumps when you're dealing with this, unless 200 00:11:39,400 --> 00:11:44,500 ‑‑ it's just not even worth it, because there's going to be a long distance, because 201 00:11:44,500 --> 00:11:48,060 of the ‑‑ especially if you're doing a ‑‑ if you're dealing with a single 202 00:11:48,060 --> 00:11:55,420 dimensional array, there's going to be a lot of issues with ‑‑ there's going to 203 00:11:55,420 --> 00:11:58,460 be a lot of issues with the jump shorts, because it's going to be a lot longer than 204 00:11:58,460 --> 00:11:59,060 you think it is. 205 00:12:00,620 --> 00:12:02,080 Short jumps are easily fixed. 206 00:12:02,080 --> 00:12:06,120 Because all you really have to do is convert them to long jumps, but then after you convert 207 00:12:06,120 --> 00:12:08,520 them to long jumps, you have to figure out what the new offsets are. 208 00:12:10,000 --> 00:12:14,420 Dealing with register‑based jumps, like I said earlier, that's just going to be a 209 00:12:14,420 --> 00:12:20,420 whole pain in the ass, because automatically determining where every register is is going 210 00:12:20,420 --> 00:12:27,300 to rely on a lot of compiler ‑‑ knowledge of compiler theory and determining whether 211 00:12:27,300 --> 00:12:30,120 or not ‑‑ or determining what the register is. 212 00:12:30,740 --> 00:12:32,060 Just from reading the code a little bit. 213 00:12:34,300 --> 00:12:34,760 It's just not worth it. 214 00:12:34,760 --> 00:12:41,820 It can be a function pointer or a class function pointer or something like that. 215 00:12:42,180 --> 00:12:47,560 Unless you're going to want to do a whole bunch of extra work, it's really not worth 216 00:12:47,560 --> 00:12:47,780 it. 217 00:12:47,860 --> 00:12:48,820 You may as well just ignore it. 218 00:12:50,360 --> 00:12:55,000 F of X formulas, when you actually write them, it's not really as elegant as it is on paper. 219 00:12:56,020 --> 00:12:57,560 If you want to 220 00:12:57,560 --> 00:13:02,040 ‑‑ if you want to do it right, or at least, have it go to the right place or the best, 221 00:13:02,040 --> 00:13:06,600 do it well, it's going to require a lot of work because you'll have to do function pointers 222 00:13:06,600 --> 00:13:11,420 for your constants. No, not function pointers for your constants, but you'll have to deal 223 00:13:11,420 --> 00:13:16,940 with the voodoo of C and C++ in order to figure out your class pointers and things like that. 224 00:13:17,080 --> 00:13:24,340 Why do I keep saying class pointers? So here's how you deal with it. At disassembly you want 225 00:13:24,340 --> 00:13:28,140 to convert all your jump shorts to jump pants before storing them away. Like I said earlier, 226 00:13:28,280 --> 00:13:31,780 it will make things a whole lot easier for you because you're just dealing with the offsets 227 00:13:31,780 --> 00:13:38,100 and it's very simple. The actual offsets are going to be a huge pain in the ass, though. 228 00:13:38,220 --> 00:13:43,320 Every instruction that you detect that has an offset, it needs to be recalculated. This 229 00:13:43,320 --> 00:13:47,220 means that you need to keep track of both the instructions and where they're going to 230 00:13:47,220 --> 00:13:53,960 be placed as well as the targets that they're going to be. So you have to track the instruction 231 00:13:53,960 --> 00:13:59,480 that they're pointing at as well as the individual instruction. And they would probably take 232 00:13:59,480 --> 00:14:01,760 me way too long to actually explain how this works. 233 00:14:01,760 --> 00:14:05,300 And I don't know how to do it verbosely. So the source code that was supplied with 234 00:14:05,300 --> 00:14:10,360 the DEF CON CD is basically an implementation that I'm going to demonstrate on stage. So 235 00:14:10,360 --> 00:14:13,080 I would suggest that you look at that to figure out how I did it there. 236 00:14:14,340 --> 00:14:18,280 After all the instructions are replaced, you're going to want to replace the old offsets with 237 00:14:18,280 --> 00:14:23,700 the new offsets. Duh. Assuming you didn't fuck up the offsets. It's that simple. 238 00:14:24,820 --> 00:14:30,940 So now that we have all the caveats out of the way, let's go with a more realistic implementation. 239 00:14:30,980 --> 00:14:31,740 It's something like this. 240 00:14:31,760 --> 00:14:37,980 So first you disassemble the instructions. Then you prepare your buffer. Then you initialize 241 00:14:37,980 --> 00:14:42,280 the formula constants that you have. And then after that, you're going to want to iterate 242 00:14:42,280 --> 00:14:51,280 over the F of X values, determine the data pointers. And you're going to be wanting to 243 00:14:51,280 --> 00:14:55,220 track all the potentially messed up instructions that you're going to be disassembling. Then 244 00:14:55,220 --> 00:14:59,920 after that, once you've dealt with all that, write the instructions to the corresponding 245 00:14:59,920 --> 00:15:01,740 pointers that you've created. And then you're going to want to go back to the old offsets. 246 00:15:01,740 --> 00:15:04,840 Then you're going to want to repair all your conditional jumps, mark the new section 247 00:15:04,840 --> 00:15:09,380 of memory as executable. Then you run it. And assuming that everything worked out fine 248 00:15:09,380 --> 00:15:14,220 and everything is pointing at the right place, weird things happen when this gets all messed 249 00:15:14,220 --> 00:15:19,960 up. So, yeah. It's just a lot of messed up instructions and bad pointers, and you're 250 00:15:19,960 --> 00:15:25,780 jumping into really weird locations in memory. So once it all works, you run it. It's pretty 251 00:15:25,780 --> 00:15:31,720 awesome, isn't it? So why does this really matter? Is this really just a trick? Is this 252 00:15:31,720 --> 00:15:36,520 a trick and pony show, or is it doing anything? Like, does this actually do anything useful, 253 00:15:36,660 --> 00:15:42,240 or does it just look pretty? So the actual utility of this is that once you isolate 254 00:15:42,240 --> 00:15:47,580 the assembly instructions and the ‑‑ once you actually isolate the assembly instructions, 255 00:15:47,900 --> 00:15:53,740 we can put the individual assembly instructions anywhere we want, simply based on a formula 256 00:15:54,020 --> 00:15:57,900 rather than having to write an entire function that will likely be fingerprinted by AV or 257 00:15:57,900 --> 00:15:58,700 something like that. 258 00:15:59,020 --> 00:16:00,500 And just be able to ‑‑ 259 00:16:01,720 --> 00:16:05,500 whole series of mathematical functions that will just draw a whole bunch of ‑‑ will 260 00:16:05,500 --> 00:16:13,460 draw a whole bunch of assembly onto the code ‑‑ onto the code into memory. So in order 261 00:16:13,460 --> 00:16:17,880 to obfuscate the clarity of the code path, all you really need to do is make a bunch 262 00:16:17,880 --> 00:16:22,160 of functions, maybe select them at random, maybe select them, you know, iteratively or 263 00:16:22,160 --> 00:16:25,660 something like that, or just, you know, determine based on, you know, who you're attacking or 264 00:16:25,660 --> 00:16:29,460 something like that, generate a random mathematical thing, and you can do all sorts of stuff. 265 00:16:31,720 --> 00:16:36,140 If you want to perform various polymorphic techniques, you can also use this mathematical 266 00:16:36,140 --> 00:16:42,440 form to do that as well. So instead of having to write code that manipulates ‑‑ like 267 00:16:42,440 --> 00:16:46,300 I was saying, that manipulates your code in a specific way, every time, you can write 268 00:16:46,300 --> 00:16:52,340 just completely random functions that decide to ‑‑ yeah, you can write a series of 269 00:16:52,340 --> 00:16:56,300 functions and then just have those functions specifically ‑‑ yup, the alcohol's really 270 00:16:56,300 --> 00:16:57,220 hitting me now! Wow! 271 00:17:01,260 --> 00:17:01,700 Okay. 272 00:17:16,160 --> 00:17:17,860 The audience commands it. 273 00:17:18,760 --> 00:17:21,440 So instead of writing code, I already said all that. 274 00:17:22,400 --> 00:17:28,000 And remember that anti‑reversing isn't specifically about just, you know, finding the really 275 00:17:28,000 --> 00:17:30,160 cool anti‑debug techniques. 276 00:17:30,760 --> 00:17:32,720 It's really not about doing all of that. 277 00:17:32,840 --> 00:17:38,480 I mean, sure, you could do a really awesome thing, break out of IDA, spawn last measure 278 00:17:38,480 --> 00:17:43,720 everywhere, and completely fuck with the reverse engineer, but at the end of the day, you know, 279 00:17:43,760 --> 00:17:47,100 it's really about just being a complete dick to the reverser. 280 00:17:47,260 --> 00:17:51,520 Because if you're a complete dick to the reverser, he's just going to get pissed off and say, 281 00:17:51,600 --> 00:17:52,520 you know, fuck this malware. 282 00:17:53,460 --> 00:17:54,460 And just walk away. 283 00:17:54,720 --> 00:17:58,140 And meanwhile you'll be able to sell all your bots to the Russian business network, no problem. 284 00:17:58,340 --> 00:18:00,140 Because you're just pissing off every reverse engineer. 285 00:18:00,140 --> 00:18:02,640 They don't know how to Google for shit. 286 00:18:02,860 --> 00:18:06,180 They don't know what the hell you're doing because your code is all fucking messed up. 287 00:18:06,640 --> 00:18:09,480 And it's just ‑‑ you know, they're just getting pissed off. 288 00:18:09,720 --> 00:18:11,680 It's a game of psychology, really. 289 00:18:11,920 --> 00:18:17,200 So if you're extremely creative and can figure all sorts of just different things to do out, 290 00:18:18,240 --> 00:18:21,400 then you're going to be a really awesome anti‑reverser. 291 00:18:21,560 --> 00:18:25,140 Because it's really about just completely fucking with people. 292 00:18:25,640 --> 00:18:27,600 That's all anti‑reversing really is. 293 00:18:27,680 --> 00:18:30,120 Sure, it's ‑‑ you know, it's ‑‑ there's a technical problem. 294 00:18:30,120 --> 00:18:31,280 There's a technical aspect to it as well. 295 00:18:33,000 --> 00:18:36,320 But you know, you're really just trying to get them away from your code. 296 00:18:36,520 --> 00:18:37,580 That's all it really is. 297 00:18:38,900 --> 00:18:40,420 So here's what I'm going to do. 298 00:18:43,760 --> 00:18:48,420 I'm going to take the obfuscation function and I'm going to obfuscate it. 299 00:18:48,580 --> 00:18:51,860 Then I'm going to take the obfuscated version of the obfuscated function and I'm going to 300 00:18:51,860 --> 00:18:53,180 obfuscate the obfuscator again. 301 00:18:53,920 --> 00:18:55,320 So let's pull up the code. 302 00:18:57,040 --> 00:18:57,600 All right. 303 00:18:57,660 --> 00:19:00,100 So here is math troll.com. 304 00:19:00,120 --> 00:19:02,680 It essentially contains my sine wave example. 305 00:19:03,880 --> 00:19:05,340 You can see ‑‑ let's see. 306 00:19:07,900 --> 00:19:08,960 Obfuscate by formula. 307 00:19:14,640 --> 00:19:17,060 So here is obfuscate by formula. 308 00:19:17,400 --> 00:19:19,820 And you can see the assembly instructions here. 309 00:19:20,040 --> 00:19:23,600 They're all in working order and they're doing their thing. 310 00:19:23,960 --> 00:19:26,460 If you look at the code, it won't help you. 311 00:19:27,720 --> 00:19:29,380 This is just the assembly instructions. 312 00:19:30,120 --> 00:19:30,720 Everything that's been compiled. 313 00:19:30,960 --> 00:19:32,480 And you'll notice that I use C++. 314 00:19:32,800 --> 00:19:33,640 I'm very sorry. 315 00:19:33,880 --> 00:19:36,840 I try to avoid C++ as much as possible. 316 00:19:39,940 --> 00:19:41,240 So let's see here. 317 00:19:41,320 --> 00:19:42,340 Where did I put that break point? 318 00:19:42,740 --> 00:19:47,280 Right here is where the actual ‑‑ this is where the obfuscated function is. 319 00:19:47,440 --> 00:19:52,960 So once it gets here, it actually ‑‑ this is going to be the obfuscated function now. 320 00:19:53,560 --> 00:19:56,880 So as you can see, the jump instructions have been applied. 321 00:19:57,120 --> 00:19:59,560 There's a whole bunch of just different stuff in this buffer. 322 00:20:00,120 --> 00:20:02,700 It makes it look a whole lot more obfuscated than it really is. 323 00:20:03,820 --> 00:20:07,820 And it goes to each and every individual instruction just perfectly fine. 324 00:20:08,960 --> 00:20:12,120 And it's ‑‑ I'll show you the shape in just a moment. 325 00:20:13,080 --> 00:20:16,300 This is just arbitrarily ‑‑ I can just hold F8 the whole time or actually I can just 326 00:20:16,300 --> 00:20:17,620 run it and it will still be fine. 327 00:20:18,320 --> 00:20:20,080 There it goes all the way to the end. 328 00:20:20,280 --> 00:20:26,220 So the code is still fine and it's now ‑‑ and there's a bunch of different jump instructions 329 00:20:26,220 --> 00:20:26,520 there. 330 00:20:26,760 --> 00:20:30,060 So it ‑‑ it looks messed up. 331 00:20:30,060 --> 00:20:32,560 But I'll explain why it's not that messed up in a moment. 332 00:20:33,020 --> 00:20:35,220 Here's a ‑‑ oh, oops, wrong direction. 333 00:20:36,120 --> 00:20:39,780 Here's a visual representation of what the stack looks like. 334 00:20:40,160 --> 00:20:46,620 Every time this happens, I generate a random sine wave formula that will arbitrarily, you 335 00:20:46,620 --> 00:20:48,460 know, make a bunch of different shapes. 336 00:20:48,580 --> 00:20:50,780 But this is the coolest one of the batch. 337 00:20:50,940 --> 00:20:52,000 So I decided to put this up. 338 00:20:53,040 --> 00:21:00,040 I believe the code starts about ‑‑ can you see my mouse? 339 00:21:00,060 --> 00:21:00,300 Yeah. 340 00:21:00,420 --> 00:21:01,820 I think it starts about here. 341 00:21:01,980 --> 00:21:03,020 I can't remember exactly. 342 00:21:03,460 --> 00:21:05,660 But it wraps around and keeps going. 343 00:21:05,860 --> 00:21:08,380 And this is basically what you're seeing is the actual code flow. 344 00:21:08,540 --> 00:21:12,460 So it goes all the way ‑‑ you know, it just does a cool sine wave. 345 00:21:12,580 --> 00:21:14,320 But I mean, it's not just sine waves. 346 00:21:14,380 --> 00:21:15,700 You can also do spirals, too. 347 00:21:16,300 --> 00:21:21,700 So you can ‑‑ and these are really the only two formulas that I included on the 348 00:21:21,700 --> 00:21:21,940 source. 349 00:21:22,240 --> 00:21:25,540 Like I said, you can do a whole lot of other creative stuff that you want to. 350 00:21:25,940 --> 00:21:29,780 And this is ‑‑ what this is essentially is just a diff. 351 00:21:30,060 --> 00:21:35,460 From the initial buffer and the finished buffer, and it actually just looks exactly 352 00:21:35,460 --> 00:21:35,980 like that. 353 00:21:36,200 --> 00:21:38,380 And it looks pretty cool to me. 354 00:21:38,840 --> 00:21:43,300 But you know, the issue is that you're using unconditional jumps. 355 00:21:43,640 --> 00:21:45,420 So ‑‑ and that's really bad. 356 00:21:45,820 --> 00:21:49,960 Because if you use unconditional jumps, like I said, you're just ‑‑ the code flow 357 00:21:50,430 --> 00:21:52,380 is still exactly the same. 358 00:21:52,640 --> 00:21:55,600 Because the unconditional jumps were there to begin with. 359 00:21:55,880 --> 00:22:00,020 So if you have the unconditional jumps there, all you really need to do is go. 360 00:22:00,020 --> 00:22:04,120 Go from the entry point to the end and get rid of the jump instructions. 361 00:22:04,440 --> 00:22:06,860 All you have to do is read those instructions and boom, there you go. 362 00:22:06,920 --> 00:22:07,460 You got your code. 363 00:22:07,600 --> 00:22:08,820 And it's completely unobfuscated. 364 00:22:10,560 --> 00:22:12,080 So how do you deal with this? 365 00:22:12,360 --> 00:22:17,440 Well, the inverse of an unconditional jump is a conditional jump, which goes in two directions, 366 00:22:17,600 --> 00:22:18,540 which makes it more awesome. 367 00:22:18,680 --> 00:22:21,140 In fact, you could say it's 50% more awesome. 368 00:22:23,120 --> 00:22:28,560 So if we ‑‑ but that provides a very interesting dichotomy. 369 00:22:28,740 --> 00:22:29,140 Because ‑‑. 370 00:22:30,020 --> 00:22:33,780 Well, if we need conditional jumps but we also need unconditional jumps, what the fuck 371 00:22:33,780 --> 00:22:34,320 do we do? 372 00:22:34,760 --> 00:22:37,160 So that's what opaque predicates are for. 373 00:22:37,480 --> 00:22:45,640 So for those who don't know, an opaque predicate is essentially a Boolean statement that always 374 00:22:45,640 --> 00:22:48,080 evaluates to a specific version no matter what. 375 00:22:49,640 --> 00:22:53,480 So let's consider the null space expansion I talked about earlier. 376 00:22:53,740 --> 00:22:57,480 If you have a set of instructions and they have unconditional jumps between every instruction, 377 00:22:57,700 --> 00:22:59,160 it also follows that ‑‑. 378 00:22:59,480 --> 00:23:00,000 Okay. 379 00:23:00,020 --> 00:23:03,160 If you have a set of instructions which don't have a direct effect on the assembly, 380 00:23:03,380 --> 00:23:04,400 can be applied. 381 00:23:04,680 --> 00:23:09,800 For example, as long as you write very specific instructions that don't modify the underlying 382 00:23:09,800 --> 00:23:14,720 assembly of what you're trying to obfuscate, like ‑‑ if you're trying not to mess 383 00:23:14,720 --> 00:23:21,380 with registers, then as long as you maintain the state of every assembly instruction, then 384 00:23:21,380 --> 00:23:21,860 you're good to go. 385 00:23:22,040 --> 00:23:23,100 And this is pretty awesome, too. 386 00:23:24,000 --> 00:23:29,600 So you can consider every assembly instruction to be able to be wrapped like this. 387 00:23:29,600 --> 00:23:33,060 You have your preamble, your assembly data, and then your postscript. 388 00:23:33,380 --> 00:23:38,380 And the preamble is essentially what comes before the assembly instruction, and the postscript 389 00:23:38,380 --> 00:23:40,300 is obviously what comes after it. 390 00:23:40,500 --> 00:23:45,400 So the preamble section is typically used for two things, or it can be used for two 391 00:23:45,400 --> 00:23:45,640 things. 392 00:23:45,800 --> 00:23:51,600 You can repair the after effects of the previous preamble of the past opaque predicate. 393 00:23:52,380 --> 00:23:55,540 The anti‑debug code chunks can go in there, too. 394 00:23:56,240 --> 00:23:59,040 But it ‑‑ the preamble is very limited. 395 00:23:59,040 --> 00:24:00,420 Because you can't really do that much. 396 00:24:00,580 --> 00:24:05,280 The postscript you can do a whole lot more with, because it's actually going into the 397 00:24:05,280 --> 00:24:07,840 next instruction, so you don't have to really worry about it that much. 398 00:24:08,080 --> 00:24:10,540 So you can do a whole bunch of other stuff, as well. 399 00:24:11,560 --> 00:24:13,300 So what can this section be used for? 400 00:24:13,440 --> 00:24:17,180 You can put opaque predicates and obfuscated jumps to link to the very next section. 401 00:24:18,500 --> 00:24:20,000 Anti‑debug, you can also stick in here, too. 402 00:24:20,200 --> 00:24:22,520 General code flow obfuscation, that sort of stuff. 403 00:24:22,680 --> 00:24:23,020 Encryption. 404 00:24:23,240 --> 00:24:27,800 One of the things that I think would be ‑‑ is really cool is that actually I'm working 405 00:24:27,800 --> 00:24:28,420 on it right now. 406 00:24:29,040 --> 00:24:35,340 Is being able to encrypt and decrypt every single instruction so that as every instruction 407 00:24:35,340 --> 00:24:39,360 is executed, it decrypts the next section and decrypts the next section and decrypts 408 00:24:39,360 --> 00:24:39,940 the next section. 409 00:24:40,120 --> 00:24:42,360 Oh, by the way, here's a bunch of anti‑debug in the preamble. 410 00:24:42,520 --> 00:24:43,880 I guess you don't get the rest of the code. 411 00:24:44,540 --> 00:24:46,520 And there's all sorts of other stuff you can do with that, too. 412 00:24:46,940 --> 00:24:48,620 So here's a great example of this. 413 00:24:55,740 --> 00:24:57,760 In green, we have our preamble data. 414 00:24:57,760 --> 00:25:06,780 And a very generic call to is debugger present, which, you know, all it does is once it figures 415 00:25:06,780 --> 00:25:11,120 out that there's a debugger, it gives you the finger and jumps to some random code section 416 00:25:11,120 --> 00:25:14,560 that will probably spawn last measure or something awesome like that. 417 00:25:14,620 --> 00:25:15,000 Who knows? 418 00:25:15,420 --> 00:25:19,660 And we have a very simple opaque predicate here at the bottom. 419 00:25:20,180 --> 00:25:27,320 You maintain the value of EAX in the post script of the top instruction. 420 00:25:27,760 --> 00:25:32,600 Zor it so that JZ thinks, oh, well, I obviously can go either left or right. 421 00:25:32,720 --> 00:25:34,380 I think I'll go right because it's zero. 422 00:25:34,660 --> 00:25:38,880 And then you pop EAX and you get your EAX back and the next instruction isn't modified 423 00:25:38,880 --> 00:25:39,360 at all. 424 00:25:39,560 --> 00:25:42,060 Then you got the next instruction, et cetera, et cetera, et cetera. 425 00:25:43,200 --> 00:25:49,020 So this introduces a whole lot more issues because what you're going to wind up running 426 00:25:49,020 --> 00:25:55,540 into is it's going to be really hard to determine which instructions affect which. 427 00:25:55,540 --> 00:25:58,400 And there's all sorts of other nonsense. 428 00:25:58,820 --> 00:26:03,240 If you have shmoo balls, I highly suggest you throw them at me because I'm going to 429 00:26:03,240 --> 00:26:06,040 be that guy because I didn't finish all of that. 430 00:26:06,460 --> 00:26:09,480 So okay, good, no one has shmoo balls, I'm safe. 431 00:26:10,920 --> 00:26:15,520 Our F of X formulas also don't necessarily need to be iteratively run. 432 00:26:15,720 --> 00:26:18,260 You don't have to do just F1, F2. 433 00:26:18,460 --> 00:26:24,100 If you're clever, you can figure out specifically how many instructions you're going to have 434 00:26:24,100 --> 00:26:24,820 and then. 435 00:26:25,540 --> 00:26:32,300 The instruction is just F of 27, F of 54, F of 9, and that will essentially place your 436 00:26:32,300 --> 00:26:33,440 instructions in random places. 437 00:26:34,120 --> 00:26:43,980 And when you do that, depending on how you wrote your code, that will allow you to ‑‑ that 438 00:26:43,980 --> 00:26:53,120 will essentially allow you to determine ‑‑ man, I shouldn't have had that last shot. 439 00:26:53,240 --> 00:26:53,380 Wow. 440 00:26:55,540 --> 00:26:56,340 All right. 441 00:26:56,580 --> 00:26:56,740 All right. 442 00:26:57,020 --> 00:26:57,500 You ready? 443 00:26:58,040 --> 00:26:58,360 No. 444 00:27:12,060 --> 00:27:14,380 For that long a pause, I kind of deserve it. 445 00:27:14,680 --> 00:27:20,280 So you can essentially just determine it iteratively and it will still link your instructions. 446 00:27:20,600 --> 00:27:22,180 They'll just be completely randomly placed. 447 00:27:23,140 --> 00:27:25,520 So if your code ‑‑ if your code ‑‑ if your code ‑‑ if your code ‑‑ if your 448 00:27:25,540 --> 00:27:29,500 code is generated from a predictable formula, then it also follows that the entry point is 449 00:27:29,500 --> 00:27:29,740 predictable. 450 00:27:30,220 --> 00:27:34,720 So you can take this to one level more before you actually wind up getting to your code. 451 00:27:34,880 --> 00:27:41,180 You can essentially obfuscate the entry point in some way or another, do a whole like 452 00:27:41,180 --> 00:27:44,320 300 assembly instructions that just gets the entry point. 453 00:27:44,580 --> 00:27:46,620 Oh, by the way, here's a little bit of anti‑debug. 454 00:27:46,800 --> 00:27:50,460 Oh, it manipulates the entry point just so much that you can't even run the code. 455 00:27:50,840 --> 00:27:53,140 So there's all sorts of stuff you can do there, too. 456 00:27:53,140 --> 00:27:57,200 So there are various drawbacks to this as well. 457 00:27:58,240 --> 00:28:02,060 So you're ‑‑ yeah, there are various issues that you're going to be still running into 458 00:28:02,060 --> 00:28:03,700 this even though this is pretty cool. 459 00:28:05,020 --> 00:28:08,420 So this technique assumes you have simply compiled code. 460 00:28:08,740 --> 00:28:15,720 So if you've basically compiled it with either GCC or, God forbid, VC++ ‑‑ well, VC++ 461 00:28:15,720 --> 00:28:19,780 is actually pretty cool for a few reasons, but, you know, actually all compilers suck. 462 00:28:19,880 --> 00:28:20,640 What am I talking about? 463 00:28:21,040 --> 00:28:21,560 Anyway. 464 00:28:23,140 --> 00:28:27,680 So if ‑‑ this really assumes that you have simply compiled code because as it's 465 00:28:27,680 --> 00:28:32,020 disassembling the instructions, it's following a very simple path. 466 00:28:32,360 --> 00:28:36,400 So it's not going to assume that there's all sorts of really weird tricks that are 467 00:28:36,400 --> 00:28:36,800 going on. 468 00:28:36,960 --> 00:28:42,420 For example, if you have an opaque predicate that goes off into la la land, then it's going 469 00:28:42,420 --> 00:28:45,540 to fuck up and add those instructions and your code is going to be all messed up. 470 00:28:45,700 --> 00:28:51,880 So if you're trying to obfuscate somewhat obfuscated or manipulated assembly, it's not 471 00:28:51,880 --> 00:28:53,120 going to work out that well for you. 472 00:28:54,260 --> 00:28:59,780 There's also a massive memory footprint because as ‑‑ let me go back to the image to show 473 00:28:59,780 --> 00:29:04,180 you ‑‑ there's a lot of blue space here and there's not a lot of red space. 474 00:29:04,420 --> 00:29:07,820 All the red space is the code, all the blue space is ‑‑ sure, there are things you 475 00:29:07,820 --> 00:29:12,280 can do to make it a whole lot more efficient, but there's obviously a whole lot of extra 476 00:29:12,280 --> 00:29:14,420 space there that's going to be an issue for you. 477 00:29:14,720 --> 00:29:21,060 So it's going to have a massive memory footprint if you want to do it right or, yeah, if you 478 00:29:21,060 --> 00:29:22,520 want to isolate out the instructions. 479 00:29:23,560 --> 00:29:26,180 Yeah, you're dealing with a gigantic data set. 480 00:29:26,360 --> 00:29:29,920 So it gets significantly larger when you obfuscate more than just one function. 481 00:29:30,080 --> 00:29:34,400 So if you have some really awesome packer you downloaded from mal code or something 482 00:29:34,400 --> 00:29:37,420 like that, well, I really hope it's efficient for you. 483 00:29:39,540 --> 00:29:42,660 So function pointers are unpredictably fucked. 484 00:29:42,880 --> 00:29:43,860 Sometimes they're good. 485 00:29:44,140 --> 00:29:45,180 Sometimes they're not. 486 00:29:45,360 --> 00:29:47,400 It really depends on what you're doing. 487 00:29:47,640 --> 00:29:52,500 So it's definitely going to be an issue. 488 00:29:52,520 --> 00:29:58,000 Because you're not going to be able to predict where ‑‑ when a function pointer is accomplished 489 00:29:58,000 --> 00:30:04,420 in assembly, it's usually a register‑based instruction like call EAX, call ECX or an 490 00:30:04,420 --> 00:30:08,180 offset to ECX usually if you're dealing with a C++ class. 491 00:30:08,720 --> 00:30:11,360 So they're going to be broken in some way or another. 492 00:30:11,680 --> 00:30:19,320 So it's the same way with ‑‑ C++ STL is usually okay, but sometimes it will wind 493 00:30:19,320 --> 00:30:19,900 up getting fucked. 494 00:30:20,080 --> 00:30:22,340 So you're going to have to deal with that. 495 00:30:23,540 --> 00:30:29,740 The more clever you get, if you get into the preamble postscript stuff I was talking 496 00:30:29,740 --> 00:30:34,480 about, the more you think about it, the more it gets really complicated because, oh, okay, 497 00:30:34,540 --> 00:30:39,000 I'm going to push this here and this set here and then ‑‑ where's the dragon book? 498 00:30:39,080 --> 00:30:39,780 I need the dragon book. 499 00:30:40,180 --> 00:30:43,400 And it's usually what will ‑‑ 500 00:30:44,640 --> 00:30:45,120 AUDIENCE MEMBER 2. 501 00:30:45,120 --> 00:30:45,980 AUDIENCE MEMBER 3. 502 00:30:47,420 --> 00:30:49,000 AUDIENCE MEMBER 4. 503 00:31:02,180 --> 00:31:03,380 AUDIENCE MEMBER 5. 504 00:31:03,380 --> 00:31:07,400 AUDIENCE MEMBER 6. 505 00:31:07,400 --> 00:31:07,900 AUDIENCE MEMBER 10. 506 00:31:07,900 --> 00:31:07,920 AUDIENCE MEMBER 11. 507 00:31:07,980 --> 00:31:08,780 AUDIENCE MEMBER 16. 508 00:31:09,460 --> 00:31:09,580 AUDIENCE MEMBER 18. 509 00:31:09,580 --> 00:31:09,600 AUDIENCE MEMBER 20. 510 00:31:09,820 --> 00:31:11,620 AUDIENCE MEMBER 22. 511 00:31:11,620 --> 00:31:11,980 AUDIENCE MEMBER 23. 512 00:31:11,980 --> 00:31:12,320 AUDIENCE MEMBER 27. 513 00:31:12,320 --> 00:31:12,700 AUDIENCE MEMBER 28. 514 00:31:13,080 --> 00:31:13,680 AUDIENCE MEMBER 29. 515 00:31:13,720 --> 00:31:14,940 AUDIENCE MEMBER 32. 516 00:31:17,440 --> 00:31:19,380 AUDIENCE MEMBER 33. 517 00:31:21,400 --> 00:31:22,480 AUDIENCE MEMBER 34. 518 00:31:22,480 --> 00:31:26,140 for months and months on end trying to figure out what exactly you're doing. 519 00:31:27,260 --> 00:31:31,480 So I think I'm pretty short on time, but that's essentially the end of it. 520 00:31:31,880 --> 00:31:34,440 I hope you learned something today. 521 00:31:34,640 --> 00:31:37,840 I got really drunk, so I'm not sure exactly what happened. 522 00:31:39,460 --> 00:31:44,640 So if you want to follow me on Twitter, like I said earlier, my Twitter account is FrankSquared. 523 00:31:44,780 --> 00:31:46,700 I have a blog and a website. 524 00:31:46,940 --> 00:31:49,440 If you like ANSI, it's on my website. 525 00:31:49,660 --> 00:31:51,340 So cool. 526 00:31:51,640 --> 00:31:52,240 That's my talk. 527 00:31:52,340 --> 00:31:53,160 Thank you very much for coming.