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.00420700
movups xmm0, xmmword [str.xYMQUVZ]
mov eax, dword [0x43f45c]
xor ecx, ecx
cmp dword [0x450534], 2
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x20], eax
movups xmm0, xmmword [0x43f434]
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [0x43f444]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [0x43f454]
movq qword [ebp - 0x28], xmm0
jl 0x402b34
movaps xmm4, xmmword [0x43f550]
mov eax, 5
movaps xmm3, xmmword [0x43f580]
movaps xmm6, xmmword [str.8888]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
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 [0x43f570]
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
paddd xmm1, xmm2
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 [0x43f570]
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 0x402b65
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
shl edx, 3
sub eax, edx
add eax, 0x35
xor word [ebp + ecx*2 - 0x58], ax
inc ecx
cmp ecx, 0x1e
jl 0x402b34
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 0x402b80
sub ecx, edx
lea eax, [ebp - 0x58]
push edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403300
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 edi, eax
cmp edx, 8
jb 0x402bf3
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402be9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d7e
push edx
push ecx
call fcn.004206ea
add esp, 8
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
test edi, edi
jne 0x402c13
lea eax, [edi + 1]
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x402c1e
mov eax, dword [eax]
push esi
push 0
push 0x84000000
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x402c48
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esi + 1]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x402c53
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 0x402cc3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x110]
mov esi, 1
call fcn.00402690
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 4]
push eax
push 0x2000
lea eax, [ebp - 0x2110]
push eax
push esi
call ebx
test eax, eax
je 0x402d14
mov eax, dword [ebp - 4]
test eax, eax
je 0x402d14
push 0
push eax
lea eax, [ebp - 0x2110]
push eax
lea ecx, [ebp - 0x110]
call fcn.00404100
lea eax, [ebp - 4]
push eax
push 0x2000
lea eax, [ebp - 0x2110]
push eax
push esi
call ebx
test eax, eax
jne 0x402ce1
lea ecx, [ebp - 0x10c]
call fcn.00403490
pop ebx
test eax, eax
jne 0x402d5d
mov eax, dword [ebp - 0x110]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0xd8], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0x104]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0x104], eax
mov ecx, dword [ebp + ecx - 0x100]
and ecx, eax
jne 0x402d83
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [ebp - 0x110]
xor esi, esi
call fcn.00402690
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
call fcn.00424bbf
test cl, 4
je 0x402d8f
mov esi, str.ios_base::badbit_set
jmp 0x402d9f
test cl, 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.004037c0
add esp, 8
lea ecx, [ebp - 0x18]
push eax
push esi
call fcn.00402310
push 0x44d5f0
lea eax, [ebp - 0x18]
push eax
call fcn.00421540
int3