Function at 0x1000cbf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
push ebx
mov eax, ecx
sar edx, 1
push ebp
push esi
mov esi, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x14], eax
push edi
lea edi, [eax + edx*4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
cmp esi, 4
jl 0x1000cc22
mov eax, esi
shr eax, 1
lea ebx, [eax*4 + 0x10037860]
jmp 0x1000cc27
mov ebx, 0x10036860
lea eax, [ebx + 0x1000]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], eax
lea eax, [esi*4]
mov dword [esp + 0x20], eax
jmp 0x1000cc4e
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, ecx
mov ebp, dword [esp + 0x50]
sar eax, 4
and eax, 0xf
movzx edx, byte [eax + 0x10036850]
mov eax, ecx
and eax, 0xf
movzx eax, byte [eax + 0x10036850]
shl eax, 4
or edx, eax
mov eax, ecx
sar eax, 8
inc ecx
shl edx, 4
mov dword [esp + 0x10], ecx
mov ecx, ebp
movzx eax, byte [eax + 0x10036850]
or edx, eax
mov eax, edx
sar edx, cl
xor eax, 0xfff
sar eax, cl
mov ecx, dword [edi + edx*4]
mov dword [esp + 0x30], ecx
mov esi, dword [edi + eax*4 - 4]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
lea ebp, [ecx + esi]
mov ecx, dword [edi + edx*4 + 4]
mov esi, dword [esp + 0x4c]
mov edi, ecx
sub edi, eax
mov dword [esp + 0x28], ecx
mov eax, dword [esi + 4]
imul ebp
mov dword [esp + 0x34], eax
mov ecx, edx
mov eax, dword [ebx]
imul edi
mov dword [esp + 0x34], eax
add edx, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x24]
mov dword [esp + 0x34], edx
imul edi
mov eax, dword [ebx]
mov ebx, dword [esp + 0x2c]
mov esi, edx
sub ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
imul ebp
mov ebp, dword [esp + 0x14]
sub esi, edx
sar ecx, 1
mov edx, dword [esp + 0x34]
sub ebp, 0x10
sar ebx, 1
mov dword [esp + 0x14], ebp
lea eax, [edx + ecx]
sub ecx, edx
mov dword [edi], eax
lea eax, [ebx + esi]
mov dword [edi + 4], eax
sub esi, ebx
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
sar eax, 4
and eax, 0xf
mov dword [ebp + 0xc], esi
movzx edx, byte [eax + 0x10036850]
mov eax, ecx
and eax, 0xf
movzx eax, byte [eax + 0x10036850]
shl eax, 4
or edx, eax
shl edx, 4
mov edi, dword [esp + 0x1c]
mov eax, ecx
sar eax, 8
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x50]
movzx eax, byte [eax + 0x10036850]
or edx, eax
mov eax, edx
sar edx, cl
xor eax, 0xfff
sar eax, cl
mov ecx, dword [edi + edx*4]
mov dword [esp + 0x28], ecx
mov esi, dword [edi + eax*4 - 4]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], esi
lea ebp, [ecx + esi]
mov ecx, dword [edi + edx*4 + 4]
mov edi, ecx
mov dword [esp + 0x30], ecx
sub edi, eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov eax, esi
imul ebp
mov eax, ebx
mov ecx, edx
imul edi
mov eax, esi
add edx, ecx
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x24], edx
imul edi
mov edi, dword [esp + 0x4c]
mov eax, ebx
mov ebx, dword [esp + 0x2c]
mov esi, edx
sub ebx, dword [esp + 0x28]
add edi, dword [esp + 0x20]
imul ebp
mov ebp, dword [esp + 0x18]
sub esi, edx
sar ecx, 1
mov edx, dword [esp + 0x24]
sar ebx, 1
mov dword [esp + 0x4c], edi
lea eax, [edx + ecx]
sub ecx, edx
mov dword [ebp + 8], eax
lea eax, [ebx + esi]
mov dword [ebp + 0xc], eax
sub esi, ebx
mov eax, dword [esp + 0x14]
add ebp, 0x10
mov dword [esp + 0x18], ebp
mov dword [eax], ecx
mov dword [eax + 4], esi
cmp edi, dword [esp + 0x3c]
jb 0x1000cc42
mov ecx, dword [esp + 0x10]
mov eax, ecx
sar eax, 4
and eax, 0xf
mov ebx, dword [esp + 0x1c]
sub edi, dword [esp + 0x20]
mov dword [esp + 0x4c], edi
movzx edx, byte [eax + 0x10036850]
mov eax, ecx
and eax, 0xf
movzx eax, byte [eax + 0x10036850]
shl eax, 4
or edx, eax
mov eax, ecx
sar eax, 8
inc ecx
shl edx, 4
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x50]
movzx eax, byte [eax + 0x10036850]
or edx, eax
mov eax, edx
sar edx, cl
xor eax, 0xfff
sar eax, cl
mov ecx, dword [ebx + edx*4]
mov dword [esp + 0x2c], ecx
mov esi, dword [ebx + eax*4 - 4]
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], esi
lea ebp, [ecx + esi]
mov ecx, dword [ebx + edx*4 + 4]
mov ebx, ecx
mov dword [esp + 0x34], ecx
sub ebx, eax
mov esi, edi
mov eax, dword [esi]
imul ebp
mov eax, dword [edi + 4]
mov ecx, edx
imul ebx
mov eax, dword [esi]
add edx, ecx
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
imul ebx
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x30]
mov esi, edx
sub ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
imul ebp
mov ebp, dword [esp + 0x14]
sub esi, edx
sar ecx, 1
mov edx, dword [esp + 0x28]
sub ebp, 0x10
sar ebx, 1
mov dword [esp + 0x14], ebp
lea eax, [ecx + edx]
sub ecx, edx
mov dword [edi], eax
lea eax, [ebx + esi]
mov dword [edi + 4], eax
sub esi, ebx
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
sar eax, 4
and eax, 0xf
mov dword [ebp + 0xc], esi
movzx edx, byte [eax + 0x10036850]
mov eax, ecx
and eax, 0xf
movzx eax, byte [eax + 0x10036850]
shl eax, 4
or edx, eax
mov eax, ecx
shl edx, 4
mov ebx, dword [esp + 0x1c]
inc ecx
sar eax, 8
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x50]
movzx eax, byte [eax + 0x10036850]
or edx, eax
mov eax, edx
sar edx, cl
xor eax, 0xfff
sar eax, cl
mov ecx, dword [ebx + edx*4]
mov dword [esp + 0x2c], ecx
mov esi, dword [ebx + eax*4 - 4]
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], esi
lea ebp, [ecx + esi]
mov ecx, dword [ebx + edx*4 + 4]
mov ebx, ecx
mov dword [esp + 0x34], ecx
sub ebx, eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov eax, esi
imul ebp
mov eax, edi
mov ecx, edx
imul ebx
mov eax, esi
add edx, ecx
mov ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
imul ebx
mov ebx, dword [esp + 0x30]
mov eax, edi
mov edi, dword [esp + 0x18]
mov esi, edx
sub ebx, dword [esp + 0x2c]
imul ebp
sar ecx, 1
sub esi, edx
sar ebx, 1
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx]
sub ecx, edx
mov dword [edi + 8], eax
lea eax, [ebx + esi]
mov dword [edi + 0xc], eax
sub esi, ebx
mov eax, dword [esp + 0x14]
add edi, 0x10
mov dword [esp + 0x18], edi
cmp edi, eax
mov edi, dword [esp + 0x4c]
mov dword [eax], ecx
mov dword [eax + 4], esi
jb 0x1000ce11
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret