Advertisement
namofure

PMDTOKI 0x020A88B8 xorshift32????

Aug 5th, 2024 (edited)
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 1.43 KB | None | 0 0
  1. [0x020A88BC] = 3A4CB60D(rand 0x020A88B8) * 6C078965(0x020434E8) + 1
  2. [0x020A8EEC] = (0x020A8EE8) * 6C078965(0x020434E8) + 18D(#397) ←396回繰り返したやつ
  3. [0x020A88C0 + 4n] = {xor (0x020A88BC + 4n), (0x020A88BC + 4n) lsl 0x1e(#30) + 2 + n}
  4. ------------------------------------------------------------------------------------
  5. :02043514 E59FC10C ldr r12,[r15, #+0x10c]       ;r15+0x10c=*(02043628)=#
  6. 34244792(0x020a88b8)
  7. r12:020A88B8
  8. :02043518 E59F210C ldr r2,[r15, #+0x10c]        ;r15+0x10c=*(0204362c)=#34244784(0x020a88b0)
  9. r2:020A88B0
  10. :0204351C E3A00000 mov  r0,#0x0     ;r0=0(0x0)
  11. r0:0
  12. :02043520 E08C3100 add  r3,r12,r0,lsl #0x2
  13. r3:020A88B8
  14. :02043524 E79C4100 ldr r4,[r12,+r0, lsl #0x2]
  15. r4:3A4CD050 (rand 0x020A88B8) ←RAND(0)
  16. :02043528 E5931004 ldr r1,[r3, #+0x4]       ;r3+0x4=*(020a88bc)=#0(0x00000000)
  17. r1:8DF8FF91(0x020A88BC) ←パラメータ1
  18. :0204352C E2044102 and  r4,r4,#0x80000000
  19. r4:0
  20. :02043530 E3C11102 bic  r1,r1,#0x80000000
  21. r1:0DF8FF91
  22. :02043534 E1844001 orr  r4,r4,r1
  23. r4:0DF8FF91
  24. :02043538 E2041001 and  r1,r4,#0x1
  25. r1:1
  26. :0204353C E5933634 ldr r3,[r3, #+0x634]     ;r3+0x634=*(020a8eec)=#0(0x00000000)
  27. r3:86DDED41(0x020A8EEC) パラメータ2
  28. :02043540 E7921101 ldr r1,[r2,+r1, lsl #0x2]
  29. r1:1 r2:020A88B0
  30. :02043544 E02330A4 eor  r3,r3,r4,lsr #0x1
  31. r3:86DDED41 r4:0DF8FF91
  32. :02043548 E0231001 eor  r1,r3,r1
  33. r1:9908B0DF r3:80219289
  34. :0204354C E78C1100 str r1,[r12,+r0, lsl #0x2]
  35. r1:19292256 r12:020A88B8 xorshift完 r1 ←rand(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement