Function at 0x1002df70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0x10
mov edi, ecx
call fcn.1008cac2
mov edx, dword [edi]
mov ebx, eax
shl edx, 2
push edx
mov dword [ebp - 4], ebx
call fcn.1008cac2
mov dword [ebx], eax
add esp, 8
mov ecx, dword [edi]
add ecx, eax
mov dword [ebx + 4], ecx
mov ecx, dword [edi]
push esi
lea ecx, [eax + ecx*2]
mov dword [ebx + 8], ecx
mov ecx, dword [edi]
lea eax, [eax + ecx*2]
add eax, ecx
xor ecx, ecx
mov dword [ebx + 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 8], ecx
xor edx, edx
test eax, eax
jle 0x1002dfd7
mov esi, dword [ebp + 8]
add esi, ecx
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x1002dfc2
mov ecx, dword [ebp - 8]
inc ecx
add ebx, 4
mov dword [ebp - 8], ecx
cmp ecx, 4
jl 0x1002dfb7
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
imul eax, ecx
lea esi, [edx + eax*4]
xor eax, eax
mov dword [ebp - 8], esi
mov dword [ebp + 8], eax
nop dword [eax]
xor edx, edx
test ecx, ecx
jle 0x1002e020
add esi, eax
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov ecx, dword [edi]
cmp edx, ecx
jl 0x1002e008
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
inc eax
add ebx, 4
mov dword [ebp + 8], eax
cmp eax, 4
jl 0x1002e000
mov ebx, dword [edi + 8]
mov esi, dword [ebp - 4]
dec ebx
mov dword [ebp - 8], ebx
cmp ebx, 1
jl 0x1002e0d7
nop
push esi
mov ecx, edi
call fcn.1002e430
mov eax, dword [edi]
mov ecx, edi
dec eax
push eax
push 1
push esi
call fcn.1002e690
mov eax, dword [edi]
mov ecx, edi
sub eax, 2
push eax
push 2
push esi
call fcn.1002e690
mov eax, dword [edi]
mov ecx, edi
sub eax, 3
push eax
push 3
push esi
call fcn.1002e690
mov ecx, dword [edi]
mov eax, ecx
mov edx, dword [ebp + 0x10]
imul eax, ebx
mov ebx, dword [ebp - 4]
lea esi, [edx + eax*4]
xor edx, edx
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], edx
nop
xor eax, eax
test ecx, ecx
jle 0x1002e0b0
add esi, edx
mov edx, dword [ebx]
lea esi, [esi + 4]
mov cl, byte [esi - 4]
xor byte [edx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jl 0x1002e098
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
inc edx
add ebx, 4
mov dword [ebp + 8], edx
cmp edx, 4
jl 0x1002e090
mov esi, dword [ebp - 4]
mov ecx, edi
push esi
call fcn.1002e2d0
mov ebx, dword [ebp - 8]
dec ebx
mov dword [ebp - 8], ebx
cmp ebx, 1
jge 0x1002e040
push esi
mov ecx, edi
call fcn.1002e430
mov eax, dword [edi]
mov ecx, edi
dec eax
push eax
push 1
push esi
call fcn.1002e690
mov eax, dword [edi]
mov ecx, edi
sub eax, 2
push eax
push 2
push esi
call fcn.1002e690
mov eax, dword [edi]
mov ecx, edi
sub eax, 3
push eax
push 3
push esi
call fcn.1002e690
mov eax, dword [edi]
xor ecx, ecx
mov dword [ebp + 8], ecx
mov ebx, esi
xor edx, edx
test eax, eax
jle 0x1002e136
mov esi, dword [ebp + 0x10]
add esi, ecx
mov ecx, dword [ebx]
lea esi, [esi + 4]
mov al, byte [esi - 4]
xor byte [ecx + edx], al
inc edx
mov eax, dword [edi]
cmp edx, eax
jl 0x1002e121
mov ecx, dword [ebp + 8]
inc ecx
add ebx, 4
mov dword [ebp + 8], ecx
cmp ecx, 4
jl 0x1002e116
mov eax, dword [edi]
xor ebx, ebx
mov esi, dword [ebp - 4]
nop dword [eax]
xor ecx, ecx
test eax, eax
jle 0x1002e172
mov edx, dword [ebp + 0xc]
add edx, ebx
nop dword [eax + eax]
mov eax, dword [esi]
lea edx, [edx + 4]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx - 4], al
mov eax, dword [edi]
cmp ecx, eax
jl 0x1002e160
inc ebx
add esi, 4
cmp ebx, 4
jl 0x1002e150
mov ebx, dword [ebp - 4]
pop esi
push dword [ebx]
call fcn.1008c574
push ebx
call fcn.1008c574
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc