	.file	"40763927.c"
	.intel_syntax noprefix
	.text
	.globl	key_adjust
	.type	key_adjust, @function
key_adjust:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 15
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 15
	xor	edx, 66
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	key_adjust, .-key_adjust
	.globl	decrypt
	.type	decrypt, @function
decrypt:
.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, 592
	mov	QWORD PTR -568[rbp], rdi
	mov	DWORD PTR -572[rbp], esi
	mov	QWORD PTR -584[rbp], rdx
	mov	DWORD PTR -576[rbp], ecx
	mov	QWORD PTR -592[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -584[rbp]
	mov	rdi, rax
	call	key_adjust
	mov	QWORD PTR -584[rbp], rax
	mov	DWORD PTR -544[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -544[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	mov	eax, DWORD PTR -544[rbp]
	cdq
	idiv	DWORD PTR -576[rbp]
	mov	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -584[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], dl
	add	DWORD PTR -544[rbp], 1
.L4:
	cmp	DWORD PTR -544[rbp], 255
	jle	.L5
	mov	DWORD PTR -540[rbp], 0
	mov	DWORD PTR -548[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -540[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	movzx	eax, BYTE PTR -528[rbp+rax]
	movsx	eax, al
	add	eax, edx
	and	eax, 255
	mov	DWORD PTR -540[rbp], eax
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	mov	BYTE PTR -553[rbp], al
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	movzx	edx, BYTE PTR -272[rbp+rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	mov	eax, DWORD PTR -548[rbp]
	cdqe
	movzx	edx, BYTE PTR -553[rbp]
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -548[rbp], 1
.L6:
	cmp	DWORD PTR -548[rbp], 255
	jle	.L7
	mov	DWORD PTR -540[rbp], 0
	mov	DWORD PTR -536[rbp], 0
	mov	DWORD PTR -552[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -536[rbp]
	add	eax, 1
	and	eax, 255
	mov	DWORD PTR -536[rbp], eax
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -540[rbp]
	add	eax, edx
	and	eax, 255
	mov	DWORD PTR -540[rbp], eax
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	mov	BYTE PTR -553[rbp], al
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	movzx	edx, BYTE PTR -272[rbp+rax]
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	movzx	edx, BYTE PTR -553[rbp]
	mov	BYTE PTR -272[rbp+rax], dl
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movsx	edx, al
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movsx	eax, al
	add	eax, edx
	and	eax, 255
	mov	DWORD PTR -532[rbp], eax
	mov	eax, DWORD PTR -552[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	mov	ecx, edx
	xor	ecx, eax
	mov	eax, DWORD PTR -552[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -592[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -552[rbp], 1
.L8:
	mov	eax, DWORD PTR -552[rbp]
	cmp	eax, DWORD PTR -572[rbp]
	jl	.L9
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decrypt, .-decrypt
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"libnative-lib.so"
.LC2:
	.string	"flag"
.LC3:
	.string	"Not found!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 416
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -408[rbp], rax
	movabs	rax, 4995709357640335167
	movabs	rdx, 2403319427924970561
	mov	QWORD PTR -400[rbp], rax
	mov	QWORD PTR -392[rbp], rdx
	mov	BYTE PTR -384[rbp], 0
	mov	rax, QWORD PTR -408[rbp]
	mov	edx, 0
	mov	esi, 3460
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -408[rbp]
	lea	rax, -368[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 129
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -408[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	BYTE PTR -412[rbp], 97
	jmp	.L12
.L20:
	movzx	eax, BYTE PTR -412[rbp]
	mov	BYTE PTR -400[rbp], al
	mov	BYTE PTR -411[rbp], 97
	jmp	.L13
.L19:
	movzx	eax, BYTE PTR -411[rbp]
	mov	BYTE PTR -399[rbp], al
	mov	BYTE PTR -410[rbp], 97
	jmp	.L14
.L18:
	movzx	eax, BYTE PTR -410[rbp]
	mov	BYTE PTR -398[rbp], al
	mov	BYTE PTR -409[rbp], 97
	jmp	.L15
.L17:
	movzx	eax, BYTE PTR -409[rbp]
	mov	BYTE PTR -397[rbp], al
	lea	rcx, -192[rbp]
	lea	rdx, -400[rbp]
	lea	rax, -368[rbp]
	mov	r8, rcx
	mov	ecx, 16
	mov	esi, 129
	mov	rdi, rax
	call	decrypt
	lea	rax, -192[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L16
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -192[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	movzx	eax, BYTE PTR -409[rbp]
	add	eax, 1
	mov	BYTE PTR -409[rbp], al
.L15:
	cmp	BYTE PTR -409[rbp], 122
	jle	.L17
	movzx	eax, BYTE PTR -410[rbp]
	add	eax, 1
	mov	BYTE PTR -410[rbp], al
.L14:
	cmp	BYTE PTR -410[rbp], 122
	jle	.L18
	movzx	eax, BYTE PTR -411[rbp]
	add	eax, 1
	mov	BYTE PTR -411[rbp], al
.L13:
	cmp	BYTE PTR -411[rbp], 122
	jle	.L19
	movzx	eax, BYTE PTR -412[rbp]
	add	eax, 1
	mov	BYTE PTR -412[rbp], al
.L12:
	cmp	BYTE PTR -412[rbp], 122
	jle	.L20
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"40763927.c"
	.text
	.align	2
	.global	key_adjust
	.syntax unified
	.arm
	.fpu softvfp
	.type	key_adjust, %function
key_adjust:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #15
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	add	r3, r3, #15
	eor	r2, r2, #66
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	key_adjust, .-key_adjust
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	decrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	decrypt, %function
decrypt:
	@ args = 4, pretend = 0, frame = 568
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #568
	str	r0, [fp, #-552]
	str	r1, [fp, #-556]
	str	r2, [fp, #-560]
	str	r3, [fp, #-564]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-568]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-560]
	bl	key_adjust
	str	r0, [fp, #-560]
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L4
.L5:
	ldr	r3, [fp, #-536]
	and	r1, r3, #255
	sub	r2, fp, #264
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-536]
	ldr	r1, [fp, #-564]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-560]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #520
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L4:
	ldr	r3, [fp, #-536]
	cmp	r3, #255
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-532]
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L6
.L7:
	sub	r2, fp, #264
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	sub	r1, fp, #520
	ldr	r2, [fp, #-540]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	and	r3, r3, #255
	str	r3, [fp, #-532]
	sub	r2, fp, #264
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-545]
	sub	r2, fp, #264
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #264
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #264
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	ldrb	r2, [fp, #-545]
	strb	r2, [r3]
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L6:
	ldr	r3, [fp, #-540]
	cmp	r3, #255
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-532]
	mov	r3, #0
	str	r3, [fp, #-528]
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L8
.L9:
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	and	r3, r3, #255
	str	r3, [fp, #-528]
	sub	r2, fp, #264
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	and	r3, r3, #255
	str	r3, [fp, #-532]
	sub	r2, fp, #264
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-545]
	sub	r2, fp, #264
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #264
	ldr	r3, [fp, #-532]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #264
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldrb	r2, [fp, #-545]
	strb	r2, [r3]
	sub	r2, fp, #264
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #264
	ldr	r3, [fp, #-532]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r3, r3, #255
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-544]
	ldr	r2, [fp, #-552]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #264
	ldr	r3, [fp, #-524]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-544]
	ldr	r0, [fp, #-568]
	add	r3, r0, r3
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L8:
	ldr	r2, [fp, #-544]
	ldr	r3, [fp, #-556]
	cmp	r2, r3
	blt	.L9
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	decrypt, .-decrypt
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"libnative-lib.so\000"
	.align	2
.LC4:
	.ascii	"flag\000"
	.align	2
.LC5:
	.ascii	"Not found!\000"
	.align	2
.LC3:
	.ascii	"????1STEALCOINZ!\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 = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #392
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L25+4
	ldr	r0, .L25+8
	bl	fopen
	str	r0, [fp, #-384]
	ldr	r3, .L25+12
	sub	ip, fp, #380
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	mov	r2, #0
	ldr	r1, .L25+16
	ldr	r0, [fp, #-384]
	bl	fseek
	sub	r0, fp, #360
	ldr	r3, [fp, #-384]
	mov	r2, #1
	mov	r1, #129
	bl	fread
	ldr	r0, [fp, #-384]
	bl	fclose
	mov	r3, #97
	strb	r3, [fp, #-388]
	b	.L14
.L22:
	ldrb	r3, [fp, #-388]
	strb	r3, [fp, #-380]
	mov	r3, #97
	strb	r3, [fp, #-387]
	b	.L15
.L21:
	ldrb	r3, [fp, #-387]
	strb	r3, [fp, #-379]
	mov	r3, #97
	strb	r3, [fp, #-386]
	b	.L16
.L20:
	ldrb	r3, [fp, #-386]
	strb	r3, [fp, #-378]
	mov	r3, #97
	strb	r3, [fp, #-385]
	b	.L17
.L19:
	ldrb	r3, [fp, #-385]
	strb	r3, [fp, #-377]
	sub	r2, fp, #380
	sub	r0, fp, #360
	sub	r3, fp, #184
	str	r3, [sp]
	mov	r3, #16
	mov	r1, #129
	bl	decrypt
	sub	r3, fp, #184
	ldr	r1, .L25+20
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #380
	mov	r0, r3
	bl	puts
	sub	r3, fp, #184
	mov	r0, r3
	bl	puts
	mov	r0, #0
	bl	exit
.L18:
	ldrb	r3, [fp, #-385]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-385]
.L17:
	ldrb	r3, [fp, #-385]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L19
	ldrb	r3, [fp, #-386]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-386]
.L16:
	ldrb	r3, [fp, #-386]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L20
	ldrb	r3, [fp, #-387]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-387]
.L15:
	ldrb	r3, [fp, #-387]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L21
	ldrb	r3, [fp, #-388]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-388]
.L14:
	ldrb	r3, [fp, #-388]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L22
	ldr	r0, .L25+24
	bl	puts
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC6
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	3460
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
