Function at 0x1400510c0
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 - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x140154f00]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rsi, rdx
mov qword [rbp - 0x58], rdx
mov r15, rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x48], 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 - 0x38], rdi
mov ebx, edi
mov qword [rbp - 0x28], rbx
mov r14d, sendto
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x38], bl
test rax, rax
je 0x14005151c
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140051152
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 0x14005151c
nop word [rax + rax]
lea r9, [rbp - 0x18]
mov r8d, 0x7d0
lea rdx, [rbp - 0x10]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [rbp - 0x18]
mov rax, r14
sub rax, rbx
cmp rdi, rax
ja 0x1400511d2
lea rax, [rbx + rdi]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x38]
cmp r14, 0x10
cmovae rax, qword [rbp - 0x38]
add rbx, rax
mov r8d, edi
lea rdx, [rbp - 0x10]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1400511e7
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x10]
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.140057ed0
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x18], 0
je 0x14005120b
mov r14, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x28]
jmp 0x140051180
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], sendto
mov byte [rsp + 0x58], r14b
lea r8d, [r14 + 2]
lea rdx, [0x1400aebdc]
lea rcx, [rsp + 0x58]
call fcn.140056260
nop
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], sendto
mov byte [rsp + 0x78], r14b
lea r8d, [r14 + 2]
lea rdx, [0x14011d204]
lea rcx, [rsp + 0x78]
call fcn.140056260
nop
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rdi, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
setae byte [rsp + 0x30]
cmovae rdi, qword [rbp - 0x38]
mov r13, qword [rbp - 0x28]
cmp r13, 0x10
jae 0x1400512b7
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x38], xmm0
lea ebx, [r14 + 0xf]
jmp 0x14005133f
mov rbx, r13
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
mov rcx, rbx
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x14005131c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005175a
mov rcx, rax
call fcn.14008e2c4
mov rcx, rax
test rax, rax
je 0x140051315
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14005132b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140051328
call fcn.14008e2c4
jmp 0x14005132b
mov rax, r14
mov qword [rsp + 0x38], rax
lea r8, [r13 + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x38]
mov qword [rbp - 0x68], rax
mov rdi, r14
cmp qword [rbp - 0x70], 0x10
setae sil
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x68]
mov r15, qword [rbp - 0x78]
nop dword [rax]
lea r9, [rsp + 0x78]
test sil, sil
cmovne r9, r14
lea rcx, [rsp + 0x38]
cmp rbx, 0x10
cmovae rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], r15
mov r8, rdi
mov rdx, r13
call fcn.140057e00
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400513de
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r9, qword [rsp + 0x58]
mov qword [rsp + 0x20], r12
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400560a0
mov r12, qword [rsp + 0x68]
add rdi, r12
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
jmp 0x140051370
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp - 0x48], xmm0
mov byte [rsp + 0x38], 0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], sendto
test sil, sil
mov rsi, qword [rbp - 0x58]
mov r15, qword [rbp - 0x50]
je 0x14005144a
mov rdx, qword [rbp - 0x70]
inc rdx
mov rax, r14
cmp rdx, 0x1000
jb 0x140051441
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051441
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14008da28
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14005148a
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051485
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051485
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x48]
movups xmmword [r15 + 0x10], xmm1
cmp byte [rsp + 0x30], 0
je 0x1400514db
mov rdx, qword [rbp - 0x20]
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400514d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400514d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140051717
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140051712
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14005170f
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 + 0x58], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], sendto
mov byte [rsp + 0x58], 0
mov r8d, 2
lea rdx, [0x1400aebdc]
lea rcx, [rsp + 0x58]
call fcn.140056260
nop
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], sendto
mov byte [rsp + 0x78], 0
mov r8d, 2
lea rdx, [0x14011d204]
lea rcx, [rsp + 0x78]
call fcn.140056260
nop
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rsp + 0x38], xmm0
mov rdx, rdi
mov qword [rsp + 0x48], rdx
mov eax, 0xf
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rbp - 0x68], rcx
mov rbx, rdi
cmp qword [rbp - 0x70], 0x10
setae r13b
mov r12, qword [rbp - 0x78]
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x68]
lea r9, [rsp + 0x78]
test r13b, r13b
cmovne r9, r14
lea rcx, [rsp + 0x38]
cmp rax, 0x10
cmovae rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], r12
mov r8, rbx
call fcn.140057e00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005162c
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r9, qword [rsp + 0x58]
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400560a0
mov rdi, qword [rsp + 0x68]
add rbx, rdi
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
jmp 0x1400515c1
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp - 0x68], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp - 0x48], xmm0
mov byte [rsp + 0x38], 0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], sendto
test r13b, r13b
je 0x140051690
mov rdx, qword [rbp - 0x70]
inc rdx
mov rax, r14
cmp rdx, 0x1000
jb 0x140051687
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051687
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14008da28
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400516d0
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400516cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400516cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008da28
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x48]
movups xmmword [r15 + 0x10], xmm1
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140051717
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140051712
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051753
mov rcx, r8
call fcn.14008da28
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], sendto
mov rax, r15
mov byte [rsi], 0
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.14008da00
mov rbx, qword [rsp + 0x920]
add rsp, 0x8d0
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.140043100
nop