Function at 0x40d0f0
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov al, 0x7d
mov dword [ebp - 0x4e], 0x120030
mov edi, ecx
mov byte [ebp - 0x50], al
mov ebx, edx
mov dword [ebp - 0x4a], 0x140007
mov dword [ebp - 0x46], 0x110011
xor ecx, ecx
mov dword [ebp - 0x42], 0x52001c
mov dword [ebp - 0x3e], 0x530048
mov dword [ebp - 0x3a], 0x4d
nop
cbw
xor word [ebp + ecx*2 - 0x4e], ax
inc ecx
cmp ecx, 0xb
jae 0x40d142
mov al, byte [ebp - 0x50]
jmp 0x40d130
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
cmp word [ebp - 0x4e], ax
jne 0x40d160
xor ecx, ecx
jmp 0x40d175
lea ecx, [ebp - 0x4e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d166
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x4e]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407130
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp ecx, 8
jb 0x40d1b6
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00407b80
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
test esi, esi
jne 0x40d232
movaps xmm0, xmmword [0x43b9e0]
xor ecx, ecx
movups xmmword [ebp - 0x4f], xmm0
mov dword [ebp - 0x3f], 0x611001a
mov dword [ebp - 0x3b], 0x5500111a
mov byte [ebp - 0x37], al
nop dword [eax]
mov al, byte [ebp - 0x4f]
xor byte [ebp + ecx - 0x4e], al
inc ecx
cmp ecx, 0x17
jb 0x40d1f0
cmp byte [ebp - 0x4e], 0
mov byte [ebp - 0x37], 0
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jne 0x40d220
xor ecx, ecx
jmp 0x40d337
lea ecx, [ebp - 0x4e]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d226
jmp 0x40d335
push 0
push 0x84000100
push 0
push 0
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x40d294
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
movaps xmm0, xmmword [0x43b900]
xor ecx, ecx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x660b15
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x12
jb 0x40d266
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x1d], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00406e80
cmp dword [eax + 0x14], 0x10
jb 0x40d34f
mov eax, dword [eax]
jmp 0x40d34f
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.0040d990
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
push 0x400
push esi
push ebx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40d316
mov eax, dword [ebp - 4]
test eax, eax
je 0x40d316
mov byte [ebp - 8], 0
add eax, esi
push dword [ebp - 8]
mov ecx, edi
push eax
push esi
push dword [edi + 4]
call fcn.0040ec40
lea eax, [ebp - 4]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40d2e5
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x1c]
call fcn.00407040
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub ecx, edx
push ecx
lea eax, [ebp - 0x4e]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407390
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.std::exception.0
push eax
lea eax, [ebp - 0x10]
movq qword [ebp - 0x18], xmm0
push eax
mov byte [ebp - 0xc], 1
call fcn.00413f73
add esp, 8
lea eax, [ebp - 0x1c]
push 0x43da9c
push eax
call fcn.0041402f
int3