Function at 0x89fbb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 0x100
push edi
mov dword [ebp - 0x20], ecx
jbe 0x89fbd8
mov eax, dword [ebx + 0x400]
mov dword [ebp - 0x34], eax
jmp 0x89fbdf
mov dword [ebp - 0x34], 0x10
push 0x44
lea ecx, [ebp - 0x84]
push 0
push ecx
call fcn.0067e0a0
mov edi, dword [ebp + 0x1c]
add esp, 0xc
mov ecx, ebx
mov edx, esi
mov dword [edi], 0
nop
mov eax, dword [ecx]
add dword [ebp + eax*4 - 0x84], 1
lea eax, [ebp + eax*4 - 0x84]
add ecx, 4
sub edx, 1
jne 0x89fc00
cmp dword [ebp - 0x84], esi
jne 0x89fc37
mov dword [edi], edx
mov edx, dword [ebp + 0x20]
pop edi
pop esi
mov dword [edx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, 1
lea esp, [esp]
cmp dword [ebp + ecx*4 - 0x84], 0
jne 0x89fc52
add ecx, 1
cmp ecx, 0x10
jbe 0x89fc40
mov esi, dword [ebp + 0x20]
cmp dword [esi], ecx
mov edx, ecx
mov dword [ebp + 8], edx
jae 0x89fc60
mov dword [esi], ecx
mov eax, 0x10
cmp dword [ebp + eax*4 - 0x84], 0
jne 0x89fc74
sub eax, 1
jne 0x89fc65
cmp dword [esi], eax
mov dword [ebp - 0x18], eax
jbe 0x89fc7d
mov dword [esi], eax
mov edi, 1
shl edi, cl
cmp ecx, eax
jae 0x89fca6
jmp 0x89fc90
sub edi, dword [ebp + ecx*4 - 0x84]
js 0x89fed9
add ecx, 1
add edi, edi
cmp ecx, eax
jb 0x89fc90
mov ecx, dword [ebp + eax*4 - 0x84]
sub edi, ecx
mov dword [ebp - 0x38], edi
js 0x89fed9
add ecx, edi
mov dword [ebp + eax*4 - 0x84], ecx
xor ecx, ecx
sub eax, 1
mov dword [ebp - 0x108], ecx
je 0x89fce3
xor esi, esi
add ecx, dword [ebp + esi - 0x80]
add esi, 4
sub eax, 1
mov dword [ebp + esi - 0x108], ecx
jne 0x89fcd0
xor ecx, ecx
xor esi, esi
mov eax, dword [ebx]
add ebx, 4
cmp eax, ecx
je 0x89fd0f
mov ecx, dword [ebp + eax*4 - 0x10c]
mov edi, dword [ebp - 0x20]
lea eax, [ebp + eax*4 - 0x10c]
mov dword [edi + ecx*4 + 0x4c], esi
mov edi, dword [ebp - 0x38]
add ecx, 1
mov dword [eax], ecx
xor ecx, ecx
add esi, 1
cmp esi, dword [ebp + 0xc]
jb 0x89fce7
mov eax, dword [ebp - 0x20]
add eax, 0x4c
or esi, 0xffffffff
xor ebx, ebx
cmp edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
jg 0x89fffa
lea ecx, [edx - 1]
lea eax, [ebp + edx*4 - 0x84]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
test eax, eax
mov dword [ebp - 4], eax
je 0x89ffe1
mov eax, dword [ebp + esi*4 - 0xc4]
sub dword [ebp - 4], 1
add eax, ebx
cmp edx, eax
jle 0x89febb
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x14c]
sub ecx, 4
mov dword [ebp - 0x3c], ecx
lea ebx, [ebx]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx]
sub edx, eax
add esi, 1
cmp edx, ecx
mov dword [ebp - 0x1c], eax
jbe 0x89fdb6
mov edx, ecx
mov ebx, dword [ebp + 8]
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x40]
jbe 0x89fdf5
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
sub ecx, dword [ebp - 4]
add ebx, 1
add eax, ecx
cmp ebx, edx
jae 0x89fdf5
jmp 0x89fde0
mov ecx, dword [edi + 4]
add edi, 4
add eax, eax
cmp eax, ecx
jbe 0x89fdf5
add ebx, 1
sub eax, ecx
cmp ebx, edx
jb 0x89fde0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x89fe0a
cmp eax, ecx
jae 0x89fe0a
mov ebx, ecx
sub ebx, eax
mov edi, dword [ebp - 0x20]
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 4]
mov dword [ebp + esi*4 - 0xc4], ebx
mov dword [ebp - 0x2c], eax
lea eax, [eax*8 + 8]
push eax
call fcn.008f64e0
test eax, eax
je 0x8a001e
mov edx, dword [ebp + 0x1c]
lea ecx, [eax + 8]
add eax, 4
test esi, esi
mov dword [edx], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp + 0x1c], eax
mov dword [eax], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp + esi*4 - 0x14c], ecx
je 0x89fea3
mov al, byte [ebp + esi*4 - 0xc8]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 0xb], al
add bl, 0x20
mov byte [ebp - 0xc], bl
mov ebx, ecx
mov ecx, edx
mov eax, 1
shl eax, cl
sub ecx, dword [ebp + esi*4 - 0xc8]
mov dword [ebp + esi*4 - 0x10c], edi
mov dword [ebp - 8], ebx
sub eax, 1
and eax, edi
mov edi, dword [ebp - 0xc]
shr eax, cl
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + esi*4]
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [ebp + esi*4 - 0xc4]
add eax, edx
cmp dword [ebp + 8], eax
jg 0x89fda0
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov cl, dl
sub cl, bl
mov byte [ebp - 0xb], cl
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx*4 + 0x4c]
cmp edi, eax
jb 0x89fee7
mov byte [ebp - 0xc], 0x63
jmp 0x89ff32
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [edi]
cmp eax, dword [ebp + 0x10]
jae 0x89fefe
cmp eax, 0x100
setb cl
add cl, 0x1f
mov byte [ebp - 0xc], cl
jmp 0x89ff28
cmp dword [ebp + 0x18], 0
je 0x8a0059
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x8a0059
sub eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
add eax, eax
mov dl, byte [eax + edx]
mov ax, word [eax + ecx]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp + 8]
add edi, 4
mov dword [ebp - 0x28], edi
mov word [ebp - 8], ax
mov edi, dword [ebp - 0x10]
mov ecx, edx
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, edi
mov ecx, ebx
shr eax, cl
cmp eax, dword [ebp - 0x2c]
jae 0x89ff6f
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx + eax*8]
mov edi, dword [ebp - 0xc]
mov dword [ecx], edi
mov edi, dword [ebp - 8]
mov dword [ecx + 4], edi
lea edi, [edx*8]
add eax, edx
add ecx, edi
cmp eax, dword [ebp - 0x2c]
jb 0x89ff51
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov eax, 1
shl eax, cl
test edi, eax
je 0x89ff88
lea ecx, [ecx]
xor edi, eax
shr eax, 1
test edi, eax
jne 0x89ff80
mov edx, 1
mov ecx, ebx
shl edx, cl
xor edi, eax
mov dword [ebp - 0x10], edi
sub edx, 1
and edx, edi
cmp edx, dword [ebp + esi*4 - 0x10c]
je 0x89ffd1
jmp 0x89ffb0
sub ebx, dword [ebp + esi*4 - 0xc8]
sub esi, 1
mov eax, 1
mov ecx, ebx
shl eax, cl
sub eax, 1
and eax, edi
cmp eax, dword [ebp + esi*4 - 0x10c]
jne 0x89ffb0
cmp dword [ebp - 4], 0
mov edx, dword [ebp + 8]
jne 0x89fd70
mov edi, dword [ebp - 0x38]
add dword [ebp - 0x14], 4
add dword [ebp - 0x24], 1
add edx, 1
cmp edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jle 0x89fd60
xor ecx, ecx
cmp edi, ecx
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
je 0x8a0013
mov eax, 1
cmp dword [ebp - 0x18], eax
jne 0x8a0015
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
test esi, esi
jle 0x8a004b
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x8a0045
jmp 0x8a0030
mov ecx, dword [edi + 4]
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.008f6500
test esi, esi
mov eax, esi
jne 0x8a0030
mov dword [ebx], 0
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x1c