Function at 0x1148c30
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 0x1148c97
cmp dword [ebp + 0x10], eax
je 0x1148c67
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 0x1148c6f
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.01176f70
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.01148c00
mov edx, dword [edi + 8]
mov esi, eax
dec edx
and esi, edx
jmp 0x1148ea5
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 0x1148cc9
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 0x1148cb0
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 0x1148d41
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov cl, byte [ebp - 2]
cmp cl, byte [eax]
jne 0x1148d06
mov edx, dword [ebp + 0xc]
sub edx, eax
test cl, cl
je 0x1148e0f
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0x1148cf2
mov edx, dword [ebp - 0x10]
cmp byte [ebp - 1], 0
jne 0x1148d26
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 0x1148d37
mov ecx, dword [edi + 8]
sub ecx, eax
add esi, ecx
jmp 0x1148d39
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0x1148ce1
cmp dword [ebp + 0x10], 0
je 0x1148c67
mov al, byte [edi + 4]
mov edx, dword [edi + 0xc]
movzx ecx, al
dec ecx
shr edx, cl
test edx, edx
je 0x1148ea5
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 0x1148c67
lea ecx, [esi*4]
push ecx
push 0
push eax
call fcn.01176f70
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x14], ecx
cmp dword [edi + 8], ecx
jbe 0x1148e3f
mov eax, dword [edi]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
je 0x1148e32
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
call fcn.01148c00
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 0x1148e26
test cl, cl
jne 0x1148dff
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 0x1148e1b
sub esi, eax
add edx, esi
mov esi, dword [ebp - 0x10]
jmp 0x1148e1d
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 0x1148de1
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 0x1148db5
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 0x1148ea5
jmp 0x1148e70
test cl, cl
jne 0x1148e8b
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 0x1148e9b
mov edx, dword [ebp - 0x10]
sub edx, eax
add esi, edx
jmp 0x1148e9d
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0x1148e70
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 0x1148c67
mov ecx, dword [eax]
push ebx
push 0
push ecx
call fcn.01176f70
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