Function at 0x45ad80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, 2
push esi
push edi
mov dword [ebp - 0x20c], ebx
mov dword [ebx + 0xc0], 0
mov dword [ebp - 0x208], eax
movzx edx, byte [ebx + eax + 0x2cb0]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x214], esi
shr edi, 1
lea eax, [ebx + 0x23b0]
mov ebx, dword [ebp - 0x208]
and edx, 1
dec edi
or edx, 2
mov ecx, edi
shl edx, cl
lea eax, [eax + edx*4]
add edx, ebx
mov dword [ebp - 0x218], eax
mov eax, 1
mov dword [ebp - 0x210], eax
shl dword [ebp - 0x210], cl
mov dword [ebp - 0x21c], edx
test edi, edi
je 0x45ae5f
lea edx, [eax + eax]
mov esi, ebx
mov eax, dword [ebp - 0x218]
and esi, 1
mov dword [ebp - 0x220], edx
shr ebx, 1
movzx ecx, word [edx + eax]
mov eax, esi
mov edx, dword [ebp - 0x20c]
neg eax
shr eax, 4
and eax, 0x7f
shr ecx, 4
xor ecx, eax
mov eax, dword [ebp - 0x214]
add eax, dword [edx + ecx*4 + 0x760]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x220]
add eax, esi
sub edi, 1
jne 0x45ae04
mov edx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x218]
mov ebx, dword [ebp - 0x20c]
movzx ecx, word [ecx + eax*2]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [ebx + eax*4 + 0x760]
mov ecx, dword [ebx + ecx*4 + 0x760]
add eax, esi
mov dword [ebp + edx*4 - 0x204], eax
add ecx, esi
mov eax, dword [ebp - 0x210]
add eax, edx
mov dword [ebp + eax*4 - 0x204], ecx
mov eax, dword [ebp - 0x208]
inc eax
mov dword [ebp - 0x208], eax
cmp eax, 0x40
jb 0x45adb3
mov edx, ebx
mov dword [ebp - 0x220], 4
lea edi, [ebp - 0x200]
sub edi, edx
sub edi, 0x1630
lea ecx, [edx + 0x21b0]
mov dword [ebp - 0x21c], edi
lea ebx, [edx + 0x1230]
mov dword [ebp - 0x208], ecx
lea eax, [edx + 0x1638]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x210], eax
nop
mov esi, dword [edx + 0xc8]
inc esi
shr esi, 1
mov dword [ebp - 0x230], esi
je 0x45b060
mov eax, 0x20
mov dword [ebp - 0x224], ebx
add ecx, 0x40
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x228], esi
mov esi, dword [ebp - 0x208]
mov edi, eax
mov ecx, eax
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, edi
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
mov ebx, dword [edx + eax*4 + 0x760]
and ecx, 0x7f
movzx eax, word [esi + edi*2]
shr eax, 4
xor eax, ecx
mov ecx, edi
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
add ebx, dword [edx + eax*4 + 0x760]
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 ebx, dword [edx + eax*4 + 0x760]
mov eax, edi
shr eax, 1
movzx edx, word [ecx + eax*2]
mov eax, edi
movzx ecx, word [ecx + edi*2]
and eax, 1
mov edi, dword [ebp - 0x218]
neg eax
shr eax, 4
and eax, 0x7f
shr edx, 4
xor edx, eax
shr ecx, 4
mov eax, dword [ebp - 0x20c]
xor ecx, esi
mov esi, dword [ebp - 0x224]
mov eax, dword [eax + edx*4 + 0x760]
mov edx, dword [ebp - 0x20c]
add eax, dword [edx + ecx*4 + 0x760]
movzx ecx, word [edi]
add ebx, eax
mov eax, ecx
add edi, 2
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [ebp - 0x218], edi
mov eax, dword [edx + eax*4 + 0x760]
add eax, ebx
mov dword [esi], eax
mov eax, dword [edx + ecx*4 + 0x760]
add eax, ebx
mov dword [esi + 4], eax
add esi, 8
mov eax, dword [ebp - 0x214]
inc eax
mov dword [ebp - 0x224], esi
sub dword [ebp - 0x228], 1
mov dword [ebp - 0x214], eax
jne 0x45af35
mov ebx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x230]
mov edi, dword [ebp - 0x21c]
mov edx, 7
mov ecx, 0x20
cmp esi, edx
jbe 0x45b07f
nop
add dword [ebx + edx*8], ecx
add dword [ebx + edx*8 + 4], ecx
inc edx
add ecx, 0x10
cmp edx, esi
jb 0x45b070
mov ecx, dword [ebp - 0x210]
mov esi, 4
mov eax, dword [ebx]
mov dword [ecx - 8], eax
mov eax, dword [ebx + 4]
mov dword [ecx - 4], eax
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 4], eax
lea eax, [ecx + 8]
mov ecx, dword [ebp - 0x20c]
lea eax, [eax + 8]
movzx ecx, byte [ecx + esi + 0x2cb0]
add esi, 2
mov edx, dword [ebx + ecx*4]
mov ecx, dword [eax + edi - 0xc]
add ecx, edx
mov dword [eax - 8], ecx
mov ecx, dword [eax + edi - 8]
add ecx, edx
mov dword [eax - 4], ecx
cmp esi, 0x80
jb 0x45b0a3
mov ecx, dword [ebp - 0x208]
add ebx, 0x100
add dword [ebp - 0x210], 0x200
sub ecx, 0xffffff80
mov edx, dword [ebp - 0x20c]
sub edi, 0x200
sub dword [ebp - 0x220], 1
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x21c], edi
jne 0x45af00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587d99
mov esp, ebp
pop ebp
ret