Function at 0x1400504c0
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 - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x140159080]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x60], rdx
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r13, rax
mov qword [rbp - 0x50], rdi
mov ebx, edi
mov qword [rbp - 0x40], rbx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], r14
mov byte [rbp - 0x50], bl
test rax, rax
je 0x1400508d4
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14005054a
mov rdx, qword [rsi]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r12, rax
test rax, rax
je 0x1400508d4
nop
lea r9, [rbp - 0x30]
mov r8d, 0x7d0
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [rbp - 0x30]
mov rax, r14
sub rax, rbx
cmp rdi, rax
ja 0x1400505c2
lea rax, [rdi + rbx]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
cmp r14, 0x10
cmovae rax, qword [rbp - 0x50]
add rbx, rax
mov r8d, edi
lea rdx, [rbp - 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x1400505d7
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.14005a0b0
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x30], 0
je 0x1400505fb
mov r14, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
jmp 0x140050570
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], bl
lea r8d, [rbx + 2]
lea rdx, [0x14013fdf8]
lea rcx, [rsp + 0x50]
call fcn.140059490
nop
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], bl
lea r8d, [rbx + 2]
lea rdx, [0x140141a7c]
lea rcx, [rsp + 0x70]
call fcn.140059490
nop
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea r12, [rbp - 0x50]
mov r14, qword [rbp - 0x50]
mov r13, qword [rbp - 0x38]
cmp r13, 0x10
cmovae r12, r14
mov rdi, qword [rbp - 0x40]
cmp rdi, 0x10
jae 0x1400506a5
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x30], xmm0
mov ebx, reloc.WS2_32.dll_ntohs
jmp 0x14005071e
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400506fc
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140050afb
mov rcx, rax
call fcn.1400bd318
mov rcx, rax
test rax, rax
je 0x1400506f5
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14005070a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140050708
call fcn.1400bd318
jmp 0x14005070a
xor eax, eax
mov qword [rsp + 0x30], rax
lea r8, [rdi + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140058740
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005079c
mov r12, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140059090
mov rdi, qword [rsp + 0x60]
lea r8, [rbx + rdi]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140058740
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140050755
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x60], xmm0
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], bl
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140050802
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400507fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400507fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd5b8
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140050842
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005083d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005083d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd5b8
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [r15 + 0x10], xmm1
cmp r13, 0x10
jb 0x14005088e
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140050885
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050885
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400bd5b8
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400508c4
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400508bf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400508cd
mov rcx, r8
call fcn.1400bd5b8
mov qword [rsi + 0x10], rbx
jmp 0x140050abc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
mov r8d, 2
lea rdx, [0x14013fdf8]
lea rcx, [rsp + 0x50]
call fcn.140059490
nop
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
mov r8d, 2
lea rdx, [0x140141a7c]
lea rcx, [rsp + 0x70]
call fcn.140059490
nop
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140058740
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400509d5
mov r14, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdi
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140059090
mov rdi, qword [rsp + 0x60]
lea r8, [rbx + rdi]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140058740
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140050983
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x30], xmm0
xor edi, edi
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140050a31
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050a2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050a2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd5b8
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140050a71
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050a6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050a6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd5b8
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [r15 + 0x10], xmm1
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140050ab8
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140050ab3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050af4
mov rcx, r8
call fcn.1400bd5b8
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov rax, r15
mov byte [rsi], 0
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400bd060
mov rbx, qword [rsp + 0x910]
add rsp, 0x8c0
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.14004a4a0
nop
int3