Function at 0x4d5760
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x228
push ebx
mov ebx, dword [esp + 0x230]
push ebp
push esi
mov esi, 2
push edi
mov dword [ebx + 0xc0], 0
mov dword [esp + 0x1c], esi
nop dword [eax]
nop dword [eax + eax]
movzx ebp, byte [ebx + esi + 0x2a98]
lea eax, [ebx + 0x2198]
mov edi, ebp
xor edx, edx
shr edi, 1
and ebp, 1
dec edi
or ebp, 2
mov ecx, edi
mov ebx, esi
shl ebp, cl
lea eax, [eax + ebp*4]
add ebp, esi
mov dword [esp + 0x18], eax
mov eax, 1
mov dword [esp + 0x14], eax
shl dword [esp + 0x14], cl
mov dword [esp + 0x20], ebp
test edi, edi
je 0x4d5818
mov ebp, edx
lea edx, [eax + eax]
mov esi, ebx
mov eax, dword [esp + 0x18]
and esi, 1
shr ebx, 1
movzx ecx, word [edx + eax]
mov eax, esi
neg eax
shr ecx, 4
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x23c]
add ebp, dword [eax + ecx*4 + 0x548]
lea eax, [edx + esi]
sub edi, 1
jne 0x4d57d1
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc esi
mov ebx, dword [esp + 0x23c]
mov dword [esp + 0x1c], esi
movzx ecx, word [ecx + eax*2]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [ebx + eax*4 + 0x548]
mov ecx, dword [ebx + ecx*4 + 0x548]
add eax, edx
mov dword [esp + ebp*4 + 0x38], eax
add ecx, edx
mov eax, dword [esp + 0x14]
add eax, ebp
mov dword [esp + eax*4 + 0x38], ecx
cmp esi, 0x40
jb 0x4d5790
mov edx, ebx
mov dword [esp + 0x20], 4
lea edi, [esp + 0x3c]
sub edi, edx
sub edi, 0x1418
lea eax, [edx + 0x1f98]
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
lea ebp, [edx + 0x1018]
lea eax, [edx + 0x1420]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], eax
nop dword [eax + eax]
mov ebx, dword [edx + 0xc8]
inc ebx
shr ebx, 1
mov dword [esp + 0x34], ebx
je 0x4d59de
mov dword [esp + 0x24], ebp
mov eax, 0x20
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebx
lea ecx, [ebp + 0x40]
mov dword [esp + 0x1c], ecx
jmp 0x4d58d3
mov edx, edi
mov edi, eax
mov ecx, eax
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
movzx eax, word [ebp + edi*2]
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 + 0x548]
and ecx, 0x7f
movzx eax, word [ebp + edi*2]
shr eax, 4
xor eax, ecx
mov ecx, edi
and ecx, 1
shr edi, 1
neg ecx
mov esi, edi
shr ecx, 4
and esi, 1
add ebx, dword [edx + eax*4 + 0x548]
and ecx, 0x7f
movzx eax, word [ebp + edi*2]
neg esi
shr eax, 4
xor eax, ecx
shr edi, 1
shr esi, 4
and esi, 0x7f
add ebx, dword [edx + eax*4 + 0x548]
mov eax, edi
movzx ecx, word [ebp + edi*2]
shr eax, 1
shr ecx, 4
xor ecx, esi
mov esi, dword [esp + 0x1c]
movzx edx, word [ebp + eax*2]
mov eax, edi
mov edi, dword [esp + 0x23c]
and eax, 1
neg eax
shr edx, 4
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [edi + edx*4 + 0x548]
add eax, dword [edi + ecx*4 + 0x548]
movzx ecx, word [esi]
add ebx, eax
mov edx, dword [esp + 0x24]
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
add esi, 2
mov dword [esp + 0x1c], esi
mov eax, dword [edi + eax*4 + 0x548]
add eax, ebx
mov dword [edx], eax
mov eax, dword [edi + ecx*4 + 0x548]
add eax, ebx
mov dword [edx + 4], eax
add edx, 8
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x24], edx
sub dword [esp + 0x28], 1
mov dword [esp + 0x18], eax
jne 0x4d58d1
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov ecx, 7
mov eax, 0x20
cmp ebx, ecx
jbe 0x4d5a04
nop dword [eax]
add dword [ebp + ecx*8], eax
lea edx, [ebp + 4]
add dword [edx + ecx*8], eax
inc ecx
add eax, 0x10
cmp ecx, ebx
jb 0x4d59f0
jmp 0x4d5a07
lea edx, [ebp + 4]
mov ebx, dword [esp + 0x10]
mov esi, 4
mov eax, dword [ebp]
mov dword [ebx - 8], eax
mov eax, dword [edx]
mov dword [ebx - 4], eax
mov eax, dword [edx + 4]
mov dword [ebx], eax
mov eax, dword [edx + 8]
mov dword [ebx + 4], eax
lea eax, [ebx + 8]
mov ebx, dword [esp + 0x23c]
movzx ecx, byte [ebx + esi + 0x2a98]
lea eax, [eax + 8]
add esi, 2
mov edx, dword [ebp + ecx*4]
mov ecx, dword [edi + eax - 0xc]
add ecx, edx
mov dword [eax - 8], ecx
mov ecx, dword [edi + eax - 8]
add ecx, edx
mov dword [eax - 4], ecx
cmp esi, 0x80
jb 0x4d5a30
sub dword [esp + 0x14], 0xffffff80
add ebp, 0x100
add dword [esp + 0x10], 0x200
sub edi, 0x200
sub dword [esp + 0x20], 1
mov edx, ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
jne 0x4d58a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret