Function at 0x10135270
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44c
mov eax, dword [0x101e900c]
xor eax, esp
mov dword [esp + 0x448], eax
mov eax, dword [esp + 0x450]
mov edx, dword [esp + 0x454]
push ebx
push ebp
mov ebp, 4
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x18], ebp
push esi
cmovl ebp, dword [eax + 0x18]
xor ecx, ecx
push edi
lea eax, [edx + 8]
nop dword [eax + eax]
cmp dword [eax - 8], 0
jne 0x101352eb
cmp dword [eax - 4], 0
jne 0x101352ea
cmp dword [eax], 0
jne 0x101352e5
cmp dword [eax + 4], 0
jne 0x101352e0
add ecx, 4
add eax, 0x10
mov dword [esp + 0x20], ecx
cmp ecx, 0xff
jle 0x101352b0
mov esi, 0xff
jmp 0x1013530b
add ecx, 3
jmp 0x101352eb
add ecx, 2
jmp 0x101352eb
inc ecx
mov esi, 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
cmp ecx, esi
jge 0x1013530f
nop dword [eax]
cmp dword [edx + esi*4], 0
jne 0x1013530b
dec esi
cmp esi, ecx
jg 0x10135300
mov dword [esp + 0x14], esi
mov ebx, esi
xor edi, edi
sub ebx, ecx
test ebp, ebp
jle 0x10135348
lea eax, [ebp*2]
mov dword [esp + 0x10], eax
lea eax, [ebx + ebx]
mov dword [esp + 0x18], eax
mov esi, eax
nop dword [eax]
mov eax, ebx
add ebx, esi
cdq
idiv dword [esp + 0x10]
add eax, ecx
mov dword [esp + edi*4 + 0x28], eax
inc edi
cmp edi, ebp
jl 0x10135330
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test ebp, ebp
jle 0x10135377
lea edx, [ebp*4]
xor eax, eax
mov ecx, edx
lea edi, [esp + 0x38]
shr ecx, 2
rep stosd dword es:[edi], eax
shr edx, 2
lea edi, [esp + 0x48]
mov ecx, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
xor edi, edi
mov ebx, ecx
cmp ecx, esi
jg 0x101353df
mov eax, dword [esp + 0x464]
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x10], edx
test edx, edx
je 0x101353da
lea ecx, [edi + 1]
cmp ecx, ebp
jge 0x101353c2
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x2c]
cdq
mov esi, eax
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x28]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jge 0x101353ba
inc ecx
inc edi
cmp ecx, ebp
jl 0x10135398
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, edx
mov dword [esp + ebx*4 + 0x58], edi
imul eax, ebx
add dword [esp + edi*4 + 0x48], eax
add dword [esp + edi*4 + 0x38], edx
mov eax, dword [esp + 0x464]
inc ebx
cmp ebx, esi
jle 0x10135386
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
xor esi, esi
mov dword [esp + 0x10], edi
test ebp, ebp
jle 0x1013543a
mov edi, dword [esp + esi*4 + 0x38]
test edi, edi
je 0x1013542d
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x48]
sar ecx, 1
add eax, ecx
cdq
idiv edi
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x28]
sub eax, ecx
mov dword [esp + esi*4 + 0x28], ecx
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x1c], eax
mov eax, edi
imul eax, ecx
add dword [esp + 0x10], eax
add ebx, edi
inc esi
cmp esi, ebp
jl 0x101353f3
mov ecx, dword [esp + 0x1c]
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 0x10135467
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
cmp eax, 6
jl 0x10135350
mov ebx, dword [esp + 0x24]
xor esi, esi
mov eax, dword [ebx + 0x2c]
imul eax, dword [ebx + 0x28]
test eax, eax
jle 0x101354b0
nop dword [eax + eax]
mov eax, dword [ebx + 0x588c]
lea edx, [eax + esi*8]
inc esi
movzx eax, byte [edx + 4]
mov ecx, dword [esp + eax*4 + 0x58]
mov eax, ecx
shl eax, 5
xor eax, dword [edx]
and eax, 0x60
xor dword [edx], eax
mov al, byte [esp + ecx*4 + 0x28]
mov byte [edx + 4], al
mov eax, dword [ebx + 0x28]
imul eax, dword [ebx + 0x2c]
cmp esi, eax
jl 0x10135480
cmp ebp, 1
jle 0x101354c6
mov eax, dword [ebx]
test byte [eax + 0x44], 1
je 0x101354c6
push ebx
call fcn.10135b30
add esp, 4
push edi
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.101359a0
mov ecx, dword [esp + 0x464]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101044b9
add esp, 0x44c
ret