Function at 0xb28c20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 8]
sub esp, 0x20
push ebx
push esi
test eax, eax
jne 0xb28c87
cmp dword [ebp + 0x10], eax
je 0xb28c57
mov eax, dword [edi + 0x10]
mov byte [edi + 4], 6
mov dword [edi + 8], 0x40
mov ecx, dword [eax]
push 0x100
call ecx
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0xb28c5f
mov dword [edi + 8], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100
push 0
push eax
call fcn.00b56f70
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.00b28bf0
mov edx, dword [edi + 8]
mov esi, eax
dec edx
and esi, edx
jmp 0xb28e95
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x1f0]
mov al, byte [ecx]
mov dword [ebp - 8], edx
mov byte [ebp - 2], al
test al, al
je 0xb28cb9
nop
mov edx, dword [ebp - 8]
imul edx, edx, 0xf4243
movzx eax, al
xor edx, eax
mov al, byte [ecx + 1]
inc ecx
mov dword [ebp - 8], edx
test al, al
jne 0xb28ca0
mov ebx, dword [edi + 8]
mov esi, dword [ebp - 8]
mov edx, dword [edi]
dec ebx
and esi, ebx
cmp dword [edx + esi*4], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], edx
je 0xb28d31
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov cl, byte [ebp - 2]
cmp cl, byte [eax]
jne 0xb28cf6
mov edx, dword [ebp + 0xc]
sub edx, eax
test cl, cl
je 0xb28dff
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0xb28ce2
mov edx, dword [ebp - 0x10]
cmp byte [ebp - 1], 0
jne 0xb28d16
movzx ecx, byte [edi + 4]
mov eax, ebx
not eax
and eax, dword [ebp - 8]
dec ecx
shr eax, cl
mov ecx, ebx
shr ecx, 2
and al, cl
or al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp esi, eax
jae 0xb28d27
mov ecx, dword [edi + 8]
sub ecx, eax
add esi, ecx
jmp 0xb28d29
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0xb28cd1
cmp dword [ebp + 0x10], 0
je 0xb28c57
mov al, byte [edi + 4]
mov edx, dword [edi + 0xc]
movzx ecx, al
dec ecx
shr edx, cl
test edx, edx
je 0xb28e95
inc al
movzx ecx, al
mov esi, 1
shl esi, cl
mov byte [ebp - 2], al
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
lea eax, [esi*4]
push eax
mov dword [ebp - 0x10], esi
lea ebx, [esi - 1]
call edx
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0xb28c57
lea ecx, [esi*4]
push ecx
push 0
push eax
call fcn.00b56f70
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x14], ecx
cmp dword [edi + 8], ecx
jbe 0xb28e2f
mov eax, dword [edi]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
je 0xb28e22
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
call fcn.00b28bf0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
and edx, ebx
xor cl, cl
cmp dword [eax + edx*4], 0
je 0xb28e16
test cl, cl
jne 0xb28def
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov eax, ebx
not eax
and eax, dword [ebp - 0x1c]
dec ecx
shr eax, cl
mov ecx, ebx
shr ecx, 2
and cl, al
or cl, 1
movzx eax, cl
cmp edx, eax
jae 0xb28e0b
sub esi, eax
add edx, esi
mov esi, dword [ebp - 0x10]
jmp 0xb28e0d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + esi*4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edx, eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx*4], 0
jne 0xb28dd1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 8]
jb 0xb28da5
mov ecx, dword [edi + 0x10]
mov edx, dword [edi]
mov eax, dword [ecx + 8]
push edx
call eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 2]
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], esi
mov esi, dword [ebp - 8]
mov dword [edi], ecx
and esi, ebx
add esp, 4
mov byte [edi + 4], dl
xor cl, cl
cmp dword [eax + esi*4], 0
je 0xb28e95
jmp 0xb28e60
test cl, cl
jne 0xb28e7b
mov ecx, dword [ebp - 0x18]
mov edx, ebx
not edx
and edx, dword [ebp - 8]
dec ecx
shr edx, cl
mov ecx, ebx
shr ecx, 2
and cl, dl
or cl, 1
movzx eax, cl
cmp esi, eax
jae 0xb28e8b
mov edx, dword [ebp - 0x10]
sub edx, eax
add esi, edx
jmp 0xb28e8d
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0xb28e60
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax]
push ebx
call ecx
mov edx, dword [edi]
mov dword [edx + esi*4], eax
mov eax, dword [edi]
lea eax, [eax + esi*4]
add esp, 4
cmp dword [eax], 0
je 0xb28c57
mov ecx, dword [eax]
push ebx
push 0
push ecx
call fcn.00b56f70
mov edx, dword [edi]
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [edi]
add esp, 0xc
inc dword [edi + 0xc]
mov eax, dword [edx + esi*4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret