Function at 0x180050550
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 [0x1803d05b8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x70], 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 r13, rax
mov qword [rbp - 0x60], r12
mov ebx, r12d
mov qword [rbp - 0x50], rbx
mov r14d, 0xf
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x60], bl
test rax, rax
je 0x180050931
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1800505e6
mov rdx, qword [rsi]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r12, rax
test rax, rax
je 0x18005092e
nop dword [rax + rax]
lea r9, [rsp + 0x50]
mov r8d, 0x7d0
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [rsp + 0x50]
mov rax, r14
sub rax, rbx
cmp rdi, rax
ja 0x180050664
lea rax, [rdi + rbx]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x60]
cmp r14, 0x10
cmovae rax, qword [rbp - 0x60]
add rbx, rax
mov r8d, edi
lea rdx, [rbp - 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x18005067c
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.18003ea70
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
cmp dword [rsp + 0x50], 0
je 0x1800506a1
mov r14, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x50]
jmp 0x180050610
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor edx, edx
mov qword [rbp - 0x80], rdx
mov r12d, 0xf
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x70], 2
mov eax, 0xa0d
mov word [rbp - 0x80], ax
mov byte [rbp - 0x7e], dl
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], 2
mov eax, 0x6e7c
mov word [rbp - 0x40], ax
mov byte [rbp - 0x3e], dl
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rdx
lea rbx, [rbp - 0x60]
mov r13, qword [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rbx, r13
mov r14, qword [rbp - 0x50]
cmp r14, 0x10
jae 0x18005072a
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x30], xmm0
mov edi, r12d
jmp 0x1800507a6
mov rdi, r14
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x180050781
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180050af7
mov rcx, rax
call fcn.1800bf760
mov rcx, rax
test rax, rax
je 0x18005077a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180050790
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x18005078d
call fcn.1800bf760
jmp 0x180050790
mov rax, rdx
mov qword [rsp + 0x30], rax
lea r8, [r14 + 1]
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov r15, qword [rbp - 0x70]
lea rcx, [rsp + 0x30]
cmp rdi, 0x10
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], 2
lea r9, [rbp - 0x40]
mov r8, rbx
mov rdx, r14
call fcn.18004f800
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005082d
lea r9, [rbp - 0x80]
cmp r12, 0x10
cmovae r9, qword [rbp - 0x80]
mov qword [rsp + 0x20], r15
mov r8d, 2
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180055d80
mov r15, qword [rbp - 0x70]
add rbx, r15
mov r12, qword [rbp - 0x68]
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
jmp 0x1800507c1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x70], xmm1
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], bl
cmp r12, 0x10
mov r15, qword [rsp + 0x68]
jb 0x1800508a0
lea rdx, [r12 + 1]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180050891
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180050891
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800bf79c
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [r15], xmm0
movups xmmword [r15 + 0x10], xmm1
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x1800508e8
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x1800508df
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800508df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.1800bf79c
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18005091e
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x180050919
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180050927
mov rcx, r8
call fcn.1800bf79c
mov qword [rsi + 0x10], rbx
jmp 0x180050ab8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r12d, r12d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp - 0x80], r12
mov edi, 0xf
mov qword [rbp - 0x68], rdi
mov r14d, 2
mov qword [rbp - 0x70], r14
mov eax, 0xa0d
mov word [rbp - 0x80], ax
mov byte [rbp - 0x7e], 0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x30], r14
mov eax, 0x6e7c
mov word [rbp - 0x40], ax
mov byte [rbp - 0x3e], 0
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rsp + 0x30], xmm0
mov rdx, r12
mov qword [rsp + 0x40], rdx
mov eax, edi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
mov rbx, r12
nop dword [rax]
lea rcx, [rsp + 0x30]
cmp rax, 0x10
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], 2
lea r9, [rbp - 0x40]
mov r8, rbx
call fcn.18004f800
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180050a09
lea r9, [rbp - 0x80]
cmp rdi, 0x10
cmovae r9, qword [rbp - 0x80]
mov qword [rsp + 0x20], r14
mov r8d, 2
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180055d80
mov r14, qword [rbp - 0x70]
add rbx, r14
mov rdi, qword [rbp - 0x68]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
jmp 0x1800509a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x70], xmm1
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
cmp rdi, 0x10
jb 0x180050a75
lea rdx, [rdi + 1]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180050a66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180050a66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800bf79c
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [r15], xmm0
movups xmmword [r15 + 0x10], xmm1
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x180050ab4
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x180050aaf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180050af0
mov rcx, r8
call fcn.1800bf79c
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 0xf
mov rax, r15
mov byte [rsi], 0
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1800bfed0
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.18001d5c0
nop
int3