	.file	"165764782.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"prctl(NO_NEW_PRIVS)"
.LC1:
	.string	"prctl(PR_SET_SECCOMP)"
	.text
	.type	install_filter, @function
install_filter:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	DWORD PTR -92[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -64[rbp], 32
	mov	BYTE PTR -62[rbp], 0
	mov	BYTE PTR -61[rbp], 0
	mov	DWORD PTR -60[rbp], 4
	mov	WORD PTR -56[rbp], 21
	mov	BYTE PTR -54[rbp], 0
	mov	BYTE PTR -53[rbp], 3
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	WORD PTR -48[rbp], 32
	mov	BYTE PTR -46[rbp], 0
	mov	BYTE PTR -45[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	WORD PTR -40[rbp], 21
	mov	BYTE PTR -38[rbp], 0
	mov	BYTE PTR -37[rbp], 1
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	WORD PTR -32[rbp], 6
	mov	BYTE PTR -30[rbp], 0
	mov	BYTE PTR -29[rbp], 0
	mov	eax, DWORD PTR -92[rbp]
	movzx	eax, ax
	or	eax, 327680
	mov	DWORD PTR -28[rbp], eax
	mov	WORD PTR -24[rbp], 6
	mov	BYTE PTR -22[rbp], 0
	mov	BYTE PTR -21[rbp], 0
	mov	DWORD PTR -20[rbp], 2147418112
	mov	WORD PTR -80[rbp], 6
	lea	rax, -64[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 38
	mov	eax, 0
	call	prctl@PLT
	test	eax, eax
	je	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L5
.L2:
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 2
	mov	edi, 22
	mov	eax, 0
	call	prctl@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	install_filter, .-install_filter
	.section	.rodata
	.align 8
.LC2:
	.string	"Usage:\ndropper <syscall_nr> <arch> <errno> <prog> [<args>]\nHint:\tAUDIT_ARCH_I386: 0x%X\n\tAUDIT_ARCH_X86_64: 0x%X\n\n"
.LC3:
	.string	"Failed to execv"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 4
	jg	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, -1073741762
	mov	edx, 1073741827
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	edx, r12d
	mov	esi, ebx
	mov	edi, eax
	call	install_filter
	test	eax, eax
	je	.L10
	mov	eax, 1
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 255
.L9:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"165764782.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"prctl(NO_NEW_PRIVS)\000"
	.align	2
.LC1:
	.ascii	"prctl(PR_SET_SECCOMP)\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	install_filter, %function
install_filter:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #32
	strh	r3, [fp, #-56]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-54]
	mov	r3, #0
	strb	r3, [fp, #-53]
	mov	r3, #4
	str	r3, [fp, #-52]
	mov	r3, #21
	strh	r3, [fp, #-48]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-46]
	mov	r3, #3
	strb	r3, [fp, #-45]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-44]
	mov	r3, #32
	strh	r3, [fp, #-40]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-38]
	mov	r3, #0
	strb	r3, [fp, #-37]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #21
	strh	r3, [fp, #-32]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-30]
	mov	r3, #1
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-28]
	mov	r3, #6
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	orr	r3, r3, #327680
	str	r3, [fp, #-20]
	mov	r3, #6
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-14]
	mov	r3, #0
	strb	r3, [fp, #-13]
	ldr	r3, .L7+4
	str	r3, [fp, #-12]
	mov	r3, #6
	strh	r3, [fp, #-64]	@ movhi
	sub	r3, fp, #56
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #38
	bl	prctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L7+8
	bl	perror
	mov	r3, #1
	b	.L5
.L2:
	sub	r3, fp, #64
	mov	r2, r3
	mov	r1, #2
	mov	r0, #22
	bl	prctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L7+12
	bl	perror
	mov	r3, #1
	b	.L5
.L4:
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	2147418112
	.word	.LC0
	.word	.LC1
	.size	install_filter, .-install_filter
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Usage:\012dropper <syscall_nr> <arch> <errno> <prog"
	.ascii	"> [<args>]\012Hint:\011AUDIT_ARCH_I386: 0x%X\012\011"
	.ascii	"AUDIT_ARCH_X86_64: 0x%X\012\012\000"
	.align	2
.LC4:
	.ascii	"Failed to execv\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bgt	.L10
	ldr	r3, .L13
	ldr	r0, [r3]
	mov	r3, #-1073741762
	mov	r2, #1073741827
	ldr	r1, .L13+4
	bl	fprintf
	mov	r3, #1
	b	.L11
.L10:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r4, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r5, r0
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	install_filter
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	mov	r3, #1
	b	.L11
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	mov	r1, r3
	mov	r0, r2
	bl	execv
	ldr	r0, .L13+8
	bl	puts
	mov	r3, #255
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
