	.file	"28264081.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/home/pwn2/flag.txt"
.LC2:
	.string	"Error reading file"
	.align 8
.LC3:
	.ascii	" ***********************************************************"
	.ascii	"*****************\n This is a Nexxus computer system, which "
	.ascii	"may be accessed\n  and used only for authorized Nexxus busin"
	.ascii	"ess by authorized personnel.\n Unauthorized access or use of"
	.ascii	" this computer system may subject violators\n to criminal, c"
	.ascii	"ivil, and/or administrative action.\n\n All information on t"
	.ascii	"his computer system may be intercepted, recorded,\n read, co"
	.ascii	"pied, and disclosed by and to authorized personnel for offic"
	.ascii	"ial\n purposes, including criminal investigations. Such info"
	.ascii	"rmation includes\n sensitive data encrypted to comply with c"
	.ascii	"onfidentiality and privacy\n requirem"
	.string	"ents. Access or use of this computer system by any person, whether\n authorized or unauthorized, constitutes consent to these terms. There is no\n right of privacy in this system.\n ****************************************************************************\n"
.LC4:
	.string	"Command: "
.LC5:
	.string	"\r\n"
.LC6:
	.string	"checkflag"
.LC7:
	.string	"flag: "
	.align 8
.LC8:
	.string	"You got the correct flag! (%s)\n"
.LC9:
	.string	"Wrong flag!"
.LC10:
	.string	"Invalid command!"
.LC11:
	.string	"Disconnected."
	.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
	sub	rsp, 432
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -400[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -336[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -416[rbp], rax
	cmp	QWORD PTR -416[rbp], 0
	je	.L2
	mov	rdx, QWORD PTR -416[rbp]
	lea	rax, -400[rbp]
	mov	rcx, rdx
	mov	edx, 63
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -408[rbp], rax
	mov	rax, QWORD PTR -416[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -408[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -408[rbp], rdx
	mov	BYTE PTR -400[rbp+rax], 0
.L4:
	mov	rax, QWORD PTR -416[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -336[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -336[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	BYTE PTR -336[rbp+rax], 0
	lea	rax, -336[rbp]
	mov	edx, 9
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -400[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
	lea	rax, -400[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L5:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L7:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"28264081.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/home/pwn2/flag.txt\000"
	.align	2
.LC2:
	.ascii	"Error reading file\000"
	.align	2
.LC3:
	.ascii	" **************************************************"
	.ascii	"**************************\012 This is a Nexxus com"
	.ascii	"puter system, which may be accessed\012  and used o"
	.ascii	"nly for authorized Nexxus business by authorized pe"
	.ascii	"rsonnel.\012 Unauthorized access or use of this com"
	.ascii	"puter system may subject violators\012 to criminal,"
	.ascii	" civil, and/or administrative action.\012\012 All i"
	.ascii	"nformation on this computer system may be intercept"
	.ascii	"ed, recorded,\012 read, copied, and disclosed by an"
	.ascii	"d to authorized personnel for official\012 purposes"
	.ascii	", including criminal investigations. Such informati"
	.ascii	"on includes\012 sensitive data encrypted to comply "
	.ascii	"with confidentiality and privacy\012 requirements. "
	.ascii	"Access or use of this computer system by any person"
	.ascii	", whether\012 authorized or unauthorized, constitut"
	.ascii	"es consent to these terms. There is no\012 right of"
	.ascii	" privacy in this system.\012 **********************"
	.ascii	"***************************************************"
	.ascii	"***\012\000"
	.align	2
.LC4:
	.ascii	"Command: \000"
	.align	2
.LC5:
	.ascii	"\015\012\000"
	.align	2
.LC6:
	.ascii	"checkflag\000"
	.align	2
.LC7:
	.ascii	"flag: \000"
	.align	2
.LC8:
	.ascii	"You got the correct flag! (%s)\012\000"
	.align	2
.LC9:
	.ascii	"Wrong flag!\000"
	.align	2
.LC10:
	.ascii	"Invalid command!\000"
	.align	2
.LC11:
	.ascii	"Disconnected.\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 408
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #408
	str	r0, [fp, #-408]
	str	r1, [fp, #-412]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #392
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #328
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L10+4
	ldr	r0, .L10+8
	bl	fopen
	str	r0, [fp, #-400]
	ldr	r3, [fp, #-400]
	cmp	r3, #0
	beq	.L2
	sub	r0, fp, #392
	ldr	r3, [fp, #-400]
	mov	r2, #63
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-396]
	ldr	r0, [fp, #-400]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L10+16
	bl	fwrite
	b	.L4
.L3:
	ldr	r3, [fp, #-396]
	add	r2, r3, #1
	str	r2, [fp, #-396]
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-388]
.L4:
	ldr	r0, [fp, #-400]
	bl	fclose
.L2:
	ldr	r0, .L10+20
	bl	puts
	ldr	r3, .L10+24
	ldr	r3, [r3]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L10+28
	bl	fwrite
	ldr	r3, .L10+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L10+32
	ldr	r2, [r3]
	sub	r3, fp, #328
	mov	r1, #64
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #328
	ldr	r1, .L10+36
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-324]
	sub	r3, fp, #328
	mov	r2, #9
	ldr	r1, .L10+40
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L10+24
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L10+44
	bl	fwrite
	ldr	r3, .L10+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L10+32
	ldr	r2, [r3]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #264
	ldr	r1, .L10+36
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
	sub	r3, fp, #392
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #392
	sub	r3, fp, #264
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #392
	mov	r1, r3
	ldr	r0, .L10+48
	bl	printf
	b	.L7
.L6:
	ldr	r0, .L10+52
	bl	puts
	sub	r3, fp, #264
	mov	r0, r3
	bl	printf
	b	.L7
.L5:
	ldr	r0, .L10+56
	bl	puts
.L7:
	ldr	r0, .L10+60
	bl	puts
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	stdin
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
