Function at 0x5507f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, 2
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov dword [edi + 0xc0], 0
nop dword [eax]
nop word [eax + eax]
movzx ebp, byte [edi + esi + 0x2cb0]
xor edx, edx
mov eax, dword [esp + 0x18]
mov edi, ebp
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
add eax, 0x23b0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
mov eax, 1
mov dword [esp + 0x10], eax
shl dword [esp + 0x10], cl
test edi, edi
je 0x5508a8
mov ebp, edx
lea edx, [eax + eax]
mov esi, ebx
mov eax, dword [esp + 0x1c]
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 + 0x18]
add ebp, dword [eax + ecx*4 + 0x760]
lea eax, [edx + esi]
sub edi, 1
jne 0x550864
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
movzx ecx, word [ecx + eax*2]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4 + 0x760]
mov ecx, dword [edi + ecx*4 + 0x760]
add eax, edx
mov dword [esp + ebp*4 + 0x3c], eax
add ecx, edx
mov eax, dword [esp + 0x10]
add eax, ebp
mov dword [esp + eax*4 + 0x3c], ecx
cmp esi, 0x40
jb 0x550820
lea eax, [esp + 0x40]
mov dword [esp + 0x24], 4
sub eax, edi
lea edx, [edi + 0x21b0]
lea ebp, [edi + 0x1230]
mov dword [esp + 0x10], edx
lea esi, [edi + 0x1638]
mov dword [esp + 0x30], ebp
sub eax, 0x1630
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], eax
mov ebx, dword [edi + 0xc8]
inc ebx
shr ebx, 1
mov dword [esp + 0x38], ebx
je 0x550a5f
mov eax, 0x20
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x18]
lea ecx, [edx + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
mov edi, eax
mov ecx, eax
and ecx, 1
shr edi, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
movzx eax, word [edx + 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 [ebp + eax*4 + 0x760]
and ecx, 0x7f
movzx eax, word [edx + 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 [ebp + eax*4 + 0x760]
and ecx, 0x7f
movzx eax, word [edx + edi*2]
neg esi
shr eax, 4
xor eax, ecx
shr edi, 1
shr esi, 4
and esi, 0x7f
add ebx, dword [ebp + eax*4 + 0x760]
mov eax, edi
shr eax, 1
movzx edx, word [edx + eax*2]
mov eax, edi
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + edi*2]
mov eax, dword [ebp + edx*4 + 0x760]
mov edx, dword [esp + 0x28]
shr ecx, 4
xor ecx, esi
mov esi, dword [esp + 0x20]
add eax, dword [ebp + ecx*4 + 0x760]
movzx ecx, word [esi]
add ebx, eax
mov eax, ecx
add esi, 2
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [esp + 0x20], esi
mov eax, dword [ebp + eax*4 + 0x760]
add eax, ebx
mov dword [edx], eax
mov eax, dword [ebp + ecx*4 + 0x760]
add eax, ebx
mov dword [edx + 4], eax
add edx, 8
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x28], edx
sub dword [esp + 0x2c], 1
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jne 0x550954
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, 7
mov ecx, 0x20
cmp ebx, edx
jbe 0x550a80
nop dword [eax]
add dword [ebp + edx*8], ecx
add dword [ebp + edx*8 + 4], ecx
inc edx
add ecx, 0x10
cmp edx, ebx
jb 0x550a70
mov eax, dword [ebp]
mov ebx, dword [esp + 0x34]
mov dword [esi - 8], eax
mov eax, dword [ebp + 4]
mov dword [esi - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov esi, 4
mov eax, dword [esp + 0x14]
add eax, 8
nop word [eax + eax]
movzx ecx, byte [edi + esi + 0x2cb0]
lea eax, [eax + 8]
add esi, 2
mov edx, dword [ebp + ecx*4]
mov ecx, dword [eax + ebx - 0xc]
add ecx, edx
mov dword [eax - 8], ecx
mov ecx, dword [eax + ebx - 8]
add ecx, edx
mov dword [eax - 4], ecx
cmp esi, 0x80
jb 0x550ab0
mov edx, dword [esp + 0x10]
add ebp, 0x100
mov esi, dword [esp + 0x14]
sub edx, 0xffffff80
add esi, 0x200
mov dword [esp + 0x30], ebp
sub ebx, 0x200
mov dword [esp + 0x10], edx
sub dword [esp + 0x24], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], ebx
jne 0x550925
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret