Function at 0x484fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, ecx
push esi
mov esi, 4
mov dword [ebp - 0x208], edx
push edi
mov dword [edx + 0xc0], 0
mov dword [ebp - 0x20c], esi
jmp 0x484fe6
mov edx, dword [ebp - 0x208]
movzx eax, byte [edx + esi + 0x2c9c]
mov edi, esi
mov ebx, eax
mov dword [ebp - 0x210], 0
shr ebx, 1
and eax, 1
dec ebx
or eax, 2
mov ecx, ebx
shl eax, cl
lea ecx, [edx + 0x239c]
mov edx, 1
sub edi, eax
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x220], ecx
nop
mov esi, edi
add edx, edx
and esi, 1
shr edi, 1
mov eax, esi
mov dword [ebp - 0x224], edi
mov edi, dword [ebp - 0x208]
neg eax
movzx ecx, word [edx + ecx]
add edx, esi
shr eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
mov eax, dword [ebp - 0x210]
add eax, dword [edi + ecx*4 + 0x748]
mov edi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x210], eax
sub ebx, 1
jne 0x485020
mov esi, dword [ebp - 0x20c]
mov dword [ebp + esi*4 - 0x204], eax
inc esi
mov dword [ebp - 0x20c], esi
cmp esi, 0x80
jb 0x484fe0
mov ecx, dword [ebp - 0x208]
lea edi, [ebp - 0x200]
sub edi, ecx
mov dword [ebp - 0x224], 4
sub edi, 0x161c
mov dword [ebp - 0x210], edi
lea eax, [ecx + 0x219c]
lea ebx, [ecx + 0x121c]
mov dword [ebp - 0x214], eax
lea esi, [ecx + 0x1624]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], esi
nop word [eax + eax]
mov edx, dword [ecx + 0xc8]
xor ecx, ecx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x20c], ecx
test edx, edx
je 0x48523b
mov esi, dword [ebp - 0x214]
mov ebx, ecx
shr ebx, 1
lea edi, [ebx + 0x20]
mov ecx, edi
shr edi, 1
and ecx, 1
neg ecx
shr ecx, 4
movzx eax, word [esi + edi*2]
and ecx, 0x7f
shr eax, 4
xor eax, ecx
mov ecx, dword [ebp - 0x208]
mov edx, dword [ecx + eax*4 + 0x748]
mov ecx, edi
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
movzx eax, word [esi + edi*2]
shr eax, 4
xor eax, ecx
mov ecx, dword [ebp - 0x208]
add edx, dword [ecx + eax*4 + 0x748]
mov ecx, edi
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
movzx eax, word [esi + edi*2]
mov esi, edi
shr eax, 4
and esi, 1
xor eax, ecx
shr edi, 1
mov ecx, dword [ebp - 0x208]
neg esi
shr esi, 4
and esi, 0x7f
add edx, dword [ecx + eax*4 + 0x748]
mov eax, edi
mov ecx, dword [ebp - 0x214]
shr eax, 1
mov dword [ebp - 0x228], edx
movzx edx, word [ecx + eax*2]
mov eax, edi
movzx ecx, word [ecx + edi*2]
and eax, 1
mov edi, dword [ebp - 0x208]
neg eax
shr eax, 4
and eax, 0x7f
shr edx, 4
xor edx, eax
shr ecx, 4
xor ecx, esi
mov esi, dword [ebp - 0x214]
mov eax, dword [edi + edx*4 + 0x748]
add eax, dword [edi + ecx*4 + 0x748]
movzx ecx, word [esi + ebx*2 + 0x40]
mov edx, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x220]
add edx, eax
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4 + 0x748]
mov edi, dword [ebp - 0x20c]
add eax, edx
mov dword [ebx + edi*4], eax
mov eax, dword [ebp - 0x208]
mov eax, dword [eax + ecx*4 + 0x748]
mov ecx, edi
add eax, edx
mov edx, dword [ebp - 0x218]
mov dword [ebx + ecx*4 + 4], eax
add ecx, 2
mov dword [ebp - 0x20c], ecx
cmp ecx, edx
jb 0x485102
mov edi, dword [ebp - 0x210]
mov esi, dword [ebp - 0x21c]
mov eax, 0xe
lea ecx, [edx - 0xe]
cmp edx, eax
jbe 0x485303
cmp ecx, 8
jb 0x4852ed
movaps xmm2, xmmword [0x5075c0]
and ecx, 7
movaps xmm4, xmmword [0x5075d0]
mov dword [ebp - 0x218], ecx
mov ecx, edx
sub ecx, dword [ebp - 0x218]
mov dword [ebp - 0x218], ecx
mov ecx, 1
mov edi, dword [ebp - 0x218]
movd xmm3, ecx
mov ecx, 4
movd xmm5, ecx
movd xmm0, eax
lea ecx, [eax + 4]
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ebx + eax*4]
paddd xmm1, xmm2
psrld xmm1, xmm3
psubd xmm1, xmm4
pslld xmm1, xmm5
paddd xmm1, xmm0
movd xmm0, ecx
movups xmmword [ebx + eax*4], xmm1
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ebx + eax*4 + 0x10]
paddd xmm1, xmm2
psrld xmm1, xmm3
psubd xmm1, xmm4
pslld xmm1, xmm5
paddd xmm1, xmm0
movups xmmword [ebx + eax*4 + 0x10], xmm1
add eax, 8
cmp eax, edi
jb 0x485291
mov edi, dword [ebp - 0x210]
cmp eax, edx
jae 0x485303
mov ecx, eax
shr ecx, 1
shl ecx, 4
sub ecx, 0x50
add dword [ebx + eax*4], ecx
inc eax
cmp eax, edx
jb 0x4852f1
mov eax, dword [ebx]
mov edx, dword [ebp - 0x21c]
mov dword [esi - 8], eax
add edx, 8
mov eax, dword [ebx + 4]
mov dword [esi - 4], eax
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 4], eax
mov esi, 4
mov eax, dword [ebp - 0x208]
lea edx, [edx + 8]
movzx eax, byte [eax + esi + 0x2c9c]
add esi, 2
mov ecx, dword [ebx + eax*4]
mov eax, dword [edi + edx - 0xc]
add eax, ecx
mov dword [edx - 8], eax
mov eax, dword [edi + edx - 8]
add eax, ecx
mov dword [edx - 4], eax
cmp esi, 0x80
jb 0x485327
mov esi, dword [ebp - 0x21c]
add ebx, 0x100
sub dword [ebp - 0x214], 0xffffff80
add esi, 0x200
mov ecx, dword [ebp - 0x208]
sub edi, 0x200
sub dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], edi
jne 0x4850e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493bec
mov esp, ebp
pop ebp
ret