Function at 0x55a6e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x6e47f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5c]
push ebx
movzx ebx, byte [ecx + 0x58]
mov dword [ebp - 0x120], eax
inc ebx
mov eax, dword [ecx + 0x60]
mov dword [ebp - 0x124], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [eax + 0x38]
test eax, eax
push edi
push 0x40
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x128], ebx
pop edx
mov dword [ebp - 0x108], ecx
jne 0x55a873
mov dword [ebp - 0x110], eax
cmp eax, edx
mov edi, eax
cmovg edi, edx
mov edx, dword [ebp - 0x120]
push edi
push esi
push dword [ebp + 0xc]
mov eax, dword [edx]
push ecx
mov ecx, edx
mov dword [ebp - 0x10c], edi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x124]
lea edx, [ebp - 0x104]
push edi
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp - 0x108]
call dword [eax + 0xc]
cmp ebx, 0x100
jne 0x55a7c7
test edi, edi
jle 0x55a83e
lea eax, [ebp - 0x104]
mov ebx, esi
sub eax, esi
mov esi, edi
mov dword [ebp - 0x114], eax
mov edi, eax
push dword [ebx]
push dword [ebx + edi]
call fcn.0055a54c
mov dword [ebx], eax
lea ebx, [ebx + 4]
pop ecx
pop ecx
sub esi, 1
jne 0x55a7a9
mov ebx, dword [ebp - 0x128]
jmp 0x55a832
test edi, edi
jle 0x55a83e
lea eax, [ebp - 0x104]
mov dword [ebp - 0x114], edi
sub eax, esi
mov dword [ebp - 0x12c], esi
mov edi, esi
mov dword [ebp - 0x11c], eax
mov esi, eax
push dword [edi]
push dword [edi + esi]
call fcn.0055a54c
pop ecx
mov edx, eax
and edx, 0xff00ff
pop ecx
mov ecx, eax
imul edx, ebx
shr ecx, 8
and ecx, 0xffff00ff
shr eax, 8
imul ecx, ebx
shr edx, 8
xor edx, ecx
mov ecx, 0xff00ff
and eax, ecx
and edx, ecx
imul eax, ebx
xor edx, eax
sub dword [ebp - 0x114], 1
mov dword [edi], edx
lea edi, [edi + 4]
jne 0x55a7e9
mov edi, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x118]
mov eax, dword [ebp - 0x110]
lea esi, [esi + edi*4]
mov ecx, dword [ebp - 0x108]
sub eax, edi
add ecx, edi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x110], eax
push 0x40
pop edx
test eax, eax
jg 0x55a749
jmp 0x55a948
mov dword [ebp - 0x10c], eax
cmp eax, edx
mov edi, eax
cmovg edi, edx
mov edx, dword [ebp - 0x120]
push edi
push esi
push dword [ebp + 0xc]
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x124]
lea edx, [ebp - 0x104]
push edi
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp - 0x108]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x11c]
lea edx, [ebp - 0x104]
push 0
push edi
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0x10]
cmp ebx, 0x100
je 0x55a91e
xor eax, eax
mov dword [ebp - 0x110], eax
test edi, edi
jle 0x55a91e
mov ecx, dword [esi + eax*4]
mov edx, ecx
and edx, 0xff00ff
mov eax, ecx
shr eax, 8
imul edx, ebx
and eax, 0xffff00ff
imul eax, ebx
shr ecx, 8
shr edx, 8
xor edx, eax
mov eax, 0xff00ff
and ecx, eax
and edx, eax
mov eax, dword [ebp - 0x110]
imul ecx, ebx
xor edx, ecx
mov dword [esi + eax*4], edx
inc eax
mov dword [ebp - 0x110], eax
cmp eax, edi
jl 0x55a8d9
mov eax, dword [ebp - 0x10c]
lea esi, [esi + edi*4]
mov ecx, dword [ebp - 0x108]
sub eax, edi
add ecx, edi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], ecx
push 0x40
pop edx
test eax, eax
jg 0x55a879
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f7c1
leave
ret 0x10