Function at 0x10146720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x1029e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x454], ebx
lea eax, [ecx + 8]
xor esi, esi
mov ebx, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x444], esi
cmp dword [eax - 8], 0
jne 0x10146794
cmp dword [eax - 4], 0
jne 0x1014678d
cmp dword [eax], 0
jne 0x10146788
cmp dword [eax + 4], 0
jne 0x10146783
add esi, 4
add eax, 0x10
mov dword [ebp - 0x444], esi
cmp esi, 0xff
jle 0x10146756
jmp 0x10146794
add esi, 3
jmp 0x1014678e
add esi, 2
jmp 0x1014678e
inc esi
mov dword [ebp - 0x444], esi
mov eax, 0xff
mov dword [ebp - 0x44c], eax
cmp esi, eax
jge 0x101467b4
cmp dword [ecx + eax*4], 0
jne 0x101467ae
dec eax
cmp eax, esi
jg 0x101467a3
mov dword [ebp - 0x44c], eax
mov ecx, eax
lea eax, [ebx + ebx]
sub ecx, esi
mov dword [ebp - 0x448], eax
cmp eax, 1
jle 0x101467f8
lea edi, [eax - 2]
lea edx, [ecx + ecx]
shr edi, 1
mov dword [ebp - 0x438], edx
lea ebx, [ebp - 0x14]
inc edi
mov eax, ecx
lea ebx, [ebx + 4]
cdq
idiv dword [ebp - 0x448]
add ecx, dword [ebp - 0x438]
add eax, esi
mov dword [ebx - 4], eax
dec edi
jne 0x101467d8
mov ebx, dword [ebp - 0x450]
mov dword [ebp - 0x448], 0
test ebx, ebx
jle 0x10146823
lea edx, [ebx*4]
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
shr edx, 2
lea edi, [ebp - 0x34]
mov ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x44c]
xor ecx, ecx
mov edi, esi
cmp esi, eax
jg 0x101468be
mov edx, dword [ebp + 0xc]
lea edx, [edx + esi*4]
lea esi, [ebp - 0x434]
mov dword [ebp - 0x43c], edx
sub esi, dword [ebp + 0xc]
mov dword [ebp - 0x440], esi
mov esi, dword [edx]
mov dword [ebp - 0x438], esi
test esi, esi
je 0x101468b0
dec ebx
cmp ecx, ebx
jge 0x1014688e
mov eax, edi
sub eax, dword [ebp + ecx*4 - 0x10]
cdq
mov esi, eax
mov eax, edi
sub eax, dword [ebp + ecx*4 - 0x14]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jge 0x10146882
inc ecx
cmp ecx, ebx
jl 0x10146861
mov edx, dword [ebp - 0x43c]
mov esi, dword [ebp - 0x438]
mov eax, dword [ebp - 0x440]
mov ebx, dword [ebp - 0x450]
mov dword [eax + edx], ecx
mov eax, esi
imul eax, edi
add dword [ebp + ecx*4 - 0x34], eax
add dword [ebp + ecx*4 - 0x24], esi
mov eax, dword [ebp - 0x44c]
inc edi
add edx, 4
mov dword [ebp - 0x43c], edx
cmp edi, eax
jle 0x10146850
xor edi, edi
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], ecx
test ebx, ebx
jle 0x10146935
lea ebx, [ebx]
mov edi, dword [ebp + esi*4 - 0x24]
test edi, edi
je 0x1014692a
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + esi*4 - 0x34]
sar ecx, 1
add eax, ecx
cdq
idiv edi
mov ecx, eax
mov eax, dword [ebp + esi*4 - 0x14]
sub eax, ecx
mov dword [ebp + esi*4 - 0x14], ecx
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x440], eax
mov eax, edi
imul eax, ecx
mov ecx, dword [ebp - 0x438]
add dword [ebp - 0x43c], eax
add ecx, edi
mov dword [ebp - 0x438], ecx
inc esi
cmp esi, ebx
jl 0x101468e0
mov edi, dword [ebp - 0x440]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x43c]
cdq
idiv ecx
mov dword [ebp - 0x438], eax
cmp edi, 5
jl 0x1014696c
mov eax, dword [ebp - 0x448]
mov esi, dword [ebp - 0x444]
inc eax
mov dword [ebp - 0x448], eax
cmp eax, 6
jl 0x10146802
mov edi, dword [ebp - 0x454]
xor esi, esi
mov eax, dword [edi + 0x2c]
imul eax, dword [edi + 0x28]
test eax, eax
jle 0x101469b3
nop
mov eax, dword [edi + 0x5288]
lea edx, [eax + esi*8]
inc esi
movzx eax, byte [edx + 4]
mov ecx, dword [ebp + eax*4 - 0x434]
mov eax, ecx
shl eax, 5
xor eax, dword [edx]
and eax, 0x60
xor dword [edx], eax
mov al, byte [ebp + ecx*4 - 0x14]
mov byte [edx + 4], al
mov eax, dword [edi + 0x2c]
imul eax, dword [edi + 0x28]
cmp esi, eax
jl 0x10146980
cmp ebx, 1
jle 0x101469c9
mov eax, dword [edi]
test byte [eax + 0x44], 1
je 0x101469c9
push edi
call fcn.101471d0
add esp, 4
push dword [ebp - 0x438]
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.10147040
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1016159e
mov esp, ebp
pop ebp
ret