Skip to content

Instantly share code, notes, and snippets.

@bdach

bdach/lazer Secret

Last active January 10, 2024 18:38
Show Gist options
  • Save bdach/dcde58d5a3607b0408faa3aa2b67bf10 to your computer and use it in GitHub Desktop.
Save bdach/dcde58d5a3607b0408faa3aa2b67bf10 to your computer and use it in GitHub Desktop.
00007ffd`087126f9 488b8d08020000 mov rcx, qword ptr [rbp+208h]
00007ffd`08712700 49bbe075de07fd7f0000 mov r11, 7FFD07DE75E0h
00007ffd`0871270a ff15d04e6dff call qword ptr [7FFD07DE75E0h]
00007ffd`08712710 48898538010000 mov qword ptr [rbp+138h], rax
00007ffd`08712717 488b8d38010000 mov rcx, qword ptr [rbp+138h]
00007ffd`0871271e 3909 cmp dword ptr [rcx], ecx
00007ffd`08712720 e8c33e78fd call 00007FFD05E965E8
00007ffd`08712725 c5fa118534010000 vmovss dword ptr [rbp+134h], xmm0
00007ffd`0871272d 488b8d08020000 mov rcx, qword ptr [rbp+208h]
00007ffd`08712734 49bbe875de07fd7f0000 mov r11, 7FFD07DE75E8h
00007ffd`0871273e ff15a44e6dff call qword ptr [7FFD07DE75E8h]
00007ffd`08712744 48898528010000 mov qword ptr [rbp+128h], rax
00007ffd`0871274b 488b8d28010000 mov rcx, qword ptr [rbp+128h]
00007ffd`08712752 3909 cmp dword ptr [rcx], ecx
00007ffd`08712754 e8af3e78fd call 00007FFD05E96608
00007ffd`08712759 c5fa118524010000 vmovss dword ptr [rbp+124h], xmm0
00007ffd`08712761 c5fa108534010000 vmovss xmm0, dword ptr [rbp+134h] % xmm0= 0 0 0 5
00007ffd`08712769 c5fa588524010000 vaddss xmm0, xmm0, dword ptr [rbp+124h] % xmm0= 0 0 0 14.5
00007ffd`08712771 c5fa118520010000 vmovss dword ptr [rbp+120h], xmm0
00007ffd`08712779 488b8d08020000 mov rcx, qword ptr [rbp+208h]
00007ffd`08712780 49bbf075de07fd7f0000 mov r11, 7FFD07DE75F0h
00007ffd`0871278a ff15604e6dff call qword ptr [7FFD07DE75F0h]
00007ffd`08712790 48898518010000 mov qword ptr [rbp+118h], rax
00007ffd`08712797 488b8d18010000 mov rcx, qword ptr [rbp+118h]
00007ffd`0871279e 3909 cmp dword ptr [rcx], ecx
00007ffd`087127a0 e8533e78fd call 00007FFD05E965F8
00007ffd`087127a5 c5fa118514010000 vmovss dword ptr [rbp+114h], xmm0 % xmm0= 0 0 0 3.7
00007ffd`087127ad c5fa108520010000 vmovss xmm0, dword ptr [rbp+120h]
00007ffd`087127b5 c5fa588514010000 vaddss xmm0, xmm0, dword ptr [rbp+114h] % xmm0= 0 0 0 18.2
00007ffd`087127bd c5fa118510010000 vmovss dword ptr [rbp+110h], xmm0
00007ffd`087127c5 c5f857c0 vxorps xmm0, xmm0, xmm0
00007ffd`087127c9 c5fa2a85f8010000 vcvtsi2ss xmm0, xmm0, dword ptr [rbp+1F8h] % xmm0= 0 0 0 1820
00007ffd`087127d1 c5e857d2 vxorps xmm2, xmm2, xmm2
00007ffd`087127d5 c5ea2a95f4010000 vcvtsi2ss xmm2, xmm2, dword ptr [rbp+1F4h] % xmm2= 0 0 0 250
00007ffd`087127dd c5fa5ec2 vdivss xmm0, xmm0, xmm2 % xmm0= 0 0 0 7.28
00007ffd`087127e1 c5fa59050f030000 vmulss xmm0, xmm0, dword ptr [7FFD08712AF8h]% xmm0= 0 0 0 58.24
00007ffd`087127e9 c5fa10150b030000 vmovss xmm2, dword ptr [7FFD08712AFCh]
00007ffd`087127f1 c5f057c9 vxorps xmm1, xmm1, xmm1
00007ffd`087127f5 e8ee2978fd call 00007FFD05E951E8
00007ffd`087127fa c5fa11850c010000 vmovss dword ptr [rbp+10Ch], xmm0 % xmm0= 0 0 0 16
00007ffd`08712802 c5fa108510010000 vmovss xmm0, dword ptr [rbp+110h]
00007ffd`0871280a c5fa58850c010000 vaddss xmm0, xmm0, dword ptr [rbp+10Ch] % xmm0= 0 0 0 34.2
00007ffd`08712812 c5fa5e05e6020000 vdivss xmm0, xmm0, dword ptr [7FFD08712B00h]% xmm0= 0 0 0 0.9
00007ffd`0871281a c5fa5905e2020000 vmulss xmm0, xmm0, dword ptr [7FFD08712B04h]% xmm0= 0 0 0 4.5
% xmm0=00000000 00000000 00000000 40900000
00007ffd`08712822 c5fa5ac0 vcvtss2sd xmm0, xmm0, xmm0 % xmm0= 0 0 2.28125 0
00007ffd`08712826 e84d2678fd call 00007FFD05E94E78
00007ffd`0871282b c5fb118500010000 vmovsd qword ptr [rbp+100h], xmm0
00007ffd`08712833 c5fb2c8d00010000 vcvttsd2si ecx, mmword ptr [rbp+100h] % @rbp+100h = 00 00 00 00 00 00 10 40 = 4d
% ecx=4
00007ffd`0871283b 898df0010000 mov dword ptr [rbp+1F0h], ecx
00007ffd`08712841 c5f857c0 vxorps xmm0, xmm0, xmm0
00007ffd`08712845 c5fb2a85f0010000 vcvtsi2sd xmm0, xmm0, dword ptr [rbp+1F0h]
00007ffd`0871284d 488b8d30020000 mov rcx, qword ptr [rbp+230h]
00007ffd`08712854 c5fb114110 vmovsd qword ptr [rcx+10h], xmm0
00007ffd`08712859 c5f857c0 vxorps xmm0, xmm0, xmm0
00007ffd`0871285d c5fa7f85d0010000 vmovdqu xmmword ptr [rbp+1D0h], xmm0
00007ffd`08712865 c5fa7f85e0010000 vmovdqu xmmword ptr [rbp+1E0h], xmm0
00007ffd`0871286d 90 nop
beatmap_id DifficultyPeppyStars_Framework DifficultyPeppyStars_Lazer
34663 2 1
54292 2 1
126132 2 1
517720 5 4
559123 5 4
615303 5 4
741469 5 4
776295 5 4
783667 5 4
887338 5 4
955279 5 4
1039330 5 4
1043223 5 4
1046775 5 4
1078420 5 4
1081936 5 4
1138260 5 4
1177864 5 4
1274807 3 4
1313431 5 4
1337997 5 4
1368965 5 4
1406861 5 4
1454948 5 4
1455969 5 4
1473855 5 4
1500772 5 4
1523707 5 4
1558338 5 4
1588595 5 4
1593298 5 4
1632339 5 4
1647770 5 4
1648043 5 4
1649466 5 4
1694395 5 4
1715879 3 4
1749294 5 4
1762428 5 4
1779838 5 4
1815082 5 4
1820920 5 4
1832015 5 4
1836136 5 4
1843575 5 4
1846447 5 4
1846892 5 4
1890972 5 4
1943595 5 4
1949536 5 4
1958283 5 4
2005979 5 4
2037924 5 4
2038619 5 4
2052962 5 4
2089540 5 4
2093043 3 4
2108787 5 4
2116803 3 4
2120669 5 4
2134870 5 4
2150029 3 4
2152663 5 4
2153460 5 4
2154807 5 4
2161714 5 4
2187833 5 4
2190037 5 4
2199223 3 4
2222443 3 4
2223135 5 4
2225737 5 4
2233041 5 4
2237465 5 4
2248867 5 4
2255705 5 4
2276455 3 4
2280179 5 4
2290826 3 4
2323645 3 4
2329582 5 4
2341605 3 4
2349471 3 4
2353643 3 4
2382711 5 4
2410316 3 4
2469840 5 4
2494148 3 4
2513495 5 4
2528027 5 4
2549131 5 4
2565022 5 4
2591254 5 4
2607032 5 4
2620912 5 4
2623340 5 4
2642912 5 4
2643264 5 4
2651898 3 4
2660567 5 4
2667783 5 4
2668463 3 4
2718273 3 4
2722308 3 4
2726491 5 4
2732033 5 4
2763028 5 4
2780218 5 4
2782822 5 4
2798787 5 4
2809459 5 4
2810953 5 4
2813275 5 4
2820249 5 4
2822604 3 4
2831915 5 4
2845165 3 4
2881962 3 4
2914405 3 4
2922417 3 4
2923644 5 4
2930807 5 4
2966498 5 4
2978157 3 4
2991429 5 4
3001449 3 4
3009080 5 4
3023028 3 4
3041193 5 4
3056812 5 4
3068613 3 4
3070560 3 4
3073098 5 4
3093021 5 4
3093161 3 4
3117146 3 4
3129759 3 4
3136614 5 4
3157180 5 4
3161480 3 4
3172609 3 4
3180381 3 4
3206909 5 4
3215875 3 4
3217635 5 4
3220989 3 4
3233352 5 4
3242403 3 4
3254383 3 4
3257370 5 4
3257371 5 4
3263851 5 4
3274869 5 4
3277334 3 4
3283803 3 4
3344285 3 4
3348996 5 4
3350989 3 4
3356086 5 4
3379489 5 4
3386466 3 4
3389337 3 4
3413490 3 4
3417453 3 4
3427623 5 4
3447627 5 4
3451614 3 4
3453584 5 4
3453892 3 4
3454293 5 4
3459959 5 4
3467317 5 4
3474592 3 4
3483015 5 4
3489031 5 4
3491287 3 4
3501824 5 4
3508867 3 4
3512575 3 4
3513426 3 4
3555175 5 4
3555176 3 4
3557726 5 4
3566231 3 4
3582308 3 4
3595651 3 4
3599288 3 4
3607499 5 4
3609094 3 4
3625260 3 4
3632777 5 4
3638569 5 4
3645642 5 4
3647100 3 4
3648542 5 4
3650979 3 4
3662731 3 4
3670895 5 4
3684297 5 4
3702327 5 4
3712715 3 4
3719004 5 4
3723374 5 4
3725129 5 4
3730364 3 4
3735518 3 4
3758339 5 4
3759590 5 4
3778550 5 4
3783098 3 4
3804673 5 4
3808044 5 4
3810624 5 4
3829796 3 4
3857955 3 4
3893050 3 4
3904762 5 4
3913075 5 4
3924271 3 4
3950879 3 4
3955003 5 4
3961739 3 4
3977444 5 4
3992108 5 4
4053304 3 4
4055632 5 4
4074796 5 4
4094343 5 4
4096470 3 4
4097133 3 4
4103973 5 4
4119476 5 4
4128671 5 4
4130321 5 4
4136599 3 4
4150735 3 4
4174588 3 4
4205361 5 4
4209534 3 4
4235502 3 4
4317383 5 4
4329369 5 4
4336660 3 4
4354741 3 4
4415618 3 4
0b051d76 d94634 fld dword ptr [esi+34h] % @esi+34h = 00 00 A0 40 = 5f
% st0= 5.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0000 (0:4001:a000000000000000)
0b051d79 d84638 fadd dword ptr [esi+38h] % @esi+38h = 00 00 18 41 = 9.5f
% st0= 1.4500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4002:e800000000000000)
0b051d7c d84630 fadd dword ptr [esi+30h] % @esi+30h = CD CC 6C 40 = 3.7f
% st0= 1.8200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:919999a000000000)
0b051d7f db86f8000000 fild dword ptr [esi+0F8h] % @esi+F8h = 1C 07 00 00 = 1820i
% st0= 1.8200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0003 (0:4009:e380000000000000)
% st1= 1.8200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:919999a000000000)
0b051d85 d95df8 fstp dword ptr [ebp-8] % @ebp-8 = 00 00 00 00
% @ebp-8 = 00 80 E3 44 = 1820f
% st0= 1.8200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:919999a000000000)
0b051d88 d945f8 fld dword ptr [ebp-8] % just loads back what was just spilled from stack...
0b051d8b db86f0000000 fild dword ptr [esi+0F0h] % @esi+0F0h = FA 00 00 00 = 250i
% st0= 2.5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0002 (0:4006:fa00000000000000)
% st1= 1.8200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0003 (0:4009:e380000000000000)
% st2= 1.8200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:919999a000000000)
0b051d91 d95df8 fstp dword ptr [ebp-8] % see above
0b051d94 d945f8 fld dword ptr [ebp-8] % see above
0b051d97 def9 fdivp st(1), st
% st0= 7.2800000000000002486900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0000 (0:4001:e8f5c28f5c28f800)
% st1= 1.8200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:919999a000000000)
0b051d99 d80dd81d050b fmul dword ptr ds:[0B051DD8h]
% st0= 5.8240000000000001989500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4004:e8f5c28f5c28f800)
% st1= 1.8200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:919999a000000000)
0b051d9f 83ec04 sub esp, 4
0b051da2 d91c24 fstp dword ptr [esp]
0b051da5 6a00 push 0
0b051da7 6800008041 push 41800000h
0b051dac dd5df0 fstp qword ptr [ebp-10h]
0b051daf e814e49515 call 209B01C8 % this is the clamp call, everything before is just setup
0b051db4 dd45f0 fld qword ptr [ebp-10h]
% st0= 1.8200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:919999a000000000)
% st1= 1.6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4003:8000000000000000)
0b051db7 dec1 faddp st(1), st
% st0= 3.4200000047683715820300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0001 (0:4004:88ccccd000000000)
0b051db9 d835e01d050b fdiv dword ptr ds:[0B051DE0h]
% st0= 9.0000000125483459179100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e-0001 (0:3ffe:e666666bca1af000)
0b051dbf d80de81d050b fmul dword ptr ds:[0B051DE8h]
% st0= 4.5000000062741731810000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0000 (0:4001:900000035e50d800)
0b051dc5 dd5df0 fstp qword ptr [ebp-10h]
0b051dc8 dd45f0 fld qword ptr [ebp-10h]
0b051dcb db5df8 fistp dword ptr [ebp-8]
% @ebp-8 = 05 00 00 00
0b051dce 8b45f8 mov eax, dword ptr [ebp-8]
0b051dd1 8d65fc lea esp, [ebp-4]
0b051dd4 5e pop esi
0b051dd5 5d pop ebp
0b051dd6 c3 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment