Function at 0x140003860
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 - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r14, rdx
mov r13, rcx
mov qword [rsp + 0x38], rcx
mov qword [rbp - 0x60], rdx
mov dword [rbp - 0x58], 1
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbx, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov edi, esi
mov qword [rbp - 0x40], rsi
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x50], sil
test rax, rax
je 0x140003b53
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400038fb
mov rdx, qword [r14]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r12, rax
test rax, rax
je 0x140003b53
movzx ebx, byte [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
lea r9, [rbp - 0x58]
mov r8d, 0x7d0
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [rbp - 0x58]
mov rax, r15
sub rax, rdi
cmp rsi, rax
ja 0x140003982
lea rax, [rdi + rsi]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
cmp r15, 0x10
cmovae rax, qword [rbp - 0x50]
add rdi, rax
mov r8d, esi
lea rdx, [rbp - 0x30]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rsi], 0
jmp 0x14000399b
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x30]
movzx r8d, bl
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.14000c500
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x58], 0
je 0x1400039bf
mov r15, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x40]
jmp 0x140003930
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, 2
lea rdx, [0x14008c66c]
lea rcx, [rsp + 0x60]
call fcn.14000c690
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 2
lea rdx, [0x14008c670]
lea rcx, [rsp + 0x40]
call fcn.14000c690
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400098f0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, r13
call fcn.1400036b0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140003a89
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079fc4
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140003aca
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ac4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ac4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079fc4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140003b09
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079fc4
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140003b3f
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140003b3a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003b4c
mov rcx, r8
call fcn.140079fc4
mov qword [r14 + 0x10], 0
jmp 0x140003ccc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 2
lea rdx, [0x14008c66c]
lea rcx, [rsp + 0x40]
call fcn.14000c690
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, 2
lea rdx, [0x14008c670]
lea rcx, [rsp + 0x60]
call fcn.14000c690
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400098f0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, r13
call fcn.1400036b0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140003c12
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079fc4
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140003c53
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079fc4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140003c92
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079fc4
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140003cc8
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140003cc3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d05
mov rcx, r8
call fcn.140079fc4
mov qword [r14 + 0x10], rsi
mov rax, r13
mov byte [r14], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140079d10
mov rbx, qword [rsp + 0x900]
add rsp, 0x8b0
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]
int3