Function at 0x46cbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x533840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x52aedc
cmp edi, 0x10
mov dword [ebp - 0xd0], ecx
mov ecx, 0x52aeec
mov dword [ebp - 0xd8], edx
cmovne eax, ecx
mov dword [ebp - 0xe0], edi
xor ebx, ebx
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd4], eax
test edi, edi
jle 0x46cc8c
movsx esi, word [edx + ebx*2]
mov ecx, esi
sar ecx, 8
lea eax, [ecx + ecx]
shl ecx, 8
movsx edx, word [eax + 0x52aff8]
sub esi, ecx
movsx eax, word [eax + 0x52affa]
sub eax, edx
shl edx, 8
imul esi, eax
mov eax, dword [ebp - 0xd4]
movzx eax, byte [eax + ebx]
add esi, edx
mov edx, dword [ebp - 0xd8]
inc ebx
sar esi, 3
inc esi
sar esi, 1
mov dword [ebp + eax*4 - 0xcc], esi
cmp ebx, edi
jl 0x46cc41
mov ebx, edi
lea edx, [ebp - 0xcc]
sar ebx, 1
lea ecx, [ebp - 0x68]
push ebx
mov dword [ebp - 0xd8], ebx
call fcn.0046cb40
push ebx
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x8c]
call fcn.0046cb40
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x46cd02
lea ebx, [ebp + edi*4 - 0x48]
mov edi, dword [ebp - 0xd8]
nop word [eax + eax]
mov edx, dword [ebp + esi*4 - 0x64]
lea ebx, [ebx - 4]
add edx, dword [ebp + esi*4 - 0x68]
mov ecx, dword [ebp + esi*4 - 0x88]
sub ecx, dword [ebp + esi*4 - 0x8c]
lea eax, [ecx + edx]
sub ecx, edx
neg eax
mov dword [ebp + esi*4 - 0x44], eax
inc esi
mov dword [ebx + 4], ecx
cmp esi, edi
jl 0x46ccd0
mov edi, dword [ebp - 0xe0]
xor ecx, ecx
mov dword [ebp - 0xd4], ecx
nop word [eax + eax]
xor esi, esi
xor ebx, ebx
test edi, edi
jle 0x46cd4c
mov eax, dword [ebp + ebx*4 - 0x44]
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
mov edx, eax
mov eax, ebx
cmovle eax, dword [ebp - 0xdc]
cmovle edx, esi
inc ebx
mov dword [ebp - 0xdc], eax
mov esi, edx
cmp ebx, edi
jl 0x46cd18
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], eax
jmp 0x46cd52
mov eax, dword [ebp - 0xdc]
sar esi, 4
inc esi
sar esi, 1
cmp esi, 0x7fff
jle 0x46cda9
lea ecx, [eax + 1]
mov edx, 0x27ffe
cmp esi, edx
mov eax, 0x7fff
cmovl edx, esi
imul ecx, edx
sub eax, edx
shl eax, 0xe
cdq
sar ecx, 2
idiv ecx
mov edx, edi
lea ecx, [ebp - 0x44]
add eax, 0xffbe
push eax
call fcn.0046f530
mov ecx, dword [ebp - 0xd4]
add esp, 4
inc ecx
mov dword [ebp - 0xd4], ecx
cmp ecx, 0xa
jl 0x46cd10
cmp ecx, 0xa
jne 0x46ce9c
xor ecx, ecx
test edi, edi
jle 0x46cfb5
mov ebx, dword [ebp - 0xd0]
cmp edi, 8
jb 0x46ce5e
lea eax, [ebp + edi*4 - 0x48]
lea edx, [ebx - 2]
lea edx, [edx + edi*2]
cmp ebx, eax
ja 0x46cde0
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x46ce5e
movaps xmm1, xmmword [0x52d9a0]
lea esi, [ebp - 0x44]
mov eax, edi
and eax, 0xfffffff8
nop
movups xmm0, xmmword [esi + ecx*4]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
packssdw xmm0, xmm0
movq qword [ebx + ecx*2], xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
pslld xmm0, 5
movups xmmword [esi + ecx*4], xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x34]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
packssdw xmm0, xmm0
movq qword [ebx + ecx*2 + 8], xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
pslld xmm0, 5
movups xmmword [ebp + ecx*4 - 0x34], xmm0
add ecx, 8
mov edx, ecx
cmp ecx, eax
jl 0x46cdf0
cmp edx, edi
jge 0x46cfbb
mov edx, 0xffff8000
mov eax, dword [ebp + ecx*4 - 0x44]
sar eax, 4
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x46ce7b
mov eax, 0x7fff
jmp 0x46ce83
cmp eax, 0xffff8000
cmovl eax, edx
movzx eax, ax
mov word [ebx + ecx*2], ax
cwde
shl eax, 5
mov dword [ebp + ecx*4 - 0x44], eax
inc ecx
cmp ecx, edi
jl 0x46ce63
jmp 0x46cfbb
xor ecx, ecx
test edi, edi
jle 0x46cfb5
mov ebx, dword [ebp - 0xd0]
cmp edi, 0x10
jb 0x46cfa0
lea eax, [ebp + edi*4 - 0x48]
lea edx, [ebx - 2]
lea edx, [edx + edi*2]
cmp ebx, eax
ja 0x46cece
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x46cfa0
movaps xmm1, xmmword [0x52d9a0]
lea eax, [ebx + 0x10]
mov edx, edi
lea ebx, [ebp - 0x44]
and edx, 0xfffffff0
lea edi, [ebp - 0x24]
movups xmm0, xmmword [ebx + ecx*4]
lea esi, [ebp - 0x14]
lea eax, [eax + 0x20]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x30], xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x34]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x28], xmm0
movups xmm0, xmmword [edi + ecx*4]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x20], xmm0
movups xmm0, xmmword [esi + ecx*4]
add ecx, 0x10
mov esi, ecx
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x18], xmm0
cmp ecx, edx
jl 0x46cee3
mov edi, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xd0]
cmp esi, edi
jge 0x46cfbb
nop
mov eax, dword [ebp + ecx*4 - 0x44]
sar eax, 4
inc eax
sar eax, 1
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jl 0x46cfa0
jmp 0x46cfbb
mov ebx, dword [ebp - 0xd0]
xor esi, esi
mov dword [ebp - 0xd4], esi
mov edx, edi
mov ecx, ebx
call fcn.0046df40
cmp eax, 0x1a36e
jge 0x46d126
mov ecx, esi
mov edx, 2
shl edx, cl
mov eax, 0x10000
sub eax, edx
lea ecx, [ebp - 0x44]
push eax
mov edx, edi
call fcn.0046f530
add esp, 4
xor eax, eax
test edi, edi
jle 0x46d116
cmp edi, 0x10
jb 0x46d103
lea ecx, [ebp + edi*4 - 0x48]
lea edx, [edi - 1]
lea edx, [ebx + edx*2]
cmp ebx, ecx
ja 0x46d021
lea ecx, [ebp - 0x44]
cmp edx, ecx
jae 0x46d103
movaps xmm1, xmmword [0x52d9a0]
lea ecx, [ebx + 0x10]
mov ebx, dword [ebp - 0xd0]
lea esi, [ebp - 0x24]
mov edx, edi
lea edi, [ebp - 0x44]
and edx, 0xfffffff0
nop dword [eax]
movups xmm0, xmmword [edi + eax*4]
lea edi, [ebp - 0x14]
lea ecx, [ecx + 0x20]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x30], xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x34]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x28], xmm0
movups xmm0, xmmword [esi + eax*4]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x20], xmm0
movups xmm0, xmmword [edi + eax*4]
add eax, 0x10
lea edi, [ebp - 0x44]
psrad xmm0, 4
paddd xmm0, xmm1
psrad xmm0, 1
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x18], xmm0
cmp eax, edx
jl 0x46d040
mov edi, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
cmp eax, edi
jge 0x46d116
mov ecx, dword [ebp + eax*4 - 0x44]
sar ecx, 4
inc ecx
sar ecx, 1
mov word [ebx + eax*2], cx
inc eax
cmp eax, edi
jl 0x46d103
inc esi
mov dword [ebp - 0xd4], esi
cmp esi, 0x10
jl 0x46cfc3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c43a7
mov esp, ebp
pop ebp
ret