Function at 0x100098f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
mov al, byte [ebx + 4]
push edi
test al, al
jne 0x1000991d
push 0x10020250
lea ecx, [esp + 0x14]
call fcn.1000a80d
lea eax, [esp + 0x10]
push 0x1001ba30
push eax
call fcn.100023f6
mov edi, dword [esp + 0x28]
xor esi, esi
cmp edi, esi
je 0x10009b29
mov ecx, dword [ebx + 0x3cc]
mov eax, edi
xor edx, edx
div ecx
test edx, edx
jne 0x10009b29
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x10009a17
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, edi
xor edx, edx
div ecx
mov dword [esp + 0x2c], esi
test eax, eax
jle 0x100099f0
lea ebp, [ebx + 0x3f4]
mov dl, byte [ebx + 4]
mov eax, ebp
test dl, dl
je 0x100099fa
xor edi, edi
test ecx, ecx
jle 0x1000999e
mov esi, dword [esp + 0x20]
sub esi, ebp
mov cl, byte [esi + eax]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc edi
cmp edi, ecx
jl 0x10009989
mov esi, dword [esp + 0x24]
mov ecx, ebx
push esi
push ebp
call fcn.10009600
mov ecx, dword [ebx + 0x3cc]
mov edi, ebp
mov edx, ecx
mov eax, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov esi, dword [esp + 0x2c]
add edx, ecx
add eax, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
xor edx, edx
div ecx
inc esi
mov dword [esp + 0x2c], esi
cmp esi, eax
jl 0x10009974
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x10020250
lea ecx, [esp + 0x14]
call fcn.1000a80d
lea eax, [esp + 0x10]
push 0x1001ba30
push eax
call fcn.100023f6
cmp eax, 2
mov dword [esp + 0x2c], esi
jne 0x10009ae1
mov edx, dword [esp + 0x20]
mov eax, edi
mov dword [esp + 0x20], edx
xor edx, edx
div ecx
mov ebp, dword [esp + 0x24]
test eax, eax
jle 0x100099f0
lea eax, [ebx + 0x3f4]
push ebp
push eax
mov ecx, ebx
call fcn.10009600
mov cl, byte [ebx + 4]
mov eax, ebp
test cl, cl
je 0x10009ac4
mov ecx, dword [ebx + 0x3cc]
xor esi, esi
test ecx, ecx
jle 0x10009a77
mov ecx, dword [esp + 0x20]
mov dl, byte [esi + ecx]
mov cl, byte [eax]
xor cl, dl
mov byte [eax], cl
mov ecx, dword [ebx + 0x3cc]
inc eax
inc esi
cmp esi, ecx
jl 0x10009a5e
mov ecx, dword [ebx + 0x3cc]
mov esi, ebp
mov eax, ecx
lea edi, [ebx + 0x3f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov edi, dword [esp + 0x20]
div ecx
mov esi, dword [esp + 0x2c]
add edi, ecx
add ebp, ecx
inc esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], esi
cmp esi, eax
jl 0x10009a3a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x10020250
lea ecx, [esp + 0x14]
call fcn.1000a80d
lea ecx, [esp + 0x10]
push 0x1001ba30
push ecx
call fcn.100023f6
mov eax, edi
xor edx, edx
div ecx
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
test eax, eax
jle 0x100099f0
push ebp
push esi
mov ecx, ebx
call fcn.10009600
mov ecx, dword [ebx + 0x3cc]
mov edx, dword [esp + 0x2c]
add esi, ecx
add ebp, ecx
inc edx
mov eax, edi
mov dword [esp + 0x2c], edx
xor edx, edx
div ecx
cmp dword [esp + 0x2c], eax
jl 0x10009af7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 0x10020254
lea ecx, [esp + 0x14]
call fcn.1000a80d
lea edx, [esp + 0x10]
push 0x1001ba30
push edx
call fcn.100023f6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop