-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdump.tmp
208 lines (208 loc) · 3.62 KB
/
dump.tmp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
.file "teavpn.c"
.text
.globl verbose_level
.bss
.type verbose_level, @object
.size verbose_level, 1
verbose_level:
.zero 1
.section .rodata
.LC0:
.string "[%s]: "
.text
.globl __internal_debug_log
.type __internal_debug_log, @function
__internal_debug_log:
.LFB6:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $256, %rsp
movq %rsi, -256(%rbp)
movq %rdx, -160(%rbp)
movq %rcx, -152(%rbp)
movq %r8, -144(%rbp)
movq %r9, -136(%rbp)
testb %al, %al
je .L2
movaps %xmm0, -128(%rbp)
movaps %xmm1, -112(%rbp)
movaps %xmm2, -96(%rbp)
movaps %xmm3, -80(%rbp)
movaps %xmm4, -64(%rbp)
movaps %xmm5, -48(%rbp)
movaps %xmm6, -32(%rbp)
movaps %xmm7, -16(%rbp)
.L2:
movl %edi, %eax
movb %al, -244(%rbp)
movq %fs:40, %rax
movq %rax, -184(%rbp)
xorl %eax, %eax
movzbl verbose_level(%rip), %eax
cmpb %al, -244(%rbp)
ja .L5
leaq -232(%rbp), %rax
movq %rax, %rdi
call time@PLT
leaq -232(%rbp), %rax
movq %rax, %rdi
call localtime@PLT
movq %rax, -224(%rbp)
movq -224(%rbp), %rax
movq %rax, %rdi
call asctime@PLT
movq %rax, -216(%rbp)
movq -216(%rbp), %rax
addq $24, %rax
movb $0, (%rax)
movl $16, -208(%rbp)
movl $48, -204(%rbp)
leaq 16(%rbp), %rax
movq %rax, -200(%rbp)
leaq -176(%rbp), %rax
movq %rax, -192(%rbp)
movq stdout(%rip), %rax
movq -216(%rbp), %rdx
leaq .LC0(%rip), %rsi
movq %rax, %rdi
movl $0, %eax
call fprintf@PLT
movq stdout(%rip), %rax
leaq -208(%rbp), %rdx
movq -256(%rbp), %rcx
movq %rcx, %rsi
movq %rax, %rdi
call vfprintf@PLT
movq stdout(%rip), %rax
movq %rax, %rsi
movl $10, %edi
call fputc@PLT
movq stdout(%rip), %rax
movq %rax, %rdi
call fflush@PLT
.L5:
nop
movq -184(%rbp), %rax
xorq %fs:40, %rax
je .L4
call __stack_chk_fail@PLT
.L4:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE6:
.size __internal_debug_log, .-__internal_debug_log
.section .rodata
.LC1:
.string "/dev/net/tun"
.LC2:
.string "Opening /dev/net/tun"
.LC3:
.string "ioctl(TUNSETIFF)"
.text
.globl tun_alloc
.type tun_alloc, @function
tun_alloc:
.LFB7:
.cfi_startproc
endbr64
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
subq $80, %rsp
movq %rdi, -72(%rbp)
movl %esi, -76(%rbp)
movq %fs:40, %rax
movq %rax, -8(%rbp)
xorl %eax, %eax
movl $2, %esi
leaq .LC1(%rip), %rdi
movl $0, %eax
call open@PLT
movl %eax, -56(%rbp)
cmpl $0, -56(%rbp)
jns .L7
leaq .LC2(%rip), %rdi
call perror@PLT
movl -56(%rbp), %eax
jmp .L11
.L7:
leaq -48(%rbp), %rax
movl $40, %edx
movl $0, %esi
movq %rax, %rdi
call memset@PLT
movl -76(%rbp), %eax
movw %ax, -32(%rbp)
movq -72(%rbp), %rax
movzbl (%rax), %eax
testb %al, %al
je .L9
movq -72(%rbp), %rcx
leaq -48(%rbp), %rax
movl $16, %edx
movq %rcx, %rsi
movq %rax, %rdi
call strncpy@PLT
.L9:
leaq -48(%rbp), %rdx
movl -56(%rbp), %eax
movl $1074025674, %esi
movl %eax, %edi
movl $0, %eax
call ioctl@PLT
movl %eax, -52(%rbp)
cmpl $0, -52(%rbp)
jns .L10
leaq .LC3(%rip), %rdi
call perror@PLT
movl -56(%rbp), %eax
movl %eax, %edi
call close@PLT
movl -52(%rbp), %eax
jmp .L11
.L10:
leaq -48(%rbp), %rdx
movq -72(%rbp), %rax
movq %rdx, %rsi
movq %rax, %rdi
call strcpy@PLT
movl -56(%rbp), %eax
.L11:
movq -8(%rbp), %rcx
xorq %fs:40, %rcx
je .L12
call __stack_chk_fail@PLT
.L12:
leave
.cfi_def_cfa 7, 8
ret
.cfi_endproc
.LFE7:
.size tun_alloc, .-tun_alloc
.ident "GCC: (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008"
.section .note.GNU-stack,"",@progbits
.section .note.gnu.property,"a"
.align 8
.long 1f - 0f
.long 4f - 1f
.long 5
0:
.string "GNU"
1:
.align 8
.long 0xc0000002
.long 3f - 2f
2:
.long 0x3
3:
.align 8
4: