All pastes #430052 Raw Edit

CPU

public text v1 · immutable
·published 2007-04-08 18:06 UTC
rendered paste body
test:
00407DD0 55               push        ebp  
00407DD1 8B EC            mov         ebp,esp 
00407DD3 83 EC 0C         sub         esp,0Ch 
00407DD6 53               push        ebx  
00407DD7 C7 45 FC 03 00 00 00 mov         dword ptr [testno],3 
00407DDE 83 7D FC 00      cmp         dword ptr [testno],0 
00407DE2 75 1D            jne         KONEC+0Dh (407E01h) 
00407DE4 6A 00            push        0    
00407DE6 6A 01            push        1    
00407DE8 B0 11            mov         al,11h 
00407DEA 8A E0            mov         ah,al 
00407DEC 9E               sahf             
00407DED B9 F4 7D 40 00   mov         ecx,offset KONEC (407DF4h) 
00407DF2 FF E1            jmp         ecx  
KONEC:
00407DF4 C2 12 00         ret         12h  
00407DF7 E9 86 00 00 00   jmp         KONEC+8Eh (407E82h) 
00407DFC E9 81 00 00 00   jmp         KONEC+8Eh (407E82h) 
00407E01 83 7D FC 01      cmp         dword ptr [testno],1 
00407E05 75 3A            jne         KONEC+4Dh (407E41h) 
00407E07 C7 45 F8 00 00 00 00 mov         dword ptr [i],0 
00407E0E EB 09            jmp         KONEC+25h (407E19h) 
00407E10 8B 45 F8         mov         eax,dword ptr [i] 
00407E13 83 C0 01         add         eax,1 
00407E16 89 45 F8         mov         dword ptr [i],eax 
00407E19 83 7D F8 0A      cmp         dword ptr [i],0Ah 
00407E1D 7D 1E            jge         KONEC+49h (407E3Dh) 
00407E1F 8B 4D F8         mov         ecx,dword ptr [i] 
00407E22 81 E1 01 00 00 80 and         ecx,80000001h 
00407E28 79 05            jns         KONEC+3Bh (407E2Fh) 
00407E2A 49               dec         ecx  
00407E2B 83 C9 FE         or          ecx,0FFFFFFFEh 
00407E2E 41               inc         ecx  
00407E2F 85 C9            test        ecx,ecx 
00407E31 75 08            jne         KONEC+47h (407E3Bh) 
00407E33 8B 55 F8         mov         edx,dword ptr [i] 
00407E36 D1 E2            shl         edx,1 
00407E38 89 55 F4         mov         dword ptr [j],edx 
00407E3B EB D3            jmp         KONEC+1Ch (407E10h) 
00407E3D EB 43            jmp         KONEC+8Eh (407E82h) 
00407E3F EB 41            jmp         KONEC+8Eh (407E82h) 
00407E41 83 7D FC 02      cmp         dword ptr [testno],2 
00407E45 75 0E            jne         KONEC+61h (407E55h) 
00407E47 C7 44 24 FC 34 12 00 00 mov         dword ptr [esp-4],1234h 
00407E4F 8B 4C 24 FC      mov         ecx,dword ptr [esp-4] 
00407E53 EB 2D            jmp         KONEC+8Eh (407E82h) 
00407E55 83 7D FC 03      cmp         dword ptr [testno],3 
00407E59 75 12            jne         KONEC+79h (407E6Dh) 
00407E5B B0 C0            mov         al,0C0h 
00407E5D 66 98            cbw              
00407E5F 66 99            cwd              
00407E61 98               cwde             
00407E62 99               cdq              
00407E63 87 D9            xchg        ebx,ecx 
00407E65 BA 00 00 00 00   mov         edx,0 
00407E6A 42               inc         edx  
00407E6B EB 15            jmp         KONEC+8Eh (407E82h) 
00407E6D 83 7D FC 04      cmp         dword ptr [testno],4 
00407E71 75 0F            jne         KONEC+8Eh (407E82h) 
00407E73 B8 01 00 00 00   mov         eax,1 
00407E78 40               inc         eax  
00407E79 40               inc         eax  
00407E7A 40               inc         eax  
00407E7B 40               inc         eax  
00407E7C 83 C0 05         add         eax,5 
00407E7F 83 E8 0A         sub         eax,0Ah 
00407E82 5B               pop         ebx  
00407E83 8B E5            mov         esp,ebp 
00407E85 5D               pop         ebp  
00407E86 C3               ret         




O D I T S Z A P C
0 0 0 0 0 0 0 0 0
eax = 0x00000000
ebx = 0x00000000
ecx = 0x00000000
edx = 0x00000000
esi = 0x00000000
edi = 0x00000000
eip = 0x00407DD0
esp = 0x4FFFFFFC
ebp = 0x00000000

0x00407DD0: push ebp
0x00407DD1: mov ebp,esp
0x00407DD3: sub esp,byte +0xc
0x00407DD6: push ebx
0x00407DD7: mov dword [ebp-0x4],0x3
0x00407DDE: cmp dword [ebp-0x4],byte +0x0
0x00407DE2: jnz 0x1f
0x00407E01: cmp dword [ebp-0x4],byte +0x1
0x00407E05: jnz 0x3c
0x00407E41: cmp dword [ebp-0x4],byte +0x2
0x00407E45: jnz 0x10
0x00407E55: cmp dword [ebp-0x4],byte +0x3
0x00407E59: jnz 0x14
0x00407E5B: mov al,0xc0
0x00407E5D: cbw
0x00407E5F: cwd
0x00407E61: cwde
0x00407E62: cdq
0x00407E63: xchg ebx,ecx
0x00407E65: mov edx,0x0
0x00407E6A: inc edx
0x00407E6B: jmp short 0x17
0x00407E82: pop ebx
0x00407E83: mov esp,ebp
0x00407E85: pop ebp
0x00407E86: ret

O D I T S Z A P C
0 0 0 0 0 0 0 1 0
eax = 0xFFFFFFC0
ebx = 0x00000000
ecx = 0x00000000
edx = 0x00000001
esi = 0x00000000
edi = 0x00000000
eip = 0x00000000
esp = 0x50000000
ebp = 0x00000000