Function at 0x45cca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4b3080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x4a7040
cmp edi, 0x10
mov dword [ebp - 0xd0], ecx
mov ecx, 0x4a7050
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 0x45cd3c
movsx esi, word [edx + ebx*2]
mov ecx, esi
sar ecx, 8
lea eax, [ecx + ecx]
shl ecx, 8
movsx edx, word [eax + 0x4a7198]
sub esi, ecx
movsx eax, word [eax + 0x4a719a]
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 0x45ccf1
mov ebx, edi
lea edx, [ebp - 0xcc]
sar ebx, 1
lea ecx, [ebp - 0x68]
push ebx
mov dword [ebp - 0xd8], ebx
call fcn.0045cbf0
push ebx
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x8c]
call fcn.0045cbf0
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x45cdb2
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 0x45cd80
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 0x45cdfc
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 0x45cdc8
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], eax
jmp 0x45ce02
mov eax, dword [ebp - 0xdc]
sar esi, 4
inc esi
sar esi, 1
cmp esi, 0x7fff
jle 0x45ce59
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.004628b0
mov ecx, dword [ebp - 0xd4]
add esp, 4
inc ecx
mov dword [ebp - 0xd4], ecx
cmp ecx, 0xa
jl 0x45cdc0
cmp ecx, 0xa
jne 0x45cf4c
xor ecx, ecx
test edi, edi
jle 0x45d065
mov ebx, dword [ebp - 0xd0]
cmp edi, 8
jb 0x45cf0e
lea eax, [ebp + edi*4 - 0x48]
lea edx, [ebx - 2]
lea edx, [edx + edi*2]
cmp ebx, eax
ja 0x45ce90
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x45cf0e
movaps xmm1, xmmword [0x4a7c00]
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 0x45cea0
cmp edx, edi
jge 0x45d06b
mov edx, 0xffff8000
mov eax, dword [ebp + ecx*4 - 0x44]
sar eax, 4
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x45cf2b
mov eax, 0x7fff
jmp 0x45cf33
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 0x45cf13
jmp 0x45d06b
xor ecx, ecx
test edi, edi
jle 0x45d065
mov ebx, dword [ebp - 0xd0]
cmp edi, 0x10
jb 0x45d050
lea eax, [ebp + edi*4 - 0x48]
lea edx, [ebx - 2]
lea edx, [edx + edi*2]
cmp ebx, eax
ja 0x45cf7e
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x45d050
movaps xmm1, xmmword [0x4a7c00]
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 0x45cf93
mov edi, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xd0]
cmp esi, edi
jge 0x45d06b
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 0x45d050
jmp 0x45d06b
mov ebx, dword [ebp - 0xd0]
xor esi, esi
mov dword [ebp - 0xd4], esi
mov edx, edi
mov ecx, ebx
call fcn.0045c680
cmp eax, 0x1a36e
jge 0x45d1d6
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.004628b0
add esp, 4
xor eax, eax
test edi, edi
jle 0x45d1c6
cmp edi, 0x10
jb 0x45d1b3
lea ecx, [ebp + edi*4 - 0x48]
lea edx, [edi - 1]
lea edx, [ebx + edx*2]
cmp ebx, ecx
ja 0x45d0d1
lea ecx, [ebp - 0x44]
cmp edx, ecx
jae 0x45d1b3
movaps xmm1, xmmword [0x4a7c00]
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 0x45d0f0
mov edi, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
cmp eax, edi
jge 0x45d1c6
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 0x45d1b3
inc esi
mov dword [ebp - 0xd4], esi
cmp esi, 0x10
jl 0x45d073
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004661fb
mov esp, ebp
pop ebp
ret