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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 4
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.10006230
mov eax, dword [edi + 0x28]
mov ecx, ebx
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
call fcn.10006230
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
call fcn.10006230
mov eax, dword [edi + 0x38]
mov ecx, ebx
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
call fcn.10006230
mov eax, dword [edi + 0x30]
mov ecx, ebx
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
call fcn.10006230
mov eax, dword [edi + 0x24]
mov ecx, ebx
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
call fcn.10006230
movzx eax, byte [edi + 0x4b]
mov ecx, ebx
push 0
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push 1
push eax
call fcn.10006230
movzx eax, byte [edi + 0x4a]
mov ecx, ebx
push 0
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push 1
push eax
call fcn.10006230
movzx eax, byte [edi + 0x48]
mov ecx, ebx
push 0
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push 1
push eax
call fcn.10006230
movzx eax, byte [edi + 0x49]
push 0
mov byte [esp + 0x14], al
push 1
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.10006230
cmp dword [edi + 0x28], 0
mov dword [esp + 0x1c], 0
jle 0x10002a63
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [edi + 8]
add esi, eax
mov eax, dword [esi + 8]
cmp eax, 4
ja case.0x100029b6.2
jmp dword [eax*4 + 0x10002b9c]
push 0
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
push eax
mov ecx, ebx
call fcn.10006230
jmp case.0x100029b6.2
cmp dword [esi], 0
mov ecx, ebx
push 0
setne al
inc al
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push 1
push eax
call fcn.10006230
jmp case.0x100029b6.2
push 0
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 3
push eax
mov ecx, ebx
call fcn.10006230
movsd xmm0, qword [esi]
lea eax, [esp + 0x20]
push 0
push 8
push eax
mov ecx, ebx
movsd qword [esp + 0x2c], xmm0
call fcn.10006230
jmp case.0x100029b6.2
push 0
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 4
push eax
mov ecx, ebx
call fcn.10006230
push dword [esi]
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.10002720
add esp, 4
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x10
inc eax
cmp eax, dword [edi + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
jl 0x100029a5
xor edx, edx
xor esi, esi
cmp dword [edi + 0x30], edx
jle 0x10002aa0
mov ecx, dword [edi + 0x14]
nop
mov eax, esi
shl eax, 8
xor dword [ecx + esi*4], eax
mov ecx, ebx
mov eax, dword [edi + 0x14]
push 0
push 4
mov eax, dword [eax + esi*4]
sub eax, edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.10006230
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx + esi*4]
inc esi
cmp esi, dword [edi + 0x30]
jl 0x10002a70
cmp dword [edi + 0x38], 0
mov dword [esp + 0x1c], 0
jle 0x10002b10
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov esi, dword [edi + 0x18]
add esi, ecx
mov ecx, ebx
push 0
push 4
mov eax, dword [esi + 4]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.10006230
mov eax, dword [esi + 8]
mov ecx, ebx
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push 4
push eax
call fcn.10006230
push dword [esi]
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.10002720
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x18]
inc eax
add ecx, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [edi + 0x38]
jl 0x10002ab4
xor esi, esi
cmp dword [edi + 0x24], esi
jle 0x10002b31
mov eax, dword [edi + 0x1c]
mov ecx, ebx
mov edx, dword [esp + 0x14]
push dword [eax + esi*4]
call fcn.10002720
inc esi
add esp, 4
cmp esi, dword [edi + 0x24]
jl 0x10002b17
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [edi + 0x2c], esi
jle 0x10002b6a
nop dword [eax + eax]
push eax
mov eax, dword [edi + 0xc]
push esi
push dword [eax + esi*4]
call fcn.10019cc0
push 0
mov dword [esp + 0x24], eax
mov ecx, ebx
push 4
lea eax, [esp + 0x28]
push eax
call fcn.10006230
mov eax, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x2c]
jl 0x10002b40
xor esi, esi
cmp dword [edi + 0x34], esi
jle 0x10002b92
mov edx, dword [esp + 0x14]
mov ecx, ebx
push eax
mov eax, dword [edi + 0x10]
push dword [ebp + 0xc]
push dword [eax + esi*4]
call fcn.10002890
mov eax, dword [ebp + 0x10]
inc esi
add esp, 0xc
cmp esi, dword [edi + 0x34]
jl 0x10002b71
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret