Function at 0x101cc960
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x450
mov eax, dword [0x10597da4]
xor eax, esp
mov dword [esp + 0x44c], eax
mov eax, dword [esp + 0x454]
mov ecx, dword [esp + 0x458]
push ebx
push ebp
mov dword [esp + 0x20], eax
mov ebp, 4
mov eax, dword [eax + 0x18]
cmp eax, ebp
push esi
cmovl ebp, eax
xor esi, esi
push edi
mov dword [esp + 0x14], esi
lea eax, [ecx + 8]
cmp dword [eax - 8], 0
jne 0x101cc9da
cmp dword [eax - 4], 0
jne 0x101cc9d5
cmp dword [eax], 0
jne 0x101cc9d0
cmp dword [eax + 4], 0
jne 0x101cc9cb
add esi, 4
add eax, 0x10
mov dword [esp + 0x14], esi
cmp esi, 0xff
jle 0x101cc9a0
jmp 0x101cc9da
add esi, 3
jmp 0x101cc9d6
add esi, 2
jmp 0x101cc9d6
inc esi
mov dword [esp + 0x14], esi
mov eax, 0xff
mov dword [esp + 0x20], eax
cmp esi, eax
jge 0x101cc9f6
cmp dword [ecx + eax*4], 0
jne 0x101cc9f2
dec eax
cmp eax, esi
jg 0x101cc9e7
mov dword [esp + 0x20], eax
mov edi, eax
xor ecx, ecx
sub edi, esi
test ebp, ebp
jle 0x101cca24
lea eax, [edi + edi]
lea ebx, [ebp*2]
mov dword [esp + 0x1c], eax
nop
mov eax, edi
add edi, dword [esp + 0x1c]
cdq
idiv ebx
add eax, esi
mov dword [esp + ecx*4 + 0x2c], eax
inc ecx
cmp ecx, ebp
jl 0x101cca10
mov dword [esp + 0x1c], 0
nop dword [eax]
test ebp, ebp
jle 0x101cca53
lea edx, [ebp*4]
xor eax, eax
mov ecx, edx
lea edi, [esp + 0x3c]
shr ecx, 2
rep stosd dword es:[edi], eax
shr edx, 2
lea edi, [esp + 0x4c]
mov ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
xor edi, edi
mov ebx, esi
cmp esi, eax
jg 0x101ccadf
mov ecx, dword [esp + 0x468]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10], edx
sub ecx, dword [esp + 0x468]
mov dword [esp + 0x24], ecx
mov esi, dword [edx]
mov dword [esp + 0x18], esi
test esi, esi
je 0x101ccad3
lea ecx, [edi + 1]
cmp ecx, ebp
jge 0x101ccabb
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x30]
cdq
mov esi, eax
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x2c]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jge 0x101ccab3
inc ecx
inc edi
cmp ecx, ebp
jl 0x101cca91
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [eax + edx], edi
mov eax, esi
imul eax, ebx
add dword [esp + edi*4 + 0x4c], eax
add dword [esp + edi*4 + 0x3c], esi
mov eax, dword [esp + 0x20]
inc ebx
add edx, 4
mov dword [esp + 0x10], edx
cmp ebx, eax
jle 0x101cca80
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x10], edi
test ebp, ebp
jle 0x101ccb3a
mov edi, dword [esp + esi*4 + 0x3c]
test edi, edi
je 0x101ccb2d
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x4c]
sar ecx, 1
add eax, ecx
cdq
idiv edi
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x2c]
sub eax, ecx
mov dword [esp + esi*4 + 0x2c], ecx
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x18], eax
mov eax, edi
imul eax, ecx
add dword [esp + 0x10], eax
add ebx, edi
inc esi
cmp esi, ebp
jl 0x101ccaf3
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, edi
cdq
idiv ebx
mov edi, eax
cmp ecx, 5
jl 0x101ccb63
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 6
jl 0x101cca30
mov ebx, dword [esp + 0x28]
xor esi, esi
mov eax, dword [ebx + 0x2c]
imul eax, dword [ebx + 0x28]
test eax, eax
jle 0x101ccba4
mov eax, dword [ebx + 0x588c]
lea edx, [eax + esi*8]
inc esi
movzx eax, byte [edx + 4]
mov ecx, dword [esp + eax*4 + 0x5c]
mov eax, ecx
shl eax, 5
xor eax, dword [edx]
and eax, 0x60
xor dword [edx], eax
mov al, byte [esp + ecx*4 + 0x2c]
mov byte [edx + 4], al
mov eax, dword [ebx + 0x2c]
imul eax, dword [ebx + 0x28]
cmp esi, eax
jl 0x101ccb74
cmp ebp, 1
jle 0x101ccbba
mov eax, dword [ebx]
test byte [eax + 0x44], 1
je 0x101ccbba
push ebx
call fcn.101cd2c0
add esp, 4
push edi
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.101cd140
mov ecx, dword [esp + 0x468]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026a6d5
add esp, 0x450
ret