Function at 0x1001da30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
sub esi, edx
mov dword [ebp - 0x18], eax
sar esi, 2
test esi, esi
je 0x1001dbfd
push ebx
mov ebx, dword [eax + 4]
sub ebx, dword [eax]
sar ebx, 2
mov dword [ebp - 0x20], ebx
cmp esi, 0x26f
jb 0x1001da6a
mov eax, 0xb
jmp 0x1001da93
cmp esi, 0x44
jb 0x1001da76
mov eax, 7
jmp 0x1001da93
cmp esi, 0x27
jb 0x1001da82
mov eax, 5
jmp 0x1001da93
cmp esi, 7
jb 0x1001da8e
mov eax, 3
jmp 0x1001da93
lea eax, [esi - 1]
shr eax, 1
mov ecx, esi
sub ecx, eax
shr ecx, 1
add eax, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp esi, ebx
ja 0x1001daad
lea eax, [ebx + 1]
mov dword [ebp + 0xc], eax
jmp 0x1001dab0
mov dword [ebp + 0xc], esi
push edi
mov eax, 0x8b8b8b8b
mov ecx, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
test eax, eax
je 0x1001db67
nop dword [eax]
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, edi
mov ecx, dword [ebp + 8]
div esi
lea eax, [ecx + edx*4]
xor edx, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, edi
div esi
mov eax, edx
xor edx, edx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
lea eax, [edi - 1]
div esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
xor ecx, dword [eax]
xor ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul edx, eax, 0x19660d
test edi, edi
jne 0x1001db1f
mov eax, ebx
jmp 0x1001db34
cmp edi, ebx
ja 0x1001db31
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + edi*4 - 4]
add eax, dword [ebp - 4]
jmp 0x1001db34
mov eax, dword [ebp - 4]
lea ecx, [eax + edx]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
xor edx, edx
mov eax, dword [ebp - 0x14]
add eax, edi
inc edi
div esi
add dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
cmp edi, eax
jb 0x1001dad0
add eax, esi
mov dword [ebp - 0xc], eax
cmp edi, eax
jae 0x1001dbfb
mov edx, dword [ebp - 0x10]
lea ecx, [edi - 1]
mov eax, dword [ebp - 0x14]
inc edx
mov ebx, dword [ebp + 8]
inc eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
lea eax, [edx + ecx]
xor edx, edx
div esi
lea eax, [ebx + edx*4]
xor edx, edx
mov ebx, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
div esi
mov eax, ecx
mov edi, edx
xor edx, edx
div esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
xor edx, edx
add ecx, ebx
add ecx, dword [eax + edi*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul eax, eax, 0x5d588b65
xor ebx, eax
mov ecx, eax
mov eax, dword [ebp - 0x20]
sub ecx, edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x1c]
div esi
mov ebx, dword [ebp + 8]
xor dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov edx, dword [ebp - 0x10]
mov dword [ebx + edi*4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0xc]
jb 0x1001db90
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8