	.file	"extr_2283.c_MakeHTTPRequest.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TigerTeam 514"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"error chungo en HttpOpenRequest"
	.align 8
.LC2:
	.string	"[+] Sending Exploit ( %i bytes)\n"
	.section	.rodata.str1.1
.LC3:
	.string	"[+] Ignoring unknown CA..."
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Se ha enviado mal la peticion HTTP: %i\n"
	.align 8
.LC5:
	.string	"Control de Errores - bQuery Vale NULL"
	.text
	.p2align 4
	.globl	MakeHTTPRequest
	.type	MakeHTTPRequest, @function
MakeHTTPRequest:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, 4
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	DWORD PTR 8[rsp], r8d
	mov	DWORD PTR 12[rsp], esi
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rcx
	xor	ecx, ecx
	mov	DWORD PTR 28[rsp], 32
	call	malloc@PLT
	xor	esi, esi
	mov	edx, 4
	mov	rdi, rax
	mov	r12, rax
	call	memset@PLT
	mov	esi, DWORD PTR INTERNET_OPEN_TYPE_PRECONFIG[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	lea	rdi, .LC0[rip]
	call	InternetOpen@PLT
	test	rax, rax
	je	.L1
	push	1
	.cfi_def_cfa_offset 152
	mov	r9d, DWORD PTR INTERNET_SERVICE_HTTP[rip]
	xor	r8d, r8d
	mov	rsi, rbx
	push	0
	.cfi_def_cfa_offset 160
	mov	r10d, DWORD PTR 28[rsp]
	mov	rdi, rax
	xor	ecx, ecx
	mov	rbp, rax
	mov	edx, r10d
	call	InternetConnect@PLT
	pop	rdi
	.cfi_def_cfa_offset 152
	pop	r8
	.cfi_def_cfa_offset 144
	mov	r9d, DWORD PTR 8[rsp]
	mov	rbx, rax
	test	r9d, r9d
	je	.L25
	push	0
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR INTERNET_FLAG_IGNORE_CERT_CN_INVALID[rip]
	or	eax, DWORD PTR INTERNET_FLAG_SECURE[rip]
	or	eax, DWORD PTR INTERNET_FLAG_IGNORE_CERT_DATE_INVALID[rip]
.L22:
	push	rax
	.cfi_def_cfa_offset 160
	mov	rsi, r14
	xor	ecx, ecx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdx, r15
	mov	rdi, rbx
	call	HttpOpenRequest@PLT
	pop	rcx
	.cfi_def_cfa_offset 152
	pop	rsi
	.cfi_def_cfa_offset 144
	mov	r14, rax
	test	rax, rax
	je	.L26
	test	r13, r13
	je	.L27
	mov	rdi, r13
	call	strlen@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	mov	rdi, r13
	call	strlen@PLT
	lea	rdi, hdrs.2016[rip]
	mov	r15d, eax
	call	strlen@PLT
	mov	r8d, r15d
	mov	rcx, r13
	mov	rdi, r14
	mov	edx, eax
	lea	rsi, hdrs.2016[rip]
	call	HttpSendRequest@PLT
	test	eax, eax
	jne	.L7
	mov	edx, DWORD PTR 8[rsp]
	test	edx, edx
	jne	.L28
	test	eax, eax
	je	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	lea	r15, 28[rsp]
	lea	r13, 32[rsp]
	xor	r8d, r8d
	mov	rdi, r14
	mov	esi, DWORD PTR HTTP_QUERY_STATUS_CODE[rip]
	mov	rcx, r15
	mov	rdx, r13
	call	HttpQueryInfo@PLT
	test	rax, rax
	je	.L30
	mov	rdi, r13
	call	atol@PLT
	mov	rdx, r13
	xor	r8d, r8d
	mov	rcx, r15
	mov	DWORD PTR [r12], eax
	mov	esi, DWORD PTR HTTP_QUERY_CONTENT_LENGTH[rip]
	mov	rdi, r14
	mov	DWORD PTR 28[rsp], 32
	call	HttpQueryInfo@PLT
	mov	rdi, r13
	call	atol@PLT
	mov	DWORD PTR 4[r12], eax
	mov	r13, rax
	test	eax, eax
	je	.L31
	lea	edi, 1[rax]
	call	malloc@PLT
	mov	edx, r13d
	lea	rcx, 24[rsp]
	mov	rdi, r14
	mov	QWORD PTR 8[r12], rax
	mov	rsi, rax
	call	InternetReadFile@PLT
	movsx	rax, DWORD PTR 4[r12]
	mov	rdx, QWORD PTR 8[r12]
	mov	BYTE PTR [rdx+rax], 0
.L23:
	mov	rdi, r14
	call	InternetCloseHandle@PLT
	mov	rdi, rbx
	call	InternetCloseHandle@PLT
	mov	rdi, rbp
	call	InternetCloseHandle@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	push	0
	.cfi_remember_state
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR INTERNET_FLAG_RELOAD[rip]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	lea	r15, 20[rsp]
	mov	DWORD PTR 16[rsp], 4
	call	puts@PLT
	mov	edx, r15d
	lea	rcx, 16[rsp]
	mov	rdi, r14
	mov	esi, DWORD PTR INTERNET_OPTION_SECURITY_FLAGS[rip]
	call	InternetQueryOption@PLT
	mov	rdx, r15
	mov	ecx, 4
	mov	rdi, r14
	mov	esi, DWORD PTR INTERNET_OPTION_SECURITY_FLAGS[rip]
	mov	eax, DWORD PTR SECURITY_FLAG_IGNORE_UNKNOWN_CA[rip]
	or	DWORD PTR 20[rsp], eax
	call	InternetSetOption@PLT
	mov	rdi, r13
	call	strlen@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	mov	rdi, r13
	call	strlen@PLT
	lea	rdi, hdrs.2016[rip]
	mov	r15d, eax
	call	strlen@PLT
	mov	r8d, r15d
	mov	rcx, r13
	mov	rdi, r14
	mov	edx, eax
	lea	rsi, hdrs.2016[rip]
	call	HttpSendRequest@PLT
	test	eax, eax
	jne	.L7
.L29:
	call	GetLastError@PLT
	lea	rdi, .LC4[rip]
	mov	esi, eax
	xor	eax, eax
	call	printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, hdrs.2016[rip]
	call	strlen@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdi, r14
	mov	edx, eax
	lea	rsi, hdrs.2016[rip]
	call	HttpSendRequest@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	QWORD PTR 8[r12], 0
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	MakeHTTPRequest, .-MakeHTTPRequest
	.data
	.align 32
	.type	hdrs.2016, @object
	.size	hdrs.2016, 48
hdrs.2016:
	.string	"Content-Type: application/x-www-form-urlencoded"
	.comm	SECURITY_FLAG_IGNORE_UNKNOWN_CA,4,4
	.comm	INTERNET_SERVICE_HTTP,4,4
	.comm	INTERNET_OPTION_SECURITY_FLAGS,4,4
	.comm	INTERNET_OPEN_TYPE_PRECONFIG,4,4
	.comm	INTERNET_FLAG_SECURE,4,4
	.comm	INTERNET_FLAG_RELOAD,4,4
	.comm	INTERNET_FLAG_IGNORE_CERT_DATE_INVALID,4,4
	.comm	INTERNET_FLAG_IGNORE_CERT_CN_INVALID,4,4
	.comm	HTTP_QUERY_STATUS_CODE,4,4
	.comm	HTTP_QUERY_CONTENT_LENGTH,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_2283.c_MakeHTTPRequest.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TigerTeam 514\000"
	.align	2
.LC1:
	.ascii	"error chungo en HttpOpenRequest\000"
	.align	2
.LC2:
	.ascii	"[+] Sending Exploit ( %i bytes)\012\000"
	.align	2
.LC3:
	.ascii	"[+] Ignoring unknown CA...\000"
	.align	2
.LC4:
	.ascii	"Se ha enviado mal la peticion HTTP: %i\012\000"
	.align	2
.LC5:
	.ascii	"Control de Errores - bQuery Vale NULL\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MakeHTTPRequest
	.syntax unified
	.arm
	.fpu softvfp
	.type	MakeHTTPRequest, %function
MakeHTTPRequest:
	@ args = 8, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #32
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r3
	ldr	r3, .L28
	sub	sp, sp, #84
	mov	r10, r0
	mov	r0, #4
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	mov	fp, r1
	mov	r8, r2
	str	ip, [sp, #40]
	ldr	r5, [sp, #120]
	ldr	r7, [sp, #124]
	bl	malloc
	mov	r6, #0
	mov	r4, r0
	ldr	r1, .L28+4
	str	r6, [sp]
	mov	r3, r6
	mov	r2, r6
	ldr	r1, [r1]
	ldr	r0, .L28+8
	str	r6, [r4]
	bl	InternetOpen
	subs	r3, r0, #0
	str	r3, [sp, #20]
	beq	.L1
	mov	ip, #1
	ldr	r2, .L28+12
	str	r6, [sp, #8]
	ldr	lr, [r2]
	mov	r1, r10
	mov	r2, fp
	mov	r3, r6
	str	r6, [sp]
	str	lr, [sp, #4]
	str	ip, [sp, #12]
	bl	InternetConnect
	cmp	r5, r6
	mov	r10, r0
	beq	.L21
	ldr	ip, .L28+16
	ldr	r1, .L28+20
	ldr	r2, .L28+24
	ldr	r1, [r1]
	ldr	ip, [ip]
	ldr	r2, [r2]
	orr	ip, ip, r1
	orr	ip, ip, r2
	mov	r1, r8
	mov	r3, r6
	mov	r2, r9
	str	r6, [sp, #12]
	str	r6, [sp, #4]
	str	r6, [sp]
	str	ip, [sp, #8]
	bl	HttpOpenRequest
	mov	r8, r0
.L4:
	cmp	r8, #0
	beq	.L22
	cmp	r7, #0
	beq	.L23
	mov	r0, r7
	bl	strlen
	mov	r1, r0
	ldr	r0, .L28+28
	bl	printf
	ldr	r0, .L28+32
	bl	strlen
	mov	r9, r0
	mov	r0, r7
	bl	strlen
	mov	r2, r9
	str	r0, [sp]
	mov	r3, r7
	mov	r0, r8
	ldr	r1, .L28+32
	bl	HttpSendRequest
	subs	r5, r5, #0
	movne	r5, #1
	cmp	r0, #0
	movne	r5, #0
	cmp	r5, #0
	bne	.L24
.L8:
	cmp	r0, #0
	beq	.L25
.L7:
	mov	r7, #0
	ldr	r3, .L28+36
	str	r7, [sp]
	ldr	r1, [r3]
	mov	r0, r8
	add	r3, sp, #40
	add	r2, sp, #44
	bl	HttpQueryInfo
	cmp	r0, r7
	beq	.L26
	add	r0, sp, #44
	bl	atol
	mov	ip, #32
	ldr	r2, .L28+40
	str	r7, [sp]
	ldr	r1, [r2]
	add	r3, sp, #40
	add	r2, sp, #44
	str	r0, [r4]
	mov	r0, r8
	str	ip, [sp, #40]
	bl	HttpQueryInfo
	add	r0, sp, #44
	bl	atol
	mov	r5, r0
	cmp	r0, #0
	str	r0, [r4, #4]
	streq	r5, [r4, #8]
	moveq	r0, r8
	beq	.L19
	add	r0, r5, #1
	bl	malloc
	mov	r1, r0
	mov	r2, r5
	add	r3, sp, #36
	mov	r0, r8
	str	r1, [r4, #8]
	bl	InternetReadFile
	mov	r0, r8
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	strb	r7, [r2, r3]
.L19:
	bl	InternetCloseHandle
	mov	r0, r10
	bl	InternetCloseHandle
	ldr	r0, [sp, #20]
	bl	InternetCloseHandle
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, .L28+44
	str	r5, [sp, #12]
	ldr	r3, [r3]
	mov	r1, r8
	str	r3, [sp, #8]
	mov	r2, r9
	mov	r3, r5
	str	r5, [sp, #4]
	str	r5, [sp]
	bl	HttpOpenRequest
	mov	r8, r0
	b	.L4
.L23:
	ldr	r0, .L28+32
	bl	strlen
	mov	r3, r7
	mov	r2, r0
	ldr	r1, .L28+32
	mov	r0, r8
	str	r7, [sp]
	bl	HttpSendRequest
	b	.L7
.L26:
	ldr	r0, .L28+48
	bl	puts
	b	.L1
.L24:
	mov	r9, #4
	ldr	r5, .L28+52
	ldr	r0, .L28+56
	str	r9, [sp, #28]
	bl	puts
	ldr	r1, [r5]
	add	r2, sp, #32
	add	r3, sp, #28
	mov	r0, r8
	bl	InternetQueryOption
	ldr	r3, .L28+60
	ldr	ip, [sp, #32]
	ldr	r0, [r3]
	add	r2, sp, #32
	orr	ip, ip, r0
	mov	r3, r9
	ldr	r1, [r5]
	mov	r0, r8
	str	ip, [sp, #32]
	bl	InternetSetOption
	mov	r0, r7
	bl	strlen
	mov	r1, r0
	ldr	r0, .L28+28
	bl	printf
	ldr	r0, .L28+32
	bl	strlen
	mov	r5, r0
	mov	r0, r7
	bl	strlen
	mov	r2, r5
	str	r0, [sp]
	mov	r3, r7
	mov	r0, r8
	ldr	r1, .L28+32
	bl	HttpSendRequest
	b	.L8
.L25:
	bl	GetLastError
	mov	r1, r0
	ldr	r0, .L28+64
	bl	printf
	b	.L1
.L22:
	ldr	r0, .L28+68
	bl	puts
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC6
	.word	INTERNET_OPEN_TYPE_PRECONFIG
	.word	.LC0
	.word	INTERNET_SERVICE_HTTP
	.word	INTERNET_FLAG_IGNORE_CERT_CN_INVALID
	.word	INTERNET_FLAG_SECURE
	.word	INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
	.word	.LC2
	.word	.LANCHOR0
	.word	HTTP_QUERY_STATUS_CODE
	.word	HTTP_QUERY_CONTENT_LENGTH
	.word	INTERNET_FLAG_RELOAD
	.word	.LC5
	.word	INTERNET_OPTION_SECURITY_FLAGS
	.word	.LC3
	.word	SECURITY_FLAG_IGNORE_UNKNOWN_CA
	.word	.LC4
	.word	.LC1
	.size	MakeHTTPRequest, .-MakeHTTPRequest
	.comm	SECURITY_FLAG_IGNORE_UNKNOWN_CA,4,4
	.comm	INTERNET_SERVICE_HTTP,4,4
	.comm	INTERNET_OPTION_SECURITY_FLAGS,4,4
	.comm	INTERNET_OPEN_TYPE_PRECONFIG,4,4
	.comm	INTERNET_FLAG_SECURE,4,4
	.comm	INTERNET_FLAG_RELOAD,4,4
	.comm	INTERNET_FLAG_IGNORE_CERT_DATE_INVALID,4,4
	.comm	INTERNET_FLAG_IGNORE_CERT_CN_INVALID,4,4
	.comm	HTTP_QUERY_STATUS_CODE,4,4
	.comm	HTTP_QUERY_CONTENT_LENGTH,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	hdrs.4300, %object
	.size	hdrs.4300, 48
hdrs.4300:
	.ascii	"Content-Type: application/x-www-form-urlencoded\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
