Function at 0x477f90
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 0x5fd6b3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
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 eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 4], eax
xor edx, edx
cmp dword [0x67be1c], 2
mov eax, dword [0x64eb1c]
movq xmm0, qword [0x64eb14]
mov dword [ebp - 0x88], eax
lea ecx, [edx + 0x1f]
mov ax, word [0x64eb20]
mov word [ebp - 0x84], ax
mov al, byte [0x64eb22]
mov byte [ebp - 0x82], al
lea eax, [edx + 4]
movq qword [ebp - 0x90], xmm0
mov dword [ebp - 0x6c], edx
jl 0x478150
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 - 0x6c], 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 - 0x90], 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 - 0x8c]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.8888888888888888]
pxor xmm1, xmm0
movd dword [ebp - 0x8c], xmm1
nop word [eax + eax]
mov eax, 0x51eb851f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x6c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x32
sub cl, al
add cl, 0x38
xor byte [ebp + edx - 0x90], cl
inc edx
mov dword [ebp - 0x6c], edx
cmp edx, 0xf
jl 0x478150
cmp dword [esi + 0x624], 8
lea eax, [esi + 0x610]
mov dword [ebp - 0x6c], eax
jb 0x478198
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
cmp dword [esi + 0x60c], 8
lea eax, [esi + 0x5f8]
mov dword [ebp - 0x70], eax
jb 0x4781af
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x5d4]
lea edi, [ebp - 0x140]
cmp eax, 0x1388
mov esi, 0x64edf0
lea ecx, [eax - 0x1388]
cmovl ecx, eax
mov dword [ebp - 0x80], ecx
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x67be1c], 2
movsw word es:[edi], word [esi]
jl 0x478310
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 - 0x140]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x140], 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 - 0x138]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0x138], xmm1
add ecx, 8
cmp ecx, 0x48
jl 0x478210
cmp ecx, 0x4f
jge 0x478339
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, 0x38
xor word [ebp + ecx*2 - 0x140], dx
inc ecx
cmp ecx, 0x4f
jl 0x478310
lea eax, [ebp - 0x90]
push eax
push ecx
call fcn.0047fda0
mov edi, dword [ebp - 0x7c]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
lea eax, [edi + 0xbc]
push eax
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0x7c]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x140]
push dword [edi + 0x640]
push dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0041a640
add esp, 0x2c
lea eax, [ebx + 0x14]
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x10]
push eax
call fcn.004288a0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x74], 0
lea esi, [eax + 1]
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00422b70
lea edx, [ebx + 0x14]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push 0
push dword [ebx + 0x10]
sar ecx, 1
push esi
push ecx
push eax
call fcn.00428860
add esp, 0x18
test eax, eax
jle 0x4783fb
mov edx, dword [ebp - 0x20]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4783e2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00417d60
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x50]
cmovae ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
push ecx
cmovae eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push 0x64dc64
push eax
call fcn.0041a640
add esp, 0x10
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x9c], edi
call fcn.0040c5c0
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004875a0
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, dword [0x67f524]
cmp dword [0x67f528], ecx
je 0x478486
mov dword [ecx], 0
cmp ecx, edx
je 0x478479
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], 0
mov byte [ecx + 4], 1
add dword [0x67f524], 8
jmp 0x47848d
push edx
push ecx
call fcn.0043f960
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4784b6
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4784b6
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4784b0
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x4784b4
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x98]
call fcn.0040f8c0
lea ecx, [ebp - 0x68]
call fcn.0040f8c0
lea ecx, [ebp - 0x20]
call fcn.00423fa0
lea ecx, [ebp - 0x50]
call fcn.0040f8c0
lea ecx, [ebp - 0x38]
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