Function at 0x478c40
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd7b8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x178
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
push 0
call fcn.00578cfa
add esp, 4
push eax
call fcn.005793d2
add esp, 4
call fcn.005793b1
xor edx, edx
movq xmm0, qword [0x64eb14]
mov ecx, 0x15f8f
movq qword [ebp - 0x5c], xmm0
div ecx
mov ecx, dword [esi]
lea eax, [edx + 0x2710]
mov dword [ebp - 0x3c], eax
mov eax, ecx
shr eax, 2
and eax, 1
mov edx, eax
or edx, 2
and cl, 1
cmove edx, eax
mov eax, dword [0x64eb1c]
mov dword [ebp - 0x54], eax
mov ax, word [0x64eb20]
mov dword [ebp - 0x40], edx
xor edx, edx
cmp dword [0x67be1c], 2
mov word [ebp - 0x50], ax
mov al, byte [0x64eb22]
mov byte [ebp - 0x4e], al
lea ecx, [edx + 0x1f]
mov dword [ebp - 0x30], edx
lea eax, [edx + 4]
jl 0x478e10
movaps xmm2, xmmword [0x654300]
mov edx, 8
movaps xmm4, xmmword [0x6543d0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
psrad xmm1, xmm5
movd xmm6, ecx
movaps xmm0, xmm1
mov dword [ebp - 0x30], edx
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.2222]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x654310]
paddd xmm2, xmmword [0x654300]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x6543a0]
movd xmm0, dword [0x64eb14]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.8888888888888888]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x5c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.2222]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x6543a0]
movd xmm0, dword [ebp - 0x58]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.8888888888888888]
pxor xmm1, xmm0
movd dword [ebp - 0x58], xmm1
nop dword [eax]
mov eax, 0x51eb851f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x30]
movsx eax, al
mov cl, dl
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x5c], cl
inc edx
mov dword [ebp - 0x30], edx
cmp edx, 0xf
jl 0x478e10
cmp dword [esi + 0x660], 8
lea eax, [esi + 0x64c]
mov dword [ebp - 0x30], eax
jb 0x478e55
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x624], 8
lea eax, [esi + 0x610]
mov dword [ebp - 0x34], eax
jb 0x478e6c
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
cmp dword [esi + 0x60c], 8
lea eax, [esi + 0x5f8]
mov dword [ebp - 0x38], eax
jb 0x478e83
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x5d4]
lea edi, [ebp - 0x188]
cmp eax, 0x1388
mov esi, 0x64ecd0
lea ecx, [eax - 0x1388]
cmovl ecx, eax
mov dword [ebp - 0x48], ecx
mov ecx, 0x47
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x67be1c], 2
movsw word es:[edi], word [esi]
jl 0x478fe2
movaps xmm4, xmmword [0x654300]
mov eax, 4
movaps xmm3, xmmword [0x6543d0]
movaps xmm6, xmmword [str.2222]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, 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 [str.88888888]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x188]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x188], 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 [str.88888888]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x180]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x180], xmm1
add ecx, 8
cmp ecx, 0x88
jl 0x478ee4
cmp ecx, 0x8f
jge 0x47900e
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, 0x38
xor word [ebp + ecx*2 - 0x188], dx
inc ecx
cmp ecx, 0x8f
jl 0x478fe2
push dword [ebp - 0x3c]
lea eax, [ebp - 0x5c]
push dword [ebp - 0x40]
push eax
push ecx
call fcn.0047fda0
mov esi, dword [ebp - 0x44]
push eax
push dword [esi + 4]
lea eax, [esi + 0xbc]
push dword [ebp - 0x30]
push str.5.7.5.34
push dword [esi + 0x510]
push dword [esi + 0x50c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x7c]
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x188]
push dword [esi + 0x640]
push str.http:__downloader.aldtop.com_client_stat
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041a640
add esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x68], esi
call fcn.0040c5c0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00487950
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, dword [0x67f524]
cmp dword [0x67f528], ecx
je 0x4790cb
mov dword [ecx], 0
cmp ecx, edx
je 0x4790be
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov byte [ecx + 4], 1
add dword [0x67f524], 8
jmp 0x4790d2
push edx
push ecx
call fcn.0043f960
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4790fb
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4790fb
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4790f5
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x4790f9
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x64]
call fcn.0040f8c0
lea ecx, [ebp - 0x2c]
call fcn.0040f8c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d0a85
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret