Function at 0x1000e3d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
xor edx, edx
cmp ebx, edx
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
je 0x1000e409
cmp ebp, 8
jl 0x1000e409
cmp ebp, 0x4000
jg 0x1000e409
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
jne 0x1000e411
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
cmp ecx, 0x80
jne 0x1000e41d
mov dword [esp + 8], edx
push esi
lea esi, [ebp + ebp*4]
push edi
shl esi, 2
push esi
call dword [0x102d00c4]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 4], edi
jne 0x1000e44a
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov dword [ebx + 4], eax
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [ebx + 8], ebp
jle 0x1000e673
mov edi, dword [esp + 0xc]
add edi, 4
mov dword [esp + 0x14], eax
jmp 0x1000e480
mov eax, dword [edi + 8]
test eax, eax
je 0x1000e53e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000e498
mov ebp, dword [edi + 0xc]
jmp 0x1000e4b6
cmp dword [ebx + 8], 0x80
mov edx, dword [edi + 4]
jne 0x1000e4ad
mov ecx, dword [edi]
call fcn.1000e250
jmp 0x1000e4b4
mov esi, dword [edi]
call fcn.1000e210
mov ebp, eax
xor edx, edx
mov eax, ebp
div dword [ebx + 8]
mov eax, dword [ebx + 4]
lea esi, [edx + edx*4]
shl esi, 2
mov ecx, dword [eax + esi + 0xc]
add eax, esi
test ecx, ecx
jne 0x1000e502
lea ecx, [edi - 4]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 4]
mov dword [esi + edx], 0
mov eax, dword [ebx + 4]
mov dword [eax + esi + 0x10], ebp
jmp 0x1000e53e
push 0x14
call dword [0x102d00c4]
add esp, 4
test eax, eax
je 0x1000e536
mov ecx, dword [edi]
mov dword [eax + 4], ecx
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
mov dword [eax + 0x10], ebp
mov ecx, dword [ebx + 4]
mov edx, dword [esi + ecx]
mov dword [eax], edx
mov dword [eax + 0xc], 1
mov ecx, dword [ebx + 4]
mov dword [esi + ecx], eax
jmp 0x1000e53e
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x14]
add edi, 0x14
dec eax
mov dword [esp + 0x14], eax
jne 0x1000e480
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x1000e673
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
test esi, esi
je 0x1000e659
mov eax, dword [esp + 0x10]
test eax, eax
mov ecx, dword [esi]
mov dword [esp + 0x20], ecx
je 0x1000e589
mov edi, dword [esi + 0x10]
jmp 0x1000e5e0
cmp dword [ebx + 8], 0x80
mov edx, dword [esi + 8]
jne 0x1000e5a1
mov ecx, dword [esi + 4]
call fcn.1000e250
mov edi, eax
jmp 0x1000e5e0
test edx, edx
mov edi, dword [esi + 4]
jle 0x1000e5de
test edi, edi
je 0x1000e5de
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x1000e5cc
movzx ebp, byte [ecx + edi]
add ebp, eax
imul ebp, ebp, 0x401
mov eax, ebp
shr ebp, 6
xor eax, ebp
inc ecx
cmp ecx, edx
jl 0x1000e5b4
lea eax, [eax + eax*8]
mov edi, eax
shr edi, 0xb
xor edi, eax
imul edi, edi, 0x8001
jmp 0x1000e5e0
xor edi, edi
xor edx, edx
mov eax, edi
div dword [ebx + 8]
lea ecx, [edx + edx*4]
mov edx, dword [ebx + 4]
shl ecx, 2
lea eax, [edx + ecx]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x1000e640
mov edx, esi
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx + 8]
mov dword [eax + 8], ebp
mov ebp, dword [edx + 0xc]
mov dword [eax + 0xc], ebp
mov edx, dword [edx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebx + 4]
mov dword [ecx + eax], 0
mov edx, dword [ebx + 4]
mov dword [edx + ecx + 0xc], 1
mov eax, dword [ebx + 4]
push esi
mov dword [eax + ecx + 0x10], edi
call dword [0x102d00c0]
add esp, 4
jmp 0x1000e64d
mov edx, dword [eax]
mov dword [esi], edx
mov dword [esi + 0x10], edi
mov eax, dword [ebx + 4]
mov dword [ecx + eax], esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x1000e576
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x1000e568
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x102d00c0]
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x18
ret