Function at 0x1001e680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10059100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 8], eax
call fcn.10001a20
mov ebx, eax
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], ebx
call fcn.10001a20
mov esi, eax
sub esi, ebx
sar esi, 2
test esi, esi
je 0x1001e85b
mov ecx, 0x10062fbc
call fcn.1000e3a0
mov dword [ebp - 0x14], eax
cmp esi, 0x26f
jb 0x1001e6de
mov ecx, 0xb
jmp 0x1001e707
cmp esi, 0x44
jb 0x1001e6ea
mov ecx, 7
jmp 0x1001e707
cmp esi, 0x27
jb 0x1001e6f6
mov ecx, 5
jmp 0x1001e707
cmp esi, 7
jb 0x1001e702
mov ecx, 3
jmp 0x1001e707
lea ecx, [esi - 1]
shr ecx, 1
mov edx, esi
sub edx, ecx
shr edx, 1
add ecx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
cmp esi, eax
ja 0x1001e71f
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x1001e722
mov dword [ebp - 0x1c], esi
push edi
mov eax, 0x8b8b8b8b
mov ecx, esi
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
test eax, eax
je 0x1001e7d0
nop dword [eax + eax]
lea eax, [edi + edx]
xor edx, edx
div esi
mov eax, dword [ebx + edx*4]
mov dword [ebp - 0x18], eax
mov eax, edi
lea ecx, [ebx + edx*4]
xor edx, edx
div esi
mov dword [ebp - 0x24], ecx
mov ecx, edx
xor edx, edx
mov dword [ebp - 0x20], ecx
lea eax, [ebx + ecx*4]
mov dword [ebp - 0x28], eax
lea eax, [edi - 1]
div esi
mov eax, dword [ebx + edx*4]
xor eax, dword [ebp - 0x18]
xor eax, dword [ebx + ecx*4]
push eax
call fcn.10002c80
imul edx, eax, 0x19660d
test edi, edi
jne 0x1001e789
mov eax, dword [ebp - 0x14]
jmp 0x1001e7a0
cmp edi, dword [ebp - 0x14]
ja 0x1001e79e
lea eax, [edi - 1]
push eax
call fcn.10020680
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
jmp 0x1001e7a0
mov eax, ecx
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x18]
add eax, edx
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
inc edi
div esi
add dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jb 0x1001e740
add eax, esi
mov dword [ebp - 0x18], eax
cmp edi, eax
jae 0x1001e85a
mov eax, dword [ebp - 8]
lea ecx, [edi - 1]
inc edx
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
nop
lea eax, [edx + ecx]
xor edx, edx
div esi
lea eax, [ebx + edx*4]
xor edx, edx
mov ebx, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
div esi
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov edi, edx
xor edx, edx
div esi
mov eax, dword [ecx + edx*4]
add eax, ebx
add eax, dword [ecx + edi*4]
push eax
call fcn.10002c80
imul eax, eax, 0x5d588b65
xor edx, edx
xor ebx, eax
mov ecx, eax
mov eax, dword [ebp - 0x28]
sub ecx, edi
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x24]
div esi
mov ebx, dword [ebp - 0xc]
xor dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov edx, dword [ebp - 0x14]
mov dword [ebx + edi*4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x18]
jb 0x1001e7f0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1002a6ae
mov esp, ebp
pop ebp
ret 8