	.file	"76405.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"wb"
	.align 8
.LC2:
	.string	"Not valid WeChat data!\nExiting..."
.LC3:
	.string	"Successfully decrypted!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -36[rbp], 0
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -36[rbp]
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	WORD PTR -34[rbp], -9985
	mov	DWORD PTR -84[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	edx, BYTE PTR -36[rbp+rax]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	movzx	eax, BYTE PTR -34[rbp+rax]
	xor	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	BYTE PTR -36[rbp+rax], dl
	add	DWORD PTR -84[rbp], 1
.L2:
	cmp	DWORD PTR -84[rbp], 1
	jle	.L3
	movzx	edx, BYTE PTR -36[rbp]
	movzx	eax, BYTE PTR -35[rbp]
	cmp	dl, al
	je	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, -1
	jmp	.L10
.L4:
	movzx	eax, BYTE PTR -36[rbp]
	mov	BYTE PTR -85[rbp], al
	mov	DWORD PTR -76[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	xor	al, BYTE PTR -85[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], dl
	add	DWORD PTR -80[rbp], 1
.L7:
	cmp	DWORD PTR -80[rbp], 15
	jle	.L8
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L6:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 16
	je	.L9
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"76405.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"Not valid WeChat data!\012Exiting...\000"
	.align	2
.LC3:
	.ascii	"Successfully decrypted!\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-48]
	ldr	r1, .L12+4
	ldr	r0, [fp, #-52]
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r1, .L12+8
	ldr	r0, [fp, #-48]
	bl	fopen
	str	r0, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	mov	r3, #0
	strh	r3, [fp, #-32]	@ movhi
	sub	r0, fp, #32
	ldr	r3, [fp, #-44]
	mov	r2, #2
	mov	r1, #1
	bl	fread
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	fseek
	mvn	r3, #9984
	strh	r3, [fp, #-28]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L2
.L3:
	sub	r2, fp, #32
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #28
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r1, r3, #255
	sub	r2, fp, #32
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L2:
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	ble	.L3
	ldrb	r2, [fp, #-32]	@ zero_extendqisi2
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L4
	ldr	r0, .L12+12
	bl	puts
	ldr	r0, [fp, #-44]
	bl	fclose
	ldr	r0, [fp, #-40]
	bl	fclose
	mvn	r3, #0
	b	.L10
.L4:
	ldrb	r3, [fp, #-32]
	strb	r3, [fp, #-61]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L7
.L8:
	sub	r2, fp, #24
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-61]
	eor	r3, r3, r2
	and	r1, r3, #255
	sub	r2, fp, #24
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L7:
	ldr	r3, [fp, #-56]
	cmp	r3, #15
	ble	.L8
	sub	r0, fp, #24
	ldr	r3, [fp, #-40]
	mov	r2, #16
	mov	r1, #1
	bl	fwrite
.L6:
	sub	r0, fp, #24
	ldr	r3, [fp, #-44]
	mov	r2, #16
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #16
	beq	.L9
	ldr	r2, [fp, #-36]
	sub	r0, fp, #24
	ldr	r3, [fp, #-40]
	mov	r1, #1
	bl	fwrite
	ldr	r0, .L12+16
	bl	puts
	ldr	r0, [fp, #-44]
	bl	fclose
	ldr	r0, [fp, #-40]
	bl	fclose
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
