Function at 0x10089520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x102c0850]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov edx, dword [ecx + 4]
xor esi, esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x4c], edx
push edi
test edx, edx
jle 0x10089589
mov edi, dword [ebp - 0x4c]
lea edx, [eax + 2]
lea ebx, [ecx + 0x21c]
movzx ecx, byte [edx + 1]
lea ebx, [ebx + 4]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
xor ecx, dword [ebx - 4]
mov dword [ebp + esi*4 - 0x24], ecx
inc esi
cmp esi, edi
jl 0x10089554
mov ecx, dword [ebp + 8]
mov edx, edi
mov ebx, dword [ecx + 8]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], edx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x5c], eax
cmp ebx, 1
jle 0x10089656
dec ebx
mov dword [ebp - 0x48], ebx
test edx, edx
jle 0x10089640
mov edx, dword [ebp - 0x50]
lea edi, [ecx + 0x24]
mov ebx, eax
lea ecx, [ecx + edx*4]
mov edx, dword [ebp - 0x4c]
add ecx, 0x21c
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], ecx
mov ecx, esi
sub ecx, eax
add dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
movzx ecx, byte [edi]
lea eax, [eax + 4]
lea ebx, [ebx + 4]
lea edi, [edi + 3]
mov ecx, dword [esi + ecx*4]
shr ecx, 8
movzx ecx, cl
mov edx, dword [ecx*4 + 0x102cd4d0]
movzx ecx, byte [edi - 2]
rol edx, 8
movzx ecx, byte [esi + ecx*4 + 2]
mov ecx, dword [ecx*4 + 0x102cd4d0]
rol ecx, 0x10
xor edx, ecx
movzx ecx, byte [edi - 1]
movzx ecx, byte [esi + ecx*4 + 3]
mov ecx, dword [ecx*4 + 0x102cd4d0]
ror ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 0x54]
movzx ecx, byte [ecx + ebx - 4]
xor edx, dword [ecx*4 + 0x102cd4d0]
xor edx, dword [eax - 4]
dec dword [ebp - 0x60]
mov dword [ebx - 4], edx
jne 0x100895d4
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov ecx, esi
dec ebx
mov esi, eax
mov dword [ebp - 0x48], ebx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
jne 0x100895a5
test edx, edx
jle 0x100896ed
mov edx, dword [ebp - 0x50]
lea edi, [ecx + 0x24]
add edx, 0x87
mov ebx, eax
lea edx, [ecx + edx*4]
mov dword [ebp - 0x54], edx
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x48], edx
movzx ecx, byte [edi]
lea eax, [eax + 4]
lea ebx, [ebx + 4]
lea edi, [edi + 3]
mov ecx, dword [esi + ecx*4]
shr ecx, 8
movzx ecx, cl
movzx edx, byte [ecx + 0x102cd9d0]
movzx ecx, byte [edi - 2]
rol edx, 8
movzx ecx, byte [esi + ecx*4 + 2]
movzx ecx, byte [ecx + 0x102cd9d0]
rol ecx, 0x10
xor edx, ecx
movzx ecx, byte [edi - 1]
movzx ecx, byte [esi + ecx*4 + 3]
movzx ecx, byte [ecx + 0x102cd9d0]
ror ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 0x58]
movzx ecx, byte [ecx + ebx - 4]
movzx ecx, byte [ecx + 0x102cd9d0]
xor edx, ecx
xor edx, dword [eax - 4]
dec dword [ebp - 0x48]
mov dword [ebx - 4], edx
jne 0x10089682
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
xor ebx, ebx
test edx, edx
jle 0x10089739
mov edi, dword [ebp - 0x64]
add edi, 2
sub esi, eax
jmp 0x10089700
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
mov byte [edi - 2], dl
shr ecx, 8
lea edi, [edi + 4]
mov byte [edi - 5], cl
inc ebx
mov ecx, edx
mov dword [eax - 4], 0
shr ecx, 0x10
mov byte [edi - 4], cl
mov ecx, dword [ebp + 8]
shr edx, 0x18
mov byte [edi - 3], dl
mov dword [esi + eax - 4], 0
cmp ebx, dword [ecx + 4]
jl 0x10089700
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008de57
mov esp, ebp
pop ebp
ret