Function at 0x506b32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
sar eax, 1
cmp ecx, 4
push edi
lea edi, [ebx + eax*4]
mov dword [ebp + 8], edi
jl 0x506b5c
mov eax, ecx
sar eax, 1
lea esi, [eax*4 + 0x556598]
jmp 0x506b61
mov esi, 0x5575a0
lea eax, [esi + 0x1000]
mov dword [ebp - 0x2c], eax
mov eax, ecx
shl eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
call fcn.00506b02
mov ecx, dword [ebp + 0xc]
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
add ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], edx
cdq
mov dword [ebp - 0x48], edx
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
mov eax, ecx
cdq
push edx
push eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.0050d860
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], edx
cdq
mov dword [ebp - 0x38], edx
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
push dword [ebp - 0x3c]
cdq
push edx
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.0050d860
push dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x38]
add edx, eax
push dword [ebp - 0x3c]
mov dword [ebp - 8], edx
call fcn.0050d860
push dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x44]
mov dword [ebp - 0x60], edx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.0050d860
mov ecx, dword [ebp - 0x60]
add esi, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
sub ecx, edx
mov edx, dword [ebp - 0x28]
add eax, edx
mov edx, dword [ebp - 0x18]
sub edi, 0x10
sar eax, 1
sub edx, dword [ebp - 0x1c]
sar edx, 1
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
add edx, eax
sub eax, dword [ebp - 8]
mov dword [ebx], edx
mov edx, dword [ebp - 0xc]
add edx, ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebx + 4], edx
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 8], eax
call fcn.00506b02
mov ecx, dword [ebp + 0xc]
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
add ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], edx
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov eax, ecx
cdq
push edx
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x54]
mov dword [ebp - 0x40], edx
call fcn.0050d860
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x68], edx
cdq
mov dword [ebp - 0x38], edx
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
push dword [ebp - 0x3c]
cdq
push edx
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.0050d860
push dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x68]
push dword [ebp - 0x50]
add edx, eax
push dword [ebp - 0x54]
mov dword [ebp - 8], edx
call fcn.0050d860
push dword [ebp - 0x40]
mov dword [ebp - 0x74], eax
push dword [ebp - 0x44]
mov dword [ebp - 0x70], edx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.0050d860
mov ecx, dword [ebp - 0x70]
add esi, dword [ebp - 0x14]
sub ecx, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
add eax, edx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
sar eax, 1
sar edx, 1
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
add edx, eax
sub eax, dword [ebp - 8]
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0xc]
add edx, ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebx + 0xc], edx
add ebx, 0x10
cmp esi, dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [edi + 4], ecx
jb 0x506b72
mov ecx, dword [ebp - 4]
call fcn.00506b02
mov ecx, dword [ebp + 0xc]
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
sub esi, dword [ebp - 0x14]
inc dword [ebp - 4]
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
add eax, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], ecx
sub ecx, edx
mov dword [ebp - 0x2c], edx
cdq
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
mov dword [ebp - 0x38], edx
cdq
push edx
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0xc], ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.0050d860
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x70], edx
cdq
mov dword [ebp - 0x50], edx
push dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x54]
cdq
push edx
push eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.0050d860
push dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x40]
add edx, eax
push dword [ebp - 0x44]
mov dword [ebp - 8], edx
call fcn.0050d860
push dword [ebp - 0x38]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x68], edx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.0050d860
mov ecx, dword [ebp - 0x68]
sub ecx, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
add eax, edx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x24]
sub edi, 0x10
sar eax, 1
sar edx, 1
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
add edx, eax
sub eax, dword [ebp - 8]
mov dword [ebx], edx
mov edx, dword [ebp - 0xc]
add edx, ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebx + 4], edx
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 8], eax
call fcn.00506b02
mov ecx, dword [ebp + 0xc]
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
sub esi, dword [ebp - 0x14]
inc dword [ebp - 4]
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
add eax, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], ecx
sub ecx, edx
mov dword [ebp - 0x2c], edx
cdq
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
mov dword [ebp - 0x38], edx
cdq
push edx
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0xc], ecx
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.0050d860
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x60], edx
cdq
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], edx
cdq
push edx
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x40], edx
call fcn.0050d860
push dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x60]
push dword [ebp - 0x40]
add edx, eax
push dword [ebp - 0x44]
mov dword [ebp - 8], edx
call fcn.0050d860
push dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x58], edx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0050d860
mov ecx, dword [ebp - 0x58]
sub ecx, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
add eax, edx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x24]
sar eax, 1
sar edx, 1
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
add edx, eax
sub eax, dword [ebp - 8]
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0xc]
add edx, ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebx + 0xc], edx
add ebx, 0x10
cmp ebx, edi
mov dword [edi], eax
mov dword [edi + 4], ecx
jb 0x506d83
pop edi
pop esi
pop ebx
leave
ret