Function at 0x140049030
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x800]
sub rsp, 0x900
mov rax, qword [0x14006c010]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
mov rdi, rdx
mov qword [rbp - 0x80], rdx
mov qword [rsp + 0x78], rcx
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x58], rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
mov qword [rbp - 0x10], r12
mov ebx, r12d
mov qword [rbp], rbx
mov esi, 0xf
mov qword [rbp + 8], rsi
mov byte [rbp - 0x10], bl
test rax, rax
je 0x1400495ba
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400490c4
mov rdx, qword [rdi]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x1400495ba
nop dword [rax]
lea r9, [rbp + 0x10]
mov r8d, 0x7d0
lea rdx, [rbp + 0x20]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [rbp + 0x10]
mov rax, rsi
sub rax, rbx
cmp rdi, rax
ja 0x140049142
lea rax, [rbx + rdi]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp rsi, 0x10
cmovae rax, qword [rbp - 0x10]
add rbx, rax
mov r8d, edi
lea rdx, [rbp + 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140049157
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140054a30
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp + 0x10], 0
je 0x14004917b
mov rsi, qword [rbp + 8]
mov rbx, qword [rbp]
jmp 0x1400490f0
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
xor r8d, r8d
lea rdx, [0x140059cbe]
lea rcx, [rsp + 0x50]
call fcn.140053980
nop
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov r8d, 2
lea rdx, [0x14006010c]
lea rcx, [rbp - 0x78]
call fcn.140053980
nop
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rbx, qword [rbp - 0x10]
mov rdi, qword [rbp]
cmp rdi, 0x10
jae 0x14004921c
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x30], xmm0
mov r15d, 0xf
jmp 0x140049296
mov r15, rdi
or r15, 0xf
movabs rax, 0x7fffffffffffffff
cmp r15, rax
cmova r15, rax
lea rcx, [r15 + 1]
cmp rcx, 0x1000
jb 0x140049273
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140049933
mov rcx, rax
call fcn.14005618c
mov rcx, rax
test rax, rax
je 0x14004926c
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140049282
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14004927f
call fcn.14005618c
jmp 0x140049282
mov rax, r12
mov qword [rsp + 0x30], rax
lea r8, [rdi + 1]
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rbx, r12
mov rsi, qword [rbp - 0x68]
mov r13, qword [rbp - 0x78]
nop word [rax + rax]
lea r14, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae r14, r13
lea r12, [rsp + 0x30]
cmp r15, 0x10
cmovae r12, qword [rsp + 0x30]
cmp rsi, rdi
ja 0x140049386
sub rdi, rsi
cmp rbx, rdi
ja 0x140049386
test rsi, rsi
je 0x140049341
lea rcx, [r12 + rbx]
movsx r15d, byte [r14]
lea r8, [r12 + 1]
add r8, rdi
sub r8, rcx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
test rax, rax
mov rbx, rax
je 0x140049386
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14004933e
inc rbx
lea r8, [r12 + 1]
add r8, rdi
sub r8, rbx
mov rcx, rbx
jmp 0x140049309
sub rbx, r12
cmp rbx, 0xffffffffffffffff
je 0x140049386
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400537e0
add rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x1400492c0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x40], xmm1
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], r15b
mov rax, qword [rbp - 0x60]
cmp rax, 0x10
jb 0x1400493ed
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x1400493e4
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400493e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.140055f98
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14004942d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049428
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049428
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055f98
lea r14, [rbp - 0x50]
mov rcx, qword [rbp - 0x50]
mov r9, qword [rbp - 0x38]
cmp r9, 0x10
cmovae r14, rcx
mov r8, qword [rbp - 0x40]
add r14, r8
lea rsi, [rbp - 0x50]
cmp r9, 0x10
cmovae rsi, rcx
add rsi, r8
lea rbx, [rbp - 0x50]
cmp r9, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x1400494c9
nop dword [rax + rax]
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140049485
inc rbx
cmp rbx, rsi
jne 0x140049470
mov r9, qword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
cmp rbx, rsi
je 0x1400494c9
lea rdi, [rbx + 1]
cmp rdi, rsi
je 0x1400494c9
nop
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x1400494b5
movzx eax, byte [rdi]
mov byte [rbx], al
inc rbx
inc rdi
cmp rdi, rsi
jne 0x1400494a0
mov r9, qword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x50]
cmp r9, 0x10
cmovae rax, rcx
mov rdx, rbx
sub rdx, rax
sub r14, rbx
mov rax, r8
sub rax, rdx
cmp rax, r14
cmovb r14, rax
lea rax, [rbp - 0x50]
cmp r9, 0x10
cmovae rax, rcx
lea rcx, [rax + rdx]
sub r8, r14
mov qword [rbp - 0x40], r8
sub r8, rdx
inc r8
lea rdx, [rcx + r14]
call sub.VCRUNTIME140.dll_memmove
mov rdi, qword [rsp + 0x78]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rax, qword [rbp + 8]
cmp rax, 0x10
jb 0x140049575
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004956f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004956f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055f98
nop
mov rbx, qword [rbp - 0x80]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400498f0
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400498eb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1400498e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
xor r8d, r8d
lea rdx, [0x140059cbe]
lea rcx, [rbp - 0x50]
call fcn.140053980
nop
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov r8d, 2
lea rdx, [0x14006010c]
lea rcx, [rsp + 0x50]
call fcn.140053980
nop
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov rax, r12
mov qword [rsp + 0x40], rax
mov ecx, 0xf
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x70], rdx
mov rbx, r12
mov rdi, qword [rsp + 0x60]
mov r13, qword [rbp - 0x40]
mov rdx, qword [rsp + 0x50]
lea rsi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rsi, rdx
lea r12, [rsp + 0x30]
cmp rcx, 0x10
cmovae r12, qword [rsp + 0x30]
cmp rdi, rax
ja 0x14004970f
sub rax, rdi
cmp rbx, rax
ja 0x14004970f
test rdi, rdi
je 0x1400496d0
lea r14, [rax + r12]
lea rcx, [r12 + rbx]
movsx r15d, byte [rsi]
lea r8, [r14 + 1]
sub r8, rcx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
test rax, rax
mov rbx, rax
je 0x14004970f
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400496cd
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov rcx, rbx
jmp 0x14004969c
sub rbx, r12
cmp rbx, 0xffffffffffffffff
je 0x14004970f
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x20], r13
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400537e0
mov r13, qword [rbp - 0x40]
add rbx, r13
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
jmp 0x14004964c
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x20], xmm1
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], r15b
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x140049779
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049773
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049773
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055f98
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1400497b7
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400497b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400497b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140055f98
lea r14, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae r14, rcx
mov r8, qword [rbp - 0x20]
add r14, r8
lea rsi, [rbp - 0x30]
cmp r9, 0x10
cmovae rsi, rcx
add rsi, r8
lea rbx, [rbp - 0x30]
cmp r9, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x14004984a
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140049807
inc rbx
cmp rbx, rsi
jne 0x1400497f2
mov r9, qword [rbp - 0x18]
mov r8, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
cmp rbx, rsi
je 0x14004984a
lea rdi, [rbx + 1]
cmp rdi, rsi
je 0x14004984a
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140049836
movzx eax, byte [rdi]
mov byte [rbx], al
inc rbx
inc rdi
cmp rdi, rsi
jne 0x140049821
mov r9, qword [rbp - 0x18]
mov r8, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov rdx, rbx
sub rdx, rax
sub r14, rbx
mov rax, r8
sub rax, rdx
cmp rax, r14
cmovb r14, rax
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
lea rcx, [rax + rdx]
sub r8, r14
mov qword [rbp - 0x20], r8
sub r8, rdx
inc r8
lea rdx, [rcx + r14]
call sub.VCRUNTIME140.dll_memmove
mov rdi, qword [rsp + 0x78]
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rbx, qword [rbp - 0x80]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400498f0
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400498eb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004992c
mov rcx, r8
call fcn.140055f98
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov rax, rdi
mov byte [rbx], 0
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.1400559f0
mov rbx, qword [rsp + 0x950]
add rsp, 0x900
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140045280
nop
int3