Advertisement
ColonelRVH

LoopArrayTest

Apr 16th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [ENABLE]
  2.  
  3. aobscan(Get_Speed_AOB,D9 47 28 DD 5D F0 D9) // should be unique
  4. alloc(newmem,$1000)
  5.  
  6. label(code)
  7. label(return)
  8.  
  9. //label(Multiplier)
  10.  
  11. label(inthelist)
  12. label(endoflist)
  13. label(looper)
  14.  
  15. alloc(Multiplier,4)
  16. alloc(array,2048)
  17.  
  18. Multiplier:
  19. dd (float)5
  20.  
  21. newmem:
  22. code:
  23.  
  24.   push eax
  25.   mov eax,0
  26.  
  27. looper:
  28.   cmp [eax],#512
  29.   jae inthelist
  30.  
  31.   cmp [array+eax*4],edi
  32.   je inthelist
  33.  
  34.   cmp [array+eax*4],0
  35.   je endoflist
  36.  
  37.   inc eax
  38.  
  39.   jmp looper
  40.  
  41. endoflist:
  42.   mov [array+eax*4],edi
  43.  
  44.   fld dword [edi+20]
  45.   fmul dword [Multiplier]
  46.   fstp dword [edi+20]
  47.  
  48.   fld dword [edi+24]
  49.   fmul dword [Multiplier]
  50.   fstp dword [edi+24]
  51.  
  52.   fld dword [edi+28]
  53.   fmul dword [Multiplier]
  54.   fstp dword [edi+28]
  55.  
  56.   fld dword ptr [edi+28]
  57.   fstp qword ptr [ebp-10]
  58.   jmp return
  59.  
  60. inthelist:
  61.   pop eax
  62.   fld dword ptr [edi+28]
  63.   fstp qword ptr [ebp-10]
  64.   jmp return
  65.  
  66. Get_Speed_AOB:
  67.   jmp newmem
  68.   nop
  69. return:
  70. registersymbol(Get_Speed_AOB)
  71.  
  72. [DISABLE]
  73.  
  74. Get_Speed_AOB:
  75.   db D9 47 28 DD 5D F0
  76.  
  77. dealloc(array)
  78. unregistersymbol(Get_Speed_AOB)
  79. dealloc(newmem)
  80. dealloc(Multiplier)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement