	.file	"650957.c"
	.intel_syntax noprefix
	.text
	.globl	gPortToBan
	.data
	.align 4
	.type	gPortToBan, @object
	.size	gPortToBan, 4
gPortToBan:
	.long	22
	.globl	gTimeToBan
	.align 4
	.type	gTimeToBan, @object
	.size	gTimeToBan, 4
gTimeToBan:
	.long	600
	.globl	gVerbose
	.bss
	.align 4
	.type	gVerbose, @object
	.size	gVerbose, 4
gVerbose:
	.zero	4
	.globl	szLogfile
	.data
	.align 32
	.type	szLogfile, @object
	.size	szLogfile, 257
szLogfile:
	.string	"/var/log/secure"
	.zero	241
	.globl	pEntries
	.bss
	.align 8
	.type	pEntries, @object
	.size	pEntries, 8
pEntries:
	.zero	8
	.globl	nEntries
	.align 4
	.type	nEntries, @object
	.size	nEntries, 4
nEntries:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.ascii	"Usage: %s [OPTIONS...]\nReads tail from SSH log file and ban"
	.ascii	"s IPs met more than given number of times\nSearches strings "
	.ascii	"like \"Jan  2 15:24:04 vps sshd[25017]: Failed password for "
	.ascii	"invalid user lym from 132.232.42.33 port 40490 ssh2\"and iss"
	.ascii	"ues command \"iptables -I INPUT 1 -s 132.232.42.33 -p 6 --dp"
	.ascii	"ort 22222 -j DROP\"\nMust be run as root.\n\nAvailable optio"
	.ascii	"ns are:\n-h: print this "
	.string	"help and exit\n-l <logfile>: read from this log file. Default is /var/log/secure.log. \n-v: increase verbosity\n\n-t <sec>: ban for this number of seconds [30-86400]. Default is 600. NOT IMPLEMENTED in v.0.1, \n\n-p <port>: port to ban [1-65535]. Default is 22\n\n"
	.text
	.globl	Help
	.type	Help, @function
Help:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Help, .-Help
	.section	.rodata
.LC1:
	.string	"Bad time-to-ban=%d, use -h\n"
.LC2:
	.string	"Bad port-to-ban=%d, use -h\n"
.LC3:
	.string	"Unknown argument, use -h"
.LC4:
	.string	"hl:vt:p:"
	.text
	.globl	ParseCmdLine
	.type	ParseCmdLine, @function
ParseCmdLine:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR opterr[rip], 0
	jmp	.L3
.L14:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 104
	cmp	eax, 14
	ja	.L4
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L9-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L8-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L4-.L6
	.long	.L7-.L6
	.long	.L4-.L6
	.long	.L5-.L6
	.text
.L5:
	mov	DWORD PTR gVerbose[rip], 1
	jmp	.L3
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Help
	mov	eax, -2
	jmp	.L11
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 256
	mov	rsi, rax
	lea	rdi, szLogfile[rip]
	call	strncpy@PLT
	jmp	.L3
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 29
	jle	.L12
	cmp	DWORD PTR -4[rbp], 86400
	jg	.L12
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR gTimeToBan[rip], eax
	jmp	.L3
.L12:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L11
.L8:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L13
	cmp	DWORD PTR -4[rbp], 65535
	jg	.L13
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR gPortToBan[rip], eax
	jmp	.L3
.L13:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L11
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L11
.L3:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC4[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L14
	mov	eax, DWORD PTR -12[rbp]
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ParseCmdLine, .-ParseCmdLine
	.section	.rodata
.LC5:
	.string	"Ctrl+C caught, exiting"
	.align 8
.LC6:
	.string	"/sbin/iptables -D INPUT -s %d.%d.%d.%d -p 6 --dport %d -j DROP"
	.align 8
.LC7:
	.string	"Sending command: %s, result = %d\n"
	.text
	.globl	CtrlChandler
	.type	CtrlChandler, @function
CtrlChandler:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -280[rbp], 0
	jmp	.L16
.L18:
	mov	rcx, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L17
	mov	ecx, DWORD PTR gPortToBan[rip]
	mov	rsi, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	movzx	r8d, al
	mov	rsi, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	shr	eax, 8
	movzx	edi, al
	mov	rsi, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	shr	eax, 16
	movzx	edx, al
	mov	r9, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -280[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 3
	add	rax, r9
	mov	eax, DWORD PTR [rax]
	shr	eax, 24
	mov	esi, eax
	lea	rax, -272[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -276[rbp], eax
	mov	edx, DWORD PTR -276[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -280[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR 8[rax], 0
.L17:
	add	DWORD PTR -280[rbp], 1
.L16:
	mov	eax, DWORD PTR nEntries[rip]
	cmp	DWORD PTR -280[rbp], eax
	jl	.L18
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	CtrlChandler, .-CtrlChandler
	.globl	InstallHupHandler
	.type	InstallHupHandler, @function
InstallHupHandler:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, CtrlChandler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigaction@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	InstallHupHandler, .-InstallHupHandler
	.section	.rodata
.LC8:
	.string	"rt"
	.align 8
.LC9:
	.string	"Could not open log file %s for reading, error %d\n"
.LC10:
	.string	"Log file is too small (%d)\n"
.LC11:
	.string	"Failed password"
.LC12:
	.string	" from "
.LC13:
	.string	"%d.%d.%d.%d"
	.align 8
.LC14:
	.string	"Attack #%d from IP %d.%d.%d.%d\n"
	.align 8
.LC15:
	.string	"Blocking this bastard from %d.%d.%d.%d\n"
	.align 8
.LC16:
	.string	"/sbin/iptables -I INPUT 1 -s %d.%d.%d.%d -p 6 --dport %d -j DROP"
	.align 8
.LC17:
	.string	"Added bastard from %d.%d.%d.%d into entry %d\n"
	.align 8
.LC18:
	.string	"No spare entry to add attacker from %s\n"
	.align 8
.LC19:
	.string	"Could not extract IP from: \"%s\""
	.align 8
.LC20:
	.string	"Could not extract date/time from \"%s\"\n"
.LC21:
	.string	"Log file seek error %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1488
	mov	DWORD PTR -1476[rbp], edi
	mov	QWORD PTR -1488[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -1488[rbp]
	mov	eax, DWORD PTR -1476[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ParseCmdLine
	mov	DWORD PTR -1432[rbp], eax
	cmp	DWORD PTR -1432[rbp], 0
	jns	.L23
	mov	eax, 1
	jmp	.L24
.L23:
	lea	rsi, .LC8[rip]
	lea	rdi, szLogfile[rip]
	call	fopen@PLT
	mov	QWORD PTR -1392[rbp], rax
	cmp	QWORD PTR -1392[rbp], 0
	jne	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	lea	rsi, szLogfile[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 2
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -1392[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 240000
	call	malloc@PLT
	mov	QWORD PTR pEntries[rip], rax
	mov	DWORD PTR nEntries[rip], 10000
	mov	rax, QWORD PTR pEntries[rip]
	mov	edx, 240000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L52:
	mov	edi, 1
	call	sleep@PLT
	lea	rsi, .LC8[rip]
	lea	rdi, szLogfile[rip]
	call	fopen@PLT
	mov	QWORD PTR -1392[rbp], rax
	cmp	QWORD PTR -1392[rbp], 0
	jne	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	lea	rsi, szLogfile[rip]
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L52
.L26:
	mov	rax, QWORD PTR -1392[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -1428[rbp], eax
	cmp	DWORD PTR -1428[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -1392[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -1424[rbp], eax
	cmp	DWORD PTR -1424[rbp], 9999
	jg	.L29
	mov	eax, DWORD PTR -1424[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -1392[rbp]
	mov	edx, 2
	mov	rsi, -10000
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -1428[rbp], eax
	mov	rdx, QWORD PTR -1392[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	jmp	.L31
.L51:
	lea	rax, -1040[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -1384[rbp], rax
	cmp	QWORD PTR -1384[rbp], 0
	je	.L31
	lea	rcx, -1040[rbp]
	lea	rax, -1328[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	movzx	eax, BYTE PTR -1319[rbp]
	cmp	al, 58
	jne	.L32
	movzx	eax, BYTE PTR -1316[rbp]
	cmp	al, 58
	jne	.L32
	lea	rax, -1328[rbp]
	add	rax, 7
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -1420[rbp], eax
	lea	rax, -1328[rbp]
	add	rax, 10
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -1416[rbp], eax
	lea	rax, -1328[rbp]
	add	rax, 13
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -1412[rbp], eax
	mov	eax, DWORD PTR -1420[rbp]
	imul	edx, eax, 3600
	mov	eax, DWORD PTR -1416[rbp]
	imul	eax, eax, 60
	add	edx, eax
	mov	eax, DWORD PTR -1412[rbp]
	add	eax, edx
	mov	DWORD PTR -1408[rbp], eax
	lea	rax, -1040[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -1376[rbp], rax
	cmp	QWORD PTR -1376[rbp], 0
	je	.L54
	add	QWORD PTR -1376[rbp], 6
	mov	rcx, QWORD PTR -1376[rbp]
	lea	rax, -1360[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	DWORD PTR -1452[rbp], 0
	mov	DWORD PTR -1448[rbp], 0
	jmp	.L34
.L38:
	mov	eax, DWORD PTR -1448[rbp]
	cdqe
	movzx	eax, BYTE PTR -1360[rbp+rax]
	cmp	al, 46
	jne	.L35
	add	DWORD PTR -1452[rbp], 1
.L35:
	mov	eax, DWORD PTR -1448[rbp]
	cdqe
	movzx	eax, BYTE PTR -1360[rbp+rax]
	cmp	al, 32
	jne	.L36
	mov	eax, DWORD PTR -1448[rbp]
	cdqe
	mov	BYTE PTR -1360[rbp+rax], 0
	jmp	.L37
.L36:
	add	DWORD PTR -1448[rbp], 1
.L34:
	mov	eax, DWORD PTR -1448[rbp]
	cmp	eax, 16
	jbe	.L38
.L37:
	cmp	DWORD PTR -1452[rbp], 3
	jne	.L39
	mov	DWORD PTR -1440[rbp], -1
	mov	DWORD PTR -1436[rbp], 1
	mov	DWORD PTR -1468[rbp], 0
	mov	DWORD PTR -1464[rbp], 0
	mov	DWORD PTR -1460[rbp], 0
	mov	DWORD PTR -1456[rbp], 0
	lea	rdi, -1456[rbp]
	lea	rsi, -1460[rbp]
	lea	rcx, -1464[rbp]
	lea	rdx, -1468[rbp]
	lea	rax, -1360[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -1404[rbp], eax
	mov	eax, DWORD PTR -1468[rbp]
	and	eax, 255
	mov	DWORD PTR -1400[rbp], eax
	sal	DWORD PTR -1400[rbp], 8
	mov	eax, DWORD PTR -1464[rbp]
	movzx	eax, al
	add	DWORD PTR -1400[rbp], eax
	sal	DWORD PTR -1400[rbp], 8
	mov	eax, DWORD PTR -1460[rbp]
	movzx	eax, al
	add	DWORD PTR -1400[rbp], eax
	sal	DWORD PTR -1400[rbp], 8
	mov	eax, DWORD PTR -1456[rbp]
	movzx	eax, al
	add	DWORD PTR -1400[rbp], eax
	mov	DWORD PTR -1444[rbp], 0
	jmp	.L40
.L47:
	mov	rcx, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -1444[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -1368[rbp], rax
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	je	.L41
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -1400[rbp], eax
	jne	.L42
	mov	DWORD PTR -1436[rbp], 0
	mov	rax, QWORD PTR -1368[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L55
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -1408[rbp], eax
	jg	.L45
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR 4[rax]
	sub	eax, DWORD PTR -1408[rbp]
	cmp	eax, 60000
	jle	.L56
.L45:
	mov	rax, QWORD PTR -1368[rbp]
	mov	edx, DWORD PTR -1408[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -1368[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	edi, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 8
	movzx	ecx, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 16
	movzx	edx, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 24
	mov	esi, eax
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 2
	jle	.L56
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	edi, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 8
	movzx	edx, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 16
	movzx	eax, al
	mov	rcx, QWORD PTR -1368[rbp]
	mov	ecx, DWORD PTR [rcx]
	shr	ecx, 24
	mov	esi, ecx
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR gPortToBan[rip]
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	r8d, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 8
	movzx	edi, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 16
	movzx	edx, al
	mov	rax, QWORD PTR -1368[rbp]
	mov	eax, DWORD PTR [rax]
	shr	eax, 24
	mov	esi, eax
	lea	rax, -1296[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -1296[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -1396[rbp], eax
	mov	edx, DWORD PTR -1396[rbp]
	lea	rax, -1296[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR -1368[rbp]
	mov	QWORD PTR 8[rdx], rax
	jmp	.L56
.L41:
	cmp	DWORD PTR -1440[rbp], 0
	jns	.L42
	mov	eax, DWORD PTR -1444[rbp]
	mov	DWORD PTR -1440[rbp], eax
.L42:
	add	DWORD PTR -1444[rbp], 1
.L40:
	mov	eax, DWORD PTR nEntries[rip]
	cmp	DWORD PTR -1444[rbp], eax
	jl	.L47
	jmp	.L44
.L55:
	nop
	jmp	.L44
.L56:
	nop
.L44:
	cmp	DWORD PTR -1436[rbp], 0
	je	.L54
	cmp	DWORD PTR -1440[rbp], 0
	js	.L49
	mov	rcx, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -1440[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -1408[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	rcx, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -1440[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	DWORD PTR 16[rax], 1
	mov	rcx, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -1440[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -1400[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rcx, QWORD PTR pEntries[rip]
	mov	eax, DWORD PTR -1440[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR 8[rax], 0
	mov	eax, DWORD PTR -1400[rbp]
	movzx	edi, al
	mov	eax, DWORD PTR -1400[rbp]
	shr	eax, 8
	movzx	edx, al
	mov	eax, DWORD PTR -1400[rbp]
	shr	eax, 16
	movzx	eax, al
	mov	ecx, DWORD PTR -1400[rbp]
	shr	ecx, 24
	mov	esi, ecx
	mov	ecx, DWORD PTR -1440[rbp]
	mov	r9d, ecx
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L54
.L49:
	lea	rax, -1360[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L54
.L39:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L54
.L32:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L31
.L54:
	nop
.L31:
	mov	rdx, QWORD PTR -1392[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L51
	jmp	.L30
.L28:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	mov	rax, QWORD PTR -1392[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L52
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"650957.c"
	.text
	.global	gPortToBan
	.data
	.align	2
	.type	gPortToBan, %object
	.size	gPortToBan, 4
gPortToBan:
	.word	22
	.global	gTimeToBan
	.align	2
	.type	gTimeToBan, %object
	.size	gTimeToBan, 4
gTimeToBan:
	.word	600
	.global	gVerbose
	.bss
	.align	2
	.type	gVerbose, %object
	.size	gVerbose, 4
gVerbose:
	.space	4
	.global	szLogfile
	.data
	.align	2
	.type	szLogfile, %object
	.size	szLogfile, 257
szLogfile:
	.ascii	"/var/log/secure\000"
	.space	241
	.global	pEntries
	.bss
	.align	2
	.type	pEntries, %object
	.size	pEntries, 4
pEntries:
	.space	4
	.global	nEntries
	.align	2
	.type	nEntries, %object
	.size	nEntries, 4
nEntries:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s [OPTIONS...]\012Reads tail from SSH log f"
	.ascii	"ile and bans IPs met more than given number of time"
	.ascii	"s\012Searches strings like \"Jan  2 15:24:04 vps ss"
	.ascii	"hd[25017]: Failed password for invalid user lym fro"
	.ascii	"m 132.232.42.33 port 40490 ssh2\"and issues command"
	.ascii	" \"iptables -I INPUT 1 -s 132.232.42.33 -p 6 --dpor"
	.ascii	"t 22222 -j DROP\"\012Must be run as root.\012\012Av"
	.ascii	"ailable options are:\012-h: print this help and exi"
	.ascii	"t\012-l <logfile>: read from this log file. Default"
	.ascii	" is /var/log/secure.log. \012-v: increase verbosity"
	.ascii	"\012\012-t <sec>: ban for this number of seconds [3"
	.ascii	"0-86400]. Default is 600. NOT IMPLEMENTED in v.0.1,"
	.ascii	" \012\012-p <port>: port to ban [1-65535]. Default "
	.ascii	"is 22\012\012\000"
	.text
	.align	2
	.global	Help
	.syntax unified
	.arm
	.fpu softvfp
	.type	Help, %function
Help:
	@ 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	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stdout
	.word	.LC0
	.size	Help, .-Help
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Bad time-to-ban=%d, use -h\012\000"
	.align	2
.LC2:
	.ascii	"Bad port-to-ban=%d, use -h\012\000"
	.align	2
.LC3:
	.ascii	"Unknown argument, use -h\000"
	.align	2
.LC4:
	.ascii	"hl:vt:p:\000"
	.text
	.align	2
	.global	ParseCmdLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	ParseCmdLine, %function
ParseCmdLine:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L17
	mov	r2, #0
	str	r2, [r3]
	b	.L5
.L16:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #104
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L12
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L11
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L10
	.word	.L6
	.word	.L6
	.word	.L6
	.word	.L9
	.word	.L6
	.word	.L7
.L7:
	ldr	r3, .L17+4
	mov	r2, #1
	str	r2, [r3]
	b	.L5
.L12:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Help
	mvn	r3, #1
	b	.L13
.L11:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #256
	mov	r1, r3
	ldr	r0, .L17+12
	bl	strncpy
	b	.L5
.L9:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	ble	.L14
	ldr	r3, [fp, #-8]
	ldr	r2, .L17+16
	cmp	r3, r2
	bgt	.L14
	ldr	r2, .L17+20
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L5
.L14:
	ldr	r1, [fp, #-8]
	ldr	r0, .L17+24
	bl	printf
	mvn	r3, #0
	b	.L13
.L10:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L15
	ldr	r3, [fp, #-8]
	cmp	r3, #65536
	bge	.L15
	ldr	r2, .L17+28
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L5
.L15:
	ldr	r1, [fp, #-8]
	ldr	r0, .L17+32
	bl	printf
	mvn	r3, #0
	b	.L13
.L6:
	ldr	r0, .L17+36
	bl	puts
	mvn	r3, #0
	b	.L13
.L5:
	ldr	r2, .L17+40
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L16
	ldr	r3, [fp, #-16]
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	opterr
	.word	gVerbose
	.word	optarg
	.word	szLogfile
	.word	86400
	.word	gTimeToBan
	.word	.LC1
	.word	gPortToBan
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	ParseCmdLine, .-ParseCmdLine
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Ctrl+C caught, exiting\000"
	.align	2
.LC6:
	.ascii	"/sbin/iptables -D INPUT -s %d.%d.%d.%d -p 6 --dport"
	.ascii	" %d -j DROP\000"
	.align	2
.LC7:
	.ascii	"Sending command: %s, result = %d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CtrlChandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	CtrlChandler, %function
CtrlChandler:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-280]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L24+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-272]
	b	.L20
.L22:
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	lsr	ip, r3, #24
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	lsr	r3, r3, #16
	and	lr, r3, #255
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	lsr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L24+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-272]
	lsl	r2, r2, #4
	add	r2, r1, r2
	ldr	r2, [r2]
	and	r2, r2, #255
	ldr	r1, .L24+12
	ldr	r1, [r1]
	sub	r0, fp, #264
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, .L24+16
	bl	sprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	system
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	mov	r1, r3
	ldr	r0, .L24+20
	bl	printf
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
.L21:
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
.L20:
	ldr	r3, .L24+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-272]
	cmp	r2, r3
	blt	.L22
	mov	r0, #1
	bl	exit
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	.LC5
	.word	pEntries
	.word	gPortToBan
	.word	.LC6
	.word	.LC7
	.word	nEntries
	.size	CtrlChandler, .-CtrlChandler
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	InstallHupHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	InstallHupHandler, %function
InstallHupHandler:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L28+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigaction
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC9
	.word	CtrlChandler
	.size	InstallHupHandler, .-InstallHupHandler
	.section	.rodata
	.align	2
.LC10:
	.ascii	"rt\000"
	.align	2
.LC11:
	.ascii	"Could not open log file %s for reading, error %d\012"
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"Log file is too small (%d)\012\000"
	.align	2
.LC13:
	.ascii	"Failed password\000"
	.align	2
.LC14:
	.ascii	" from \000"
	.align	2
.LC15:
	.ascii	"%d.%d.%d.%d\000"
	.align	2
.LC16:
	.ascii	"Attack #%d from IP %d.%d.%d.%d\012\000"
	.align	2
.LC17:
	.ascii	"Blocking this bastard from %d.%d.%d.%d\012\000"
	.align	2
.LC18:
	.ascii	"/sbin/iptables -I INPUT 1 -s %d.%d.%d.%d -p 6 --dpo"
	.ascii	"rt %d -j DROP\000"
	.align	2
.LC19:
	.ascii	"Added bastard from %d.%d.%d.%d into entry %d\012\000"
	.align	2
.LC20:
	.ascii	"No spare entry to add attacker from %s\012\000"
	.align	2
.LC21:
	.ascii	"Could not extract IP from: \"%s\"\000"
	.align	2
.LC22:
	.ascii	"Could not extract date/time from \"%s\"\012\000"
	.align	2
.LC23:
	.ascii	"Log file seek error %d\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1440
	sub	sp, sp, #8
	str	r0, [fp, #-1432]
	str	r1, [fp, #-1436]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-1436]
	ldr	r0, [fp, #-1432]
	bl	ParseCmdLine
	str	r0, [fp, #-1392]
	ldr	r3, [fp, #-1392]
	cmp	r3, #0
	bge	.L31
	mov	r3, #1
	b	.L32
.L31:
	ldr	r1, .L65+4
	ldr	r0, .L65+8
	bl	fopen
	str	r0, [fp, #-1388]
	ldr	r3, [fp, #-1388]
	cmp	r3, #0
	bne	.L33
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L65+8
	ldr	r0, .L65+12
	bl	printf
	mov	r3, #2
	b	.L32
.L33:
	ldr	r0, [fp, #-1388]
	bl	fclose
	ldr	r0, .L65+16
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L65+20
	str	r2, [r3]
	ldr	r3, .L65+24
	ldr	r2, .L65+28
	str	r2, [r3]
	ldr	r3, .L65+20
	ldr	r3, [r3]
	ldr	r2, .L65+16
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L60:
	mov	r0, #1
	bl	sleep
	ldr	r1, .L65+4
	ldr	r0, .L65+8
	bl	fopen
	str	r0, [fp, #-1388]
	ldr	r3, [fp, #-1388]
	cmp	r3, #0
	bne	.L34
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L65+8
	ldr	r0, .L65+12
	bl	printf
	b	.L60
.L34:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-1388]
	bl	fseek
	str	r0, [fp, #-1384]
	ldr	r3, [fp, #-1384]
	cmp	r3, #0
	bne	.L36
	ldr	r0, [fp, #-1388]
	bl	ftell
	str	r0, [fp, #-1380]
	ldr	r3, [fp, #-1380]
	ldr	r2, .L65+32
	cmp	r3, r2
	bgt	.L37
	ldr	r1, [fp, #-1380]
	ldr	r0, .L65+36
	bl	printf
	b	.L38
.L37:
	mov	r2, #2
	ldr	r1, .L65+40
	ldr	r0, [fp, #-1388]
	bl	fseek
	str	r0, [fp, #-1384]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1388]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	b	.L39
.L59:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L65+44
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-1376]
	ldr	r3, [fp, #-1376]
	cmp	r3, #0
	beq	.L39
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r0, fp, #1312
	sub	r0, r0, #4
	mov	r2, #15
	mov	r1, r3
	bl	strncpy
	ldrb	r3, [fp, #-1307]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L40
	ldrb	r3, [fp, #-1304]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L40
	sub	r3, fp, #1312
	sub	r3, r3, #4
	add	r3, r3, #7
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-1372]
	sub	r3, fp, #1312
	sub	r3, r3, #4
	add	r3, r3, #10
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-1368]
	sub	r3, fp, #1312
	sub	r3, r3, #4
	add	r3, r3, #13
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-1364]
	ldr	r2, [fp, #-1372]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	mov	r1, r2
	ldr	r2, [fp, #-1368]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [fp, #-1364]
	add	r3, r2, r3
	str	r3, [fp, #-1360]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L65+48
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-1356]
	ldr	r3, [fp, #-1356]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-1356]
	add	r3, r3, #6
	str	r3, [fp, #-1356]
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	ldr	r1, [fp, #-1356]
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	str	r3, [fp, #-1412]
	mov	r3, #0
	str	r3, [fp, #-1408]
	b	.L42
.L46:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1408]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L43
	ldr	r3, [fp, #-1412]
	add	r3, r3, #1
	str	r3, [fp, #-1412]
.L43:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1408]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L44
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1408]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	b	.L45
.L44:
	ldr	r3, [fp, #-1408]
	add	r3, r3, #1
	str	r3, [fp, #-1408]
.L42:
	ldr	r3, [fp, #-1408]
	cmp	r3, #16
	bls	.L46
.L45:
	ldr	r3, [fp, #-1412]
	cmp	r3, #3
	bne	.L47
	mvn	r3, #0
	str	r3, [fp, #-1400]
	mov	r3, #1
	str	r3, [fp, #-1396]
	mov	r3, #0
	str	r3, [fp, #-1428]
	mov	r3, #0
	str	r3, [fp, #-1424]
	mov	r3, #0
	str	r3, [fp, #-1420]
	mov	r3, #0
	str	r3, [fp, #-1416]
	sub	r2, fp, #1408
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r1, fp, #1424
	sub	r1, r1, #4
	sub	r0, fp, #1328
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r3, fp, #1408
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #1408
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L65+52
	bl	__isoc99_sscanf
	str	r0, [fp, #-1352]
	ldr	r3, [fp, #-1428]
	and	r3, r3, #255
	str	r3, [fp, #-1348]
	ldr	r3, [fp, #-1348]
	lsl	r3, r3, #8
	str	r3, [fp, #-1348]
	ldr	r3, [fp, #-1424]
	and	r3, r3, #255
	ldr	r2, [fp, #-1348]
	add	r3, r2, r3
	str	r3, [fp, #-1348]
	ldr	r3, [fp, #-1348]
	lsl	r3, r3, #8
	str	r3, [fp, #-1348]
	ldr	r3, [fp, #-1420]
	and	r3, r3, #255
	ldr	r2, [fp, #-1348]
	add	r3, r2, r3
	str	r3, [fp, #-1348]
	ldr	r3, [fp, #-1348]
	lsl	r3, r3, #8
	str	r3, [fp, #-1348]
	ldr	r3, [fp, #-1416]
	and	r3, r3, #255
	ldr	r2, [fp, #-1348]
	add	r3, r2, r3
	str	r3, [fp, #-1348]
	mov	r3, #0
	str	r3, [fp, #-1404]
	b	.L48
.L55:
	ldr	r3, .L65+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-1404]
	lsl	r3, r3, #4
	add	r3, r2, r3
	str	r3, [fp, #-1344]
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	ldr	r2, [fp, #-1348]
	cmp	r2, r3
	bne	.L50
	mov	r3, #0
	str	r3, [fp, #-1396]
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-1360]
	cmp	r2, r3
	bgt	.L53
	ldr	r3, [fp, #-1344]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-1360]
	sub	r3, r2, r3
	ldr	r2, .L65+56
	cmp	r3, r2
	ble	.L64
.L53:
	ldr	r3, [fp, #-1344]
	ldr	r2, [fp, #-1360]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3, #12]
	add	r2, r3, #1
	ldr	r3, [fp, #-1344]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-1344]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r0, r3, #24
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r3, r3, #16
	and	ip, r3, #255
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, [fp, #-1344]
	ldr	r2, [r2]
	and	r2, r2, #255
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L65+60
	bl	printf
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3, #12]
	cmp	r3, #2
	ble	.L64
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r1, r3, #24
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r3, r3, #16
	and	r2, r3, #255
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r3, r3, #8
	and	r0, r3, #255
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	and	r3, r3, #255
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L65+64
	bl	printf
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	ip, r3, #24
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r3, r3, #16
	and	lr, r3, #255
	ldr	r3, [fp, #-1344]
	ldr	r3, [r3]
	lsr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, [fp, #-1344]
	ldr	r2, [r2]
	and	r2, r2, #255
	ldr	r1, .L65+68
	ldr	r1, [r1]
	sub	r0, fp, #1280
	sub	r0, r0, #4
	sub	r0, r0, #8
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, .L65+72
	bl	sprintf
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	system
	str	r0, [fp, #-1340]
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1340]
	mov	r1, r3
	ldr	r0, .L65+76
	bl	printf
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-1344]
	str	r2, [r3, #8]
	b	.L64
.L49:
	ldr	r3, [fp, #-1400]
	cmp	r3, #0
	bge	.L50
	ldr	r3, [fp, #-1404]
	str	r3, [fp, #-1400]
.L50:
	ldr	r3, [fp, #-1404]
	add	r3, r3, #1
	str	r3, [fp, #-1404]
.L48:
	ldr	r3, .L65+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-1404]
	cmp	r2, r3
	blt	.L55
	b	.L52
.L63:
	nop
	b	.L52
.L64:
	nop
.L52:
	ldr	r3, [fp, #-1396]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-1400]
	cmp	r3, #0
	blt	.L57
	ldr	r3, .L65+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-1400]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1360]
	str	r2, [r3, #4]
	ldr	r3, .L65+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-1400]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #12]
	ldr	r3, .L65+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-1400]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-1348]
	str	r2, [r3]
	ldr	r3, .L65+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-1400]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-1348]
	lsr	r1, r3, #24
	ldr	r3, [fp, #-1348]
	lsr	r3, r3, #16
	and	r0, r3, #255
	ldr	r3, [fp, #-1348]
	lsr	r3, r3, #8
	and	ip, r3, #255
	ldr	r3, [fp, #-1348]
	and	r3, r3, #255
	ldr	r2, [fp, #-1400]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L65+80
	bl	printf
	b	.L62
.L57:
	sub	r3, fp, #1328
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L65+84
	bl	printf
	b	.L62
.L47:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L65+88
	bl	printf
	b	.L62
.L40:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L65+92
	bl	printf
	b	.L39
.L62:
	nop
.L39:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1388]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	b	.L38
.L36:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L65+96
	bl	printf
.L38:
	ldr	r0, [fp, #-1388]
	bl	fclose
	b	.L60
.L32:
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC24
	.word	.LC10
	.word	szLogfile
	.word	.LC11
	.word	160000
	.word	pEntries
	.word	nEntries
	.word	10000
	.word	9999
	.word	.LC12
	.word	-10000
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	60000
	.word	.LC16
	.word	.LC17
	.word	gPortToBan
	.word	.LC18
	.word	.LC7
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
