Function at 0x140005b00
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 [0x140083180]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rsi, rdx
mov qword [rsp + 0x58], rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x58], rdx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov ebx, r13d
mov qword [rbp - 0x38], rbx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x48], bl
test rax, rax
je 0x140005ebd
mov rdx, rsi
cmp qword [rsi + 0x18], r14
jbe 0x140005b92
mov rdx, qword [rsi]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
je 0x140005ebd
nop word [rax + rax]
lea r9, [rbp - 0x50]
mov r8d, 0x7d0
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [rbp - 0x50]
mov rax, r14
sub rax, rbx
cmp rdi, rax
ja 0x140005c12
lea rax, [rbx + rdi]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x48]
cmp r14, 0xf
cmova rax, qword [rbp - 0x48]
add rbx, rax
mov r8d, edi
lea rdx, [rbp - 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140005c2a
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.14000eb40
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x50], 0
je 0x140005c4e
mov r14, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x38]
jmp 0x140005bc0
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 2
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov eax, 0xa0d
mov word [rbp - 0x80], ax
mov byte [rbp - 0x7e], 0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 2
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov eax, 0x6e7c
mov word [rsp + 0x60], ax
mov byte [rsp + 0x62], 0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea r15, [rbp - 0x48]
mov r14, qword [rbp - 0x48]
mov r13, qword [rbp - 0x30]
cmp r13, 0xf
cmova r15, r14
movabs rbx, 0x7fffffffffffffff
mov rdi, qword [rbp - 0x38]
cmp rdi, rbx
ja 0x140005f33
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
cmp rdi, 0xf
ja 0x140005d06
mov qword [rsp + 0x40], rdi
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x30], xmm0
jmp 0x140005d9c
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x140005d3e
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14005d794
mov rcx, rax
test rax, rax
je 0x140005d69
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140005d7e
mov rbx, rax
mov ecx, reloc.WS2_32.dll_shutdown
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140005d70
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005f39
jmp 0x140005d20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140005d7c
call fcn.14005d794
jmp 0x140005d7e
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
lea r8, [rdi + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005830
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140005df9
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005df3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005df3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005da10
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140005e38
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005da10
nop
cmp r13, 0xf
jbe 0x140005e73
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140005e6a
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005e6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14005da10
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140005ea9
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140005ea4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005eb6
mov rcx, r8
call fcn.14005da10
mov qword [rsi + 0x10], 0
mov rax, rbx
jmp 0x140005ef7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140005ef3
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140005eee
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005f2c
mov rcx, r8
call fcn.14005da10
mov qword [rsi + 0x10], r13
mov byte [rsi], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14005d470
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.140001740
nop
call fcn.1400016a0
int3