Function at 0x4805c0
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
jmp 0x4805f0
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 0x480676
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]
dec edi
jne 0x480631
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 0x4805f0
mov esi, ebx
mov dword [esp + 0x20], 4
lea ebx, [esp + 0x3c]
sub ebx, esi
sub ebx, 0x1418
lea eax, [esi + 0x1f98]
mov dword [esp + 0x30], ebx
lea ebp, [esi + 0x1018]
mov dword [esp + 0x14], eax
lea edi, [esi + 0x1420]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], edi
lea esp, [esp]
mov edx, dword [esi + 0xc8]
inc edx
shr edx, 1
mov dword [esp + 0x34], edx
je 0x480841
mov dword [esp + 0x28], ebp
mov eax, 0x20
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
lea ecx, [ebp + 0x40]
mov dword [esp + 0x1c], ecx
jmp 0x480733
mov esi, 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 [esi + 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
shr ecx, 4
add ebx, dword [esi + eax*4 + 0x548]
and ecx, 0x7f
movzx eax, word [ebp + edi*2]
shr eax, 4
xor eax, ecx
add ebx, dword [esi + eax*4 + 0x548]
mov esi, edi
shr edi, 1
and esi, 1
mov eax, edi
neg esi
shr eax, 1
shr esi, 4
movzx ecx, word [ebp + edi*2]
and esi, 0x7f
shr ecx, 4
movzx edx, word [ebp + eax*2]
xor ecx, esi
mov esi, dword [esp + 0x1c]
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 + 0x28]
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 + 0x28], edx
dec dword [esp + 0x24]
mov dword [esp + 0x18], eax
jne 0x480731
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ecx, 7
mov eax, 0x20
cmp edx, ecx
jbe 0x480860
nop
add dword [ebp + ecx*8], eax
add dword [ebp + ecx*8 + 4], eax
inc ecx
add eax, 0x10
cmp ecx, edx
jb 0x480850
mov eax, dword [ebp]
mov esi, 4
mov dword [edi - 8], eax
mov eax, dword [ebp + 4]
mov dword [edi - 4], eax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov edi, dword [esp + 0x23c]
jmp 0x480890
movzx ecx, byte [edi + esi + 0x2a98]
lea eax, [eax + 8]
add esi, 2
mov edx, dword [ebp + ecx*4]
mov ecx, dword [ebx + eax - 0xc]
add ecx, edx
mov dword [eax - 8], ecx
mov ecx, dword [ebx + eax - 8]
add ecx, edx
mov dword [eax - 4], ecx
cmp esi, 0x80
jb 0x480890
mov edi, dword [esp + 0x10]
add ebp, 0x100
sub dword [esp + 0x14], 0xffffff80
add edi, 0x200
mov esi, dword [esp + 0x23c]
sub ebx, 0x200
dec dword [esp + 0x20]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], ebx
jne 0x480700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret