Guest User

Untitled

a guest
Oct 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.31 KB | None | 0 0
  1. void fun_1800024af() {
  2. goto sqrt;
  3. }
  4.  
  5. void TA_Test2(int32_t* rcx) {
  6. int32_t* rbx2;
  7. int32_t* rsi3;
  8. int32_t* rdi4;
  9. int32_t* rsi5;
  10. struct s14* rsi6;
  11. int32_t* v7;
  12. int32_t* rsi8;
  13.  
  14. *reinterpret_cast<int32_t*>(&rbx2) = 1;
  15. *reinterpret_cast<int32_t*>(reinterpret_cast<int64_t>(&rbx2) + 4) = 0;
  16. if (reinterpret_cast<uint64_t>(rcx) < 1) {
  17. addr_180001110_2:
  18. return;
  19. } else {
  20. __asm__("movaps [rsp+0x20], xmm6");
  21. *rcx = *rsi3;
  22. rdi4 = rcx + 1;
  23. rsi5 = &rsi6->f4;
  24. if (reinterpret_cast<uint64_t>(rcx) >= 8)
  25. goto addr_18000109e_7;
  26. }
  27. addr_1800010e0_8:
  28. if (reinterpret_cast<uint64_t>(rbx2) <= reinterpret_cast<uint64_t>(rdi4)) {
  29. do {
  30. __asm__("xorps xmm0, xmm0");
  31. __asm__("cvtsi2sd xmm0, rbx");
  32. if (reinterpret_cast<int64_t>(rbx2) < reinterpret_cast<int64_t>(0)) {
  33. __asm__("addsd xmm0, xmm6");
  34. }
  35. fun_1800024af();
  36. rbx2 = reinterpret_cast<int32_t*>(reinterpret_cast<uint64_t>(rbx2) + 1);
  37. *rdi4 = *rsi5;
  38. ++rdi4;
  39. ++rsi5;
  40. } while (reinterpret_cast<uint64_t>(rbx2) <= reinterpret_cast<uint64_t>(rdi4));
  41. }
  42. __asm__("movaps xmm6, [rsp+0x20]");
  43. goto addr_180001110_2;
  44. addr_18000109e_7:
  45. v7 = rsi5;
  46. rsi8 = reinterpret_cast<int32_t*>(reinterpret_cast<uint64_t>(rcx) + 0xfffffffffffffff9);
  47. do {
  48. __asm__("xorps xmm0, xmm0");
  49. __asm__("cvtsi2sd xmm0, rax");
  50. if (reinterpret_cast<int64_t>(reinterpret_cast<uint64_t>(rbx2) + 7) < reinterpret_cast<int64_t>(0)) {
  51. __asm__("addsd xmm0, xmm6");
  52. }
  53. fun_1800024af();
  54. rbx2 = rbx2 + 2;
  55. *rdi4 = *rsi8;
  56. ++rdi4;
  57. ++rsi8;
  58. } while (reinterpret_cast<uint64_t>(rbx2) <= reinterpret_cast<uint64_t>(rsi8));
  59. rsi5 = v7;
  60. goto addr_1800010e0_8;
  61. }
  62.  
  63. void TA_Test3(uint64_t rcx) {
  64. uint64_t rax2;
  65. uint64_t rdx3;
  66. int32_t* rdi4;
  67. int32_t* rsi5;
  68. struct s15* rdi6;
  69. struct s16* rdi7;
  70. struct s17* rsi8;
  71. struct s18* rsi9;
  72. struct s19* rdi10;
  73. struct s20* rsi11;
  74. struct s21* rdi12;
  75. struct s22* rsi13;
  76. struct s23* rdi14;
  77. struct s24* rsi15;
  78. struct s25* rdi16;
  79. struct s26* rsi17;
  80. struct s27* rdi18;
  81. struct s28* rsi19;
  82. int32_t* rdi20;
  83. int32_t* rsi21;
  84. int64_t rcx22;
  85. uint64_t r8_23;
  86.  
  87. *reinterpret_cast<int32_t*>(&rax2) = 1;
  88. *reinterpret_cast<int32_t*>(reinterpret_cast<int64_t>(&rax2) + 4) = 0;
  89. rdx3 = rcx;
  90. if (rcx < 1) {
  91. addr_1800012a1_2:
  92. return;
  93. } else {
  94. __asm__("movaps [rsp+0x60], xmm6");
  95. *rdi4 = *rsi5;
  96. rdi6 = reinterpret_cast<struct s15*>(&rdi7->f4);
  97. rsi8 = reinterpret_cast<struct s17*>(&rsi9->f4);
  98. __asm__("movaps [rsp+0x50], xmm7");
  99. rdi6->f0 = rsi8->f0;
  100. rdi10 = reinterpret_cast<struct s19*>(&rdi6->f4);
  101. rsi11 = reinterpret_cast<struct s20*>(&rsi8->f4);
  102. __asm__("movaps [rsp+0x40], xmm8");
  103. rdi10->f0 = rsi11->f0;
  104. rdi12 = reinterpret_cast<struct s21*>(&rdi10->f4);
  105. rsi13 = reinterpret_cast<struct s22*>(&rsi11->f4);
  106. __asm__("movaps [rsp+0x30], xmm9");
  107. rdi12->f0 = rsi13->f0;
  108. rdi14 = reinterpret_cast<struct s23*>(&rdi12->f4);
  109. rsi15 = reinterpret_cast<struct s24*>(&rsi13->f4);
  110. __asm__("movaps [rsp+0x20], xmm10");
  111. rdi14->f0 = rsi15->f0;
  112. rdi16 = reinterpret_cast<struct s25*>(&rdi14->f4);
  113. rsi17 = reinterpret_cast<struct s26*>(&rsi15->f4);
  114. __asm__("movaps [rsp+0x10], xmm11");
  115. rdi16->f0 = rsi17->f0;
  116. rdi18 = reinterpret_cast<struct s27*>(&rdi16->f4);
  117. rsi19 = reinterpret_cast<struct s28*>(&rsi17->f4);
  118. __asm__("movaps [rsp], xmm12");
  119. rdi18->f0 = rsi19->f0;
  120. rdi20 = &rdi18->f4;
  121. rsi21 = &rsi19->f4;
  122. if (rcx >= 8)
  123. goto addr_18000119f_25;
  124. }
  125. addr_180001214_26:
  126. if (rax2 <= rdx3) {
  127. do {
  128. __asm__("xorps xmm3, xmm3");
  129. __asm__("cvtsi2sd xmm3, rax");
  130. if (reinterpret_cast<int64_t>(rax2) < reinterpret_cast<int64_t>(0)) {
  131. __asm__("addsd xmm3, xmm6");
  132. }
  133. __asm__("movaps xmm0, xmm3");
  134. __asm__("movaps xmm2, xmm3");
  135. __asm__("subsd xmm0, xmm11");
  136. __asm__("movaps xmm1, xmm3");
  137. __asm__("addsd xmm2, xmm8");
  138. ++rax2;
  139. __asm__("addsd xmm1, xmm7");
  140. __asm__("mulsd xmm2, xmm0");
  141. __asm__("movaps xmm0, xmm3");
  142. __asm__("subsd xmm0, xmm10");
  143. __asm__("mulsd xmm1, xmm0");
  144. __asm__("movaps xmm0, xmm3");
  145. __asm__("subsd xmm0, xmm12");
  146. __asm__("addsd xmm3, xmm9");
  147. __asm__("addsd xmm2, xmm1");
  148. __asm__("mulsd xmm0, xmm3");
  149. __asm__("addsd xmm2, xmm0");
  150. *rdi20 = *rsi21;
  151. ++rdi20;
  152. ++rsi21;
  153. } while (rax2 <= rdx3);
  154. }
  155. __asm__("movaps xmm11, [rsp+0x10]");
  156. __asm__("movaps xmm10, [rsp+0x20]");
  157. __asm__("movaps xmm9, [rsp+0x30]");
  158. __asm__("movaps xmm8, [rsp+0x40]");
  159. __asm__("movaps xmm7, [rsp+0x50]");
  160. __asm__("movaps xmm6, [rsp+0x60]");
  161. __asm__("movaps xmm12, [rsp]");
  162. goto addr_1800012a1_2;
  163. addr_18000119f_25:
  164. *reinterpret_cast<int32_t*>(&rcx22) = 8;
  165. *reinterpret_cast<int32_t*>(reinterpret_cast<int64_t>(&rcx22) + 4) = 0;
  166. r8_23 = rdx3 >> 3;
  167. rax2 = r8_23 * 8 + 1;
  168. do {
  169. __asm__("xorps xmm5, xmm5");
  170. __asm__("cvtsi2sd xmm5, rcx");
  171. if (rcx22 < 0) {
  172. __asm__("addsd xmm5, xmm6");
  173. }
  174. __asm__("movaps xmm4, xmm5");
  175. __asm__("movaps xmm1, xmm5");
  176. __asm__("movaps xmm0, xmm5");
  177. __asm__("addsd xmm4, xmm7");
  178. __asm__("movaps xmm2, xmm5");
  179. __asm__("addsd xmm1, xmm8");
  180. __asm__("subsd xmm2, xmm11");
  181. __asm__("movaps xmm3, xmm5");
  182. __asm__("subsd xmm0, xmm10");
  183. rcx22 = rcx22 + 8;
  184. __asm__("addsd xmm3, xmm9");
  185. __asm__("subsd xmm5, xmm12");
  186. __asm__("mulsd xmm2, xmm1");
  187. __asm__("mulsd xmm0, xmm4");
  188. __asm__("mulsd xmm5, xmm3");
  189. __asm__("addsd xmm2, xmm0");
  190. __asm__("addsd xmm2, xmm5");
  191. *rdi20 = *rsi21;
  192. ++rdi20;
  193. ++rsi21;
  194. --r8_23;
  195. } while (r8_23);
  196. goto addr_180001214_26;
  197. }
Add Comment
Please, Sign In to add comment