master
1.text
2.global __clone
3.hidden __clone
4.type __clone,@function
5__clone:
6 push %ebp
7 mov %esp,%ebp
8 push %ebx
9 push %esi
10 push %edi
11
12 xor %eax,%eax
13 push $0x51
14 mov %gs,%ax
15 push $0xfffff
16 shr $3,%eax
17 push 28(%ebp)
18 push %eax
19 mov $120,%al
20
21 mov 12(%ebp),%ecx
22 mov 16(%ebp),%ebx
23 and $-16,%ecx
24 sub $16,%ecx
25 mov 20(%ebp),%edi
26 mov %edi,(%ecx)
27 mov 24(%ebp),%edx
28 mov %esp,%esi
29 mov 32(%ebp),%edi
30 mov 8(%ebp),%ebp
31 int $128
32 test %eax,%eax
33 jz 1f
34 add $16,%esp
35 pop %edi
36 pop %esi
37 pop %ebx
38 pop %ebp
39 ret
40
411: mov %ebp,%eax
42 xor %ebp,%ebp
43 call *%eax
44 mov %eax,%ebx
45 xor %eax,%eax
46 inc %eax
47 int $128
48 hlt