	.file	"extr_41542.c_spawnShell.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cmd.exe"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"\n[-] CreateProcess failed (%d)\n\n"
	.text
	.p2align 4
	.globl	spawnShell
	.type	spawnShell, @function
spawnShell:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 20
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 72
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rbp, 32[rsp]
	mov	rbx, rsp
	mov	rdi, rbp
	call	ZeroMemory@PLT
	mov	esi, 20
	mov	rdi, rbx
	call	ZeroMemory@PLT
	mov	eax, DWORD PTR STARTF_USESHOWWINDOW[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	DWORD PTR [rsp], 20
	mov	r9d, DWORD PTR CREATE_NEW_CONSOLE[rip]
	lea	rsi, .LC0[rip]
	xor	edi, edi
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR SW_SHOWNORMAL[rip]
	mov	r8d, DWORD PTR TRUE[rip]
	mov	DWORD PTR 12[rsp], eax
	push	rbp
	.cfi_def_cfa_offset 104
	push	rbx
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	CreateProcess@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	test	eax, eax
	je	.L7
	mov	edi, DWORD PTR 40[rsp]
	call	CloseHandle@PLT
	mov	edi, DWORD PTR 36[rsp]
	call	CloseHandle@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	call	GetLastError@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	printf@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spawnShell, .-spawnShell
	.comm	TRUE,4,4
	.comm	SW_SHOWNORMAL,4,4
	.comm	STARTF_USESHOWWINDOW,4,4
	.comm	CREATE_NEW_CONSOLE,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_41542.c_spawnShell.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cmd.exe\000"
	.align	2
.LC1:
	.ascii	"\012[-] CreateProcess failed (%d)\012\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	spawnShell
	.syntax unified
	.arm
	.fpu softvfp
	.type	spawnShell, %function
spawnShell:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #76
	ldr	r3, .L9
	add	r5, sp, #48
	mov	r1, #20
	add	r4, sp, #28
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	bl	ZeroMemory
	mov	r1, #20
	mov	r0, r4
	bl	ZeroMemory
	mov	r3, #0
	mov	ip, #20
	ldr	r1, .L9+4
	ldr	r2, .L9+8
	ldr	r0, [r1]
	ldr	r1, .L9+12
	ldr	r2, [r2]
	ldr	lr, .L9+16
	str	r5, [sp, #20]
	ldr	r1, [r1]
	ldr	lr, [lr]
	str	r1, [sp, #44]
	str	r0, [sp, #4]
	str	r2, [sp]
	mov	r0, r3
	mov	r2, r3
	ldr	r1, .L9+20
	str	r4, [sp, #16]
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	lr, [sp, #40]
	str	ip, [sp, #28]
	bl	CreateProcess
	cmp	r0, #0
	beq	.L7
	ldr	r0, [sp, #56]
	bl	CloseHandle
	ldr	r0, [sp, #52]
	bl	CloseHandle
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	bl	GetLastError
	mov	r1, r0
	ldr	r0, .L9+24
	bl	printf
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	CREATE_NEW_CONSOLE
	.word	TRUE
	.word	STARTF_USESHOWWINDOW
	.word	SW_SHOWNORMAL
	.word	.LC0
	.word	.LC1
	.size	spawnShell, .-spawnShell
	.comm	TRUE,4,4
	.comm	SW_SHOWNORMAL,4,4
	.comm	STARTF_USESHOWWINDOW,4,4
	.comm	CREATE_NEW_CONSOLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
