Function at 0x4878e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x826c60
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb8
mov eax, dword [0x93cf44]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
movups xmm0, xmmword [0x9045e0]
mov ax, word [0x9045f8]
xor esi, esi
mov edi, dword [0x1817094]
mov word [ebp - 0x9c], ax
movups xmmword [ebp - 0xb4], xmm0
lea eax, [esi + 5]
movq xmm0, qword [0x9045f0]
lea ecx, [esi + 0x1f]
movq qword [ebp - 0xa4], xmm0
cmp edi, 2
jl 0x487a62
movaps xmm2, xmmword [0x9046b0]
mov esi, 8
movaps xmm4, xmmword [0x904760]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, eax
psrad xmm1, xmm5
movd xmm6, ecx
mov eax, 0x9045e0
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x9046c0]
paddd xmm2, xmmword [0x9046b0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x904710]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0xb4], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0xac]
paddw xmm1, xmmword [0x904710]
pxor xmm1, xmm0
movq qword [ebp - 0xac], xmm1
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x35
xor word [ebp + esi*2 - 0xb4], cx
inc esi
cmp esi, 0xd
jl 0x487a62
lea eax, [ebp - 0xb4]
push eax
call dword [0x83d2d8]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x487fdb
mov ecx, dword [0x9045d8]
xor edx, edx
mov dword [ebp - 0x50], ecx
mov cl, byte [0x9045dc]
mov byte [ebp - 0x4c], cl
mov dword [ebp - 0x24], edx
movups xmm0, xmmword [0x9045c8]
movups xmmword [ebp - 0x60], xmm0
cmp edi, 2
jl 0x487c20
movaps xmm0, xmmword [0x904730]
mov eax, 5
movaps xmm4, xmmword [0x9046b0]
movaps xmm3, xmmword [0x904760]
movaps xmm6, xmmword [0x9046f0]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x30], xmm0
mov ecx, dword [ebp - 0x30]
movd xmm7, eax
nop dword [eax + eax]
movd xmm0, edx
lea eax, [edx + 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
pand xmm1, xmmword [0x904720]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x60]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0x60], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, 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
pand xmm1, xmmword [0x904720]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x5c]
pxor xmm1, xmm0
movd dword [ebp + edx - 0x5c], xmm1
add edx, 8
cmp edx, 0x10
jl 0x487b10
mov dword [ebp - 0x24], edx
cmp edx, 0x15
jge 0x487c51
nop word [eax + eax]
mov eax, 0x8fb823ef
imul edx
add edx, dword [ebp - 0x24]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x24]
movsx eax, al
mov cl, dl
imul eax, eax, 0x39
sub cl, al
add cl, 0x35
xor byte [ebp + edx - 0x60], cl
inc edx
mov dword [ebp - 0x24], edx
cmp edx, 0x15
jl 0x487c20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0xb8]
call dword [0x83d338]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x487fcf
movups xmm0, xmmword [0x9045a8]
mov ax, word [0x9045c4]
xor esi, esi
mov ecx, dword [0x9045c0]
mov dword [ebp - 0x80], ecx
mov word [ebp - 0x7c], ax
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [0x9045b8]
movq qword [ebp - 0x88], xmm0
cmp edi, 2
jl 0x487db3
movaps xmm2, xmmword [0x9046b0]
mov eax, 5
movaps xmm4, xmmword [0x904760]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, eax
psrad xmm1, xmm5
mov eax, 0x1f
movaps xmm0, xmm1
movd xmm6, eax
mov eax, 0x9045a8
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x9046c0]
paddd xmm2, xmmword [0x9046b0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x904710]
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x98], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9046f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x904710]
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x90]
pxor xmm1, xmm0
movq qword [ebp - 0x90], xmm1
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x35
xor word [ebp + esi*2 - 0x98], cx
inc esi
cmp esi, 0xf
jl 0x487db3
xor eax, eax
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487e00
sub ecx, edx
lea eax, [ebp - 0x98]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.0040eb10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 8
cmovae eax, dword [ebp - 0x78]
push eax
call dword [ebp - 0x24]
mov edx, eax
mov dword [ebp - 0x38], 0
mov ecx, edx
mov dword [ebp - 0x34], 7
xor eax, eax
mov word [ebp - 0x48], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487e50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.0040eb10
mov byte [ebp - 4], 1
xor esi, esi
mov eax, dword [0x9045a0]
mov dword [ebp - 0x28], eax
mov ax, word [0x9045a4]
mov word [ebp - 0x24], ax
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x35
xor word [ebp + esi*2 - 0x28], cx
inc esi
cmp esi, 3
jl 0x487e81
lea edx, [ebp - 0x28]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x487eb0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x48]
sub edx, ecx
sar edx, 1
lea ecx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x38]
cmp edi, 8
push eax
cmovae ecx, esi
push ecx
call fcn.0041f2f0
add esp, 0xc
test eax, eax
js 0x487f55
movq xmm0, qword [0x904594]
xor esi, esi
mov ax, word [0x90459c]
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x24], ax
nop dword [eax]
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x35
xor word [ebp + esi*2 - 0x2c], cx
inc esi
cmp esi, 5
jl 0x487f00
lea edx, [ebp - 0x2c]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x487f30
mov ecx, dword [ebp - 0xbc]
lea eax, [ebp - 0x2c]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040eb10
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x48]
cmp edi, 8
jb 0x487f85
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x487f7b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ff9
push ecx
push esi
call fcn.005c4046
add esp, 8
mov edx, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x487fcf
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487fc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ffe
push edx
push ecx
call fcn.005c4046
add esp, 8
push dword [ebp - 0xb8]
call dword [0x83d5b4]
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.005c3e3a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006d2f99
call fcn.006d2f99
int3