Function at 0x140039cb0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1070]
mov eax, 0x1170
call fcn.140040840
sub rsp, rax
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rbp + 0x1060], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.MyUserAgent
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
je 0x140039d55
cmp qword [rbx + 0x18], 0x10
jb 0x140039d25
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x140039d6f
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r12b
jmp 0x140039f0d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], r12b
lea r9, [rsp + 0x58]
mov r8d, 0x1000
lea rdx, [rbp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140039e35
nop word [rax + rax]
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140039e35
mov edi, eax
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140039dff
lea rax, [rcx + rdi]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x38]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x38]
add rbx, rcx
mov r8d, edi
lea rdx, [rbp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140039e15
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14003f450
lea r9, [rsp + 0x58]
mov r8d, 0x1000
lea rdx, [rbp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140039db0
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rbx, [rsp + 0x38]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x50]
cmp r15, 0x10
cmovae rbx, r14
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140039ed7
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, str.__n_r_t
lea rdx, [0x140048e38]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rsp + rax + 0x60], 1
inc rcx
cmp rcx, rdx
jne 0x140039e90
lea rax, [rdi - 1]
mov rcx, 0xffffffffffffffff
cmp rax, rcx
cmovb rcx, rax
add rcx, rbx
movzx eax, byte [rcx]
cmp byte [rsp + rax + 0x60], 0
je 0x140039ed2
nop
cmp rcx, rbx
je 0x140039ed7
dec rcx
movzx eax, byte [rcx]
cmp byte [rsp + rax + 0x60], 0
jne 0x140039ec0
sub rcx, rbx
jmp 0x140039ede
mov rcx, 0xffffffffffffffff
inc rcx
cmp rdi, rcx
jb 0x140039f3b
lea rax, [rsp + 0x38]
cmp r15, 0x10
cmovae rax, r14
mov qword [rsp + 0x48], rcx
mov byte [rax + rcx], 0
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.14003f830
lea r11, [rsp + 0x1170]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14003f430
nop
int3