Function at 0x100c0470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x30], 0
call fcn.1008c690
push esi
call fcn.1008c5a0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100c07b1
push esi
call fcn.1008c5a0
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100c07b1
push edi
push esi
call fcn.1008c5a0
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
je 0x100c07b0
push ebx
push esi
call fcn.1008c5a0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100c07af
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push edi
call fcn.100c0030
add esp, 0xc
test eax, eax
je 0x100c07ac
cmp dword [edi + 4], 0
je 0x100c07ac
push esi
push ebx
call fcn.10056d60
add esp, 8
test eax, eax
je 0x100c07ac
push edi
call fcn.10057000
push dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.10057000
mov edx, dword [esi + 4]
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], edx
cmp edx, dword [edi + 8]
jle 0x100c0542
push edx
push edi
call fcn.100572f0
mov edx, dword [ebp - 4]
add esp, 8
mov esi, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
cmp esi, edx
jge 0x100c055c
mov ecx, edx
lea edi, [eax + esi*4]
sub ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
mov dword [edi + 4], edx
cmp edx, dword [esi + 8]
jle 0x100c0574
push edx
push esi
call fcn.100572f0
mov edx, dword [ebp - 4]
add esp, 8
mov esi, dword [esi]
mov dword [ebp - 0xc], esi
mov dword [esi], 1
cmp edx, 1
jle 0x100c058e
lea edi, [esi + 4]
xor eax, eax
lea ecx, [edx - 1]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov dword [eax + 4], edx
cmp edx, dword [edi + 8]
jle 0x100c05a9
push edx
push edi
call fcn.100572f0
mov edx, dword [ebp - 4]
add esp, 8
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
test edx, edx
jle 0x100c05be
mov edi, dword [ebp - 0x1c]
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], edx
mov edi, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea esp, [esp]
test ebx, ebx
je 0x100c0694
jmp 0x100c05e0
mov ebx, dword [edi]
test bl, 1
jne 0x100c068e
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi]
mov edx, eax
and edx, 1
neg edx
mov ecx, dword [ecx]
mov dword [ebp - 0x38], edx
mov ecx, dword [ecx]
and ecx, edx
mov edx, dword [ebp - 4]
xor eax, ecx
dec edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
test edx, edx
jle 0x100c0675
mov edx, edi
mov ecx, 0xfffffffc
sub edx, dword [ebp - 0xc]
add esi, 4
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov edx, dword [edx + esi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [ebp - 0x24]
mov dword [edi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x20]
add edx, esi
mov ecx, dword [ecx]
mov edx, dword [edx + ecx + 4]
and edx, dword [ebp - 0x38]
xor edx, dword [esi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [ebp - 4]
mov dword [esi - 4], ecx
dec edx
mov ecx, dword [ebp - 0x24]
add esi, 4
inc ecx
cmp ecx, edx
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x3c]
jl 0x100c0625
mov esi, dword [ebp - 0xc]
shr ebx, 1
mov dword [edi + ecx*4], ebx
mov ebx, dword [ebp - 8]
shr eax, 1
dec ebx
mov dword [esi + ecx*4], eax
mov dword [ebp - 8], ebx
jne 0x100c05e0
jmp 0x100c0691
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp ebx, 0x20
jg 0x100c06a2
cmp dword [edi], 1
je 0x100c076b
mov ecx, dword [ebp - 0x30]
cmp ebx, ecx
jge 0x100c06e1
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], eax
test edx, edx
jle 0x100c0724
mov eax, dword [ebp - 0x2c]
mov ecx, edi
sub eax, edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
sub eax, edi
sub esi, edi
mov dword [ebp - 0x34], esi
mov ebx, eax
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ebx + ecx - 4]
xor dword [edi + ecx - 4], eax
dec edx
jne 0x100c0704
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp ebx, dword [ebp - 0x30]
jne 0x100c05d0
lea eax, [ebx - 1]
cdq
and edx, 0x1f
lea esi, [edx + eax]
sar esi, 5
mov eax, dword [edi + esi*4]
test eax, eax
jne 0x100c074e
test esi, esi
je 0x100c074e
mov eax, dword [edi + esi*4 - 4]
dec esi
test eax, eax
je 0x100c0741
push eax
call fcn.10057030
mov edx, dword [ebp - 4]
add esp, 4
shl esi, 5
lea ebx, [esi + eax]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
jmp 0x100c05d0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 4]
test ecx, ecx
jle 0x100c0791
mov eax, dword [ebx]
lea edx, [ecx - 1]
lea edx, [eax + edx*4]
lea ecx, [ecx]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x100c078e
dec ecx
test ecx, ecx
jg 0x100c0780
mov dword [ebx + 4], ecx
push ebx
push dword [ebp + 8]
call fcn.10056d60
xor ecx, ecx
add esp, 8
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x30], ecx
mov esi, dword [ebp + 0x14]
pop ebx
pop edi
push esi
call fcn.1008c520
mov eax, dword [ebp - 0x30]
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret