Function at 0x40d110
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, 0x5a
mov dword [ebp - 0x4e], 0x350017
mov edi, ecx
mov byte [ebp - 0x50], al
mov ebx, edx
mov dword [ebp - 0x4a], 0x330020
mov dword [ebp - 0x46], 0x360036
xor ecx, ecx
mov dword [ebp - 0x42], 0x75003b
mov dword [ebp - 0x3e], 0x74006f
mov dword [ebp - 0x3a], 0x6a
nop
cbw
xor word [ebp + ecx*2 - 0x4e], ax
inc ecx
cmp ecx, 0xb
jae 0x40d162
mov al, byte [ebp - 0x50]
jmp 0x40d150
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 0x40d180
xor ecx, ecx
jmp 0x40d195
lea ecx, [ebp - 0x4e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d186
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x4e]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407160
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 0x40d1d6
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00407bb0
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
test esi, esi
jne 0x40d252
movaps xmm0, xmmword [0x43bb20]
xor ecx, ecx
movups xmmword [ebp - 0x4f], xmm0
mov dword [ebp - 0x3f], 0x4750415b
mov dword [ebp - 0x3b], 0x1441505b
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 0x40d210
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 0x40d240
xor ecx, ecx
jmp 0x40d357
lea ecx, [ebp - 0x4e]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d246
jmp 0x40d355
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 0x40d2b4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
movaps xmm0, xmmword [0x43b980]
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 0x40d286
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x1d], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00406eb0
cmp dword [eax + 0x14], 0x10
jb 0x40d36f
mov eax, dword [eax]
jmp 0x40d36f
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.0040d9b0
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 0x40d336
mov eax, dword [ebp - 4]
test eax, eax
je 0x40d336
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.0040ec60
lea eax, [ebp - 4]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40d305
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x1c]
call fcn.00407070
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.004073c0
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.00413f93
add esp, 8
lea eax, [ebp - 0x1c]
push 0x43da9c
push eax
call fcn.0041404f
int3