Function at 0x402e30
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 0x434b90
push eax
mov eax, 0x21d0
mov dword fs:[0], esp
call fcn.004171d0
push esi
push edi
mov ecx, 0x3a
lea edi, [ebp - 0x1dc]
mov esi, 0x436428
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x448534], 2
lea esi, [ecx + 4]
jl 0x402fa0
movaps xmm4, xmmword [0x436600]
mov eax, 0x1f
movaps xmm3, xmmword [0x436630]
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 [0x436620]
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 [0x436620]
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 0x402ea0
cmp ecx, 0x74
jge 0x402fc9
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, 0x30
xor word [ebp + ecx*2 - 0x1dc], dx
inc ecx
cmp ecx, 0x74
jl 0x402fa0
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 0x402fe7
sub ecx, edx
lea eax, [ebp - 0x1dc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004037c0
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 0x40305f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403055
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031f7
push edx
push ecx
call fcn.004171b5
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 0x4030a4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x403082
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 0x4030b9
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 0x4030c4
mov eax, dword [eax]
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0xf4]
call fcn.00401dd0
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 0x40312f
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x14]
call esi
mov esi, 1
jmp 0x4031da
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 0x403187
nop word [eax + eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403187
push 0
push eax
lea eax, [ebp - 0x21dc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004045f0
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 0x403150
lea ecx, [ebp - 0xf0]
call fcn.00403950
test eax, eax
jne 0x4031ca
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 0x4031fc
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.00402a90
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.0041b74f
test al, 4
je 0x403207
mov esi, str.ios_base::badbit_set
jmp 0x403216
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.00403c80
add esp, 8
lea ecx, [ebp - 0x44]
push eax
push esi
call fcn.00402500
push 0x444034
lea eax, [ebp - 0x44]
push eax
call fcn.004180bf
int3