Function at 0x10002460
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [ecx + 0x30]
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + ebx*4]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
lea ebp, [eax + eax*2 + 0x2fd]
sub ebp, edx
sub ebp, esi
lea esi, [edx + edx*2 + 0x2fd]
sub esi, eax
mov dword [esp + 0x10], ebp
sub esi, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x4c], 0
lea esi, [esi + esi*2 + 0x2fd]
sub esi, eax
mov eax, dword [esp + 0x50]
sub esi, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], esi
lea esi, [eax + eax*2 + 0x2fd]
sub esi, edx
mov edx, dword [esp + 0x58]
sub esi, edx
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x54]
lea esi, [esi + esi*2 + 0x2fd]
sub esi, eax
sub esi, edx
lea edx, [edx + edx*2 + 0x2fd]
sub edx, eax
mov eax, dword [esp + 0x54]
sub edx, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
lea esi, [esp + 0x10]
mov dword [esp + 0x54], 3
mov eax, dword [esi]
mov edx, dword [esi + 0xc]
sub eax, edx
add esi, 4
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x4c]
add edx, eax
mov eax, dword [esp + 0x54]
dec eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
jne 0x10002518
mov eax, edx
cmp eax, 0x14
jge 0x1000256a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
pop edi
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x30]
mov esi, dword [eax + 8]
sub edx, esi
pop esi
add edx, ecx
pop ebp
mov dword [eax + 0x10], edx
pop ebx
add esp, 0x18
ret 0x30
mov esi, dword [esp + 0x2c]
cmp esi, 0x63
jge 0x1000268b
mov edx, dword [esp + 0x3c]
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
inc esi
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + esi*4]
lea edx, [edx + edx*4]
shl edx, 1
mov dword [eax], edx
mov edx, dword [esp + 0x40]
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + edi*4]
lea edx, [edx + edx*4]
shl edx, 1
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + esi*4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + edi*4]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x30]
mov dword [eax + 8], edx
mov eax, dword [ecx + 0x30]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + esi*4]
mov dword [edx + 0xc], 0
mov eax, dword [ecx + 0x30]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + esi*4]
mov eax, dword [esp + 0x34]
mov dword [edx + 0x10], eax
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + edi*4]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x18], 0
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + edi*4]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + esi*4]
mov dword [eax + 0x1c], ebp
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + edi*4]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x14]
mov dword [eax + 0x20], edx
mov eax, dword [ecx + 0x30]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + esi*4]
mov eax, dword [esp + 0x18]
mov dword [edx + 0x24], eax
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + edi*4]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x28], edx
mov eax, dword [ecx + 0x30]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + esi*4]
mov eax, dword [esp + 0x20]
mov dword [edx + 0x2c], eax
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + edi*4]
mov edx, dword [eax + ebx*4]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x30], edx
mov eax, dword [ecx + 0x30]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx]
mov dword [eax], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x30