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

Disassembly:
sub esp, 0x58
xor eax, eax
cmp dword [esp + 0x64], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jbe 0x10002ae6
mov ecx, dword [0x1005cd60]
mov eax, dword [0x1005cd4c]
push ebx
push ebp
mov ebx, dword [0x1005cd58]
push esi
mov esi, dword [0x1005cd5c]
push edi
mov edi, ecx
imul edi, edi, 0x5f48990
lea edx, [eax + eax]
add edi, edx
add edi, esi
lea edx, [edi + edi + 1]
mov dword [esp + 0x38], edx
mov edx, esi
imul edx, edx, 0xbe9131f
mov dword [esp + 0x3c], edx
mov edx, ebx
imul edx, ecx
mov dword [esp + 0x44], edx
mov edx, eax
imul edx, edx, 0xbe91322
mov dword [esp + 0x14], edx
mov edx, dword [0x1005cd54]
mov edi, edx
add edx, ebx
imul edi, ecx
lea edx, [edx + eax + 2]
imul edi, eax
mov ebp, 2
sub ebp, edi
mov edi, dword [0x1005cd50]
imul ebp, ebx
imul edx, edi
sub ebp, edx
lea edx, [ecx + 2]
imul edx, esi
sub ebp, edx
mov edx, dword [esp + 0x14]
lea edx, [edx + ebp*4]
mov ebp, dword [esp + 0x6c]
add edx, ebp
mov ebp, dword [0x1005cd54]
mov dword [esp + 0x48], edx
lea edx, [edi + edi]
mov dword [esp + 0x2c], edx
sub edx, ebx
add edx, ebp
add edx, ecx
lea edx, [edx + edx*2]
mov dword [esp + 0x50], edx
mov edx, esi
imul edx, edx, 0xbe9131b
mov dword [esp + 0x4c], edx
mov edx, eax
imul edx, edx, 0xbe9131f
mov dword [esp + 0x20], edx
mov edx, edi
imul edx, ecx
sub ebp, edx
mov edx, dword [0x1005cd54]
add edx, ebx
mov ebx, dword [esp + 0x20]
lea edx, [ebx + edx*2]
mov ebx, dword [0x1005cd58]
add edx, eax
imul ebx, eax
imul edx, esi
add ebp, ebp
sub ebp, edx
mov edx, dword [esp + 0x6c]
add ebp, edx
mov dword [esp + 0x54], ebp
mov ebp, 1
mov edx, edi
sub ebp, ebx
imul edx, edx, 0xbe91320
imul ebp, ecx
mov dword [esp + 0x30], edx
lea ebx, [eax + ebp + 1]
mov ebp, dword [0x1005cd58]
imul ebx, esi
sub ebx, edx
mov edx, dword [esp + 0x6c]
sub ebx, ecx
add ebx, ebp
add ebx, edx
mov dword [esp + 0x58], ebx
mov ebx, esi
imul ebx, eax
mov dword [esp + 0x1c], ebx
mov edx, ecx
imul edx, esi
mov dword [esp + 0x40], edx
mov ebx, edi
imul ebx, ebx, 0xbe9131f
add ebx, edx
add ebx, ebp
imul ebx, ecx
mov ebp, ebx
mov ebx, dword [0x1005cd54]
lea edx, [edi + esi + 1]
imul edx, ebx
sub edx, ebp
mov ebp, edi
imul ebp, esi
sub edx, ebp
add edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x6c]
add edx, eax
add edx, ebp
mov dword [esp + 0x5c], edx
mov edx, dword [0x1005cd58]
lea ebp, [edx + edx]
mov dword [esp + 0x18], ebp
mov ebp, eax
sub ebp, esi
imul ebp, edx
add ebp, esi
lea edx, [eax + eax + 2]
imul edx, edi
lea ebp, [edx + ebp*2 + 0xbe91322]
mov edx, dword [esp + 0x18]
imul ebp, ebx
lea ebx, [edx + 2]
mov edx, dword [esp + 0x2c]
imul ebx, eax
add ebx, dword [esp + 0x6c]
sub edx, ecx
add ebx, ebp
lea edx, [ebx + edx*2]
mov ebx, dword [0x1005cd58]
mov dword [esp + 0x2c], edx
mov edx, edi
imul edx, eax
mov ebp, 0xbe9131d
sub ebp, edx
lea edx, [ebx + 1]
imul edx, edi
sub ebp, ecx
sub edx, 1
imul edx, edi
sub ebp, esi
imul ebp, esi
add ebp, edx
lea edx, [ebx + ebx]
sub ebp, edx
mov edx, dword [esp + 0x6c]
add ebp, eax
add ebp, edx
mov edx, dword [0x1005cd54]
add edx, edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
add edx, 0xfffffffe
imul edx, ecx
sub edx, 4
mov dword [esp + 0x60], ebp
imul edx, ebx
lea ebp, [edi + eax*2]
add ebp, ecx
add ebp, ebp
sub edx, ebp
mov ebp, dword [esp + 0x18]
add ebp, 2
imul ebp, esi
sub edx, ebp
mov ebp, dword [esp + 0x6c]
add edx, ebp
mov dword [esp + 0x30], edx
mov edx, dword [0x1005cd54]
imul edx, edx
imul edx, edi
lea ebp, [edi - 2]
imul ebp, edx
mov edx, ebx
imul edx, edx, 0x5f48991
sub ebp, edx
lea edx, [eax + eax]
sub ebp, edx
mov edx, dword [esp + 0x14]
lea edx, [edx + ebp*2 - 0xa]
imul edx, edi
mov dword [esp + 0x64], edx
lea ebp, [esi + 3]
imul ebp, eax
mov edx, ecx
sub edx, dword [esp + 0x18]
sub edx, esi
add edx, eax
lea edx, [ebp + edx*2]
sub edx, ecx
add edx, edx
mov dword [esp + 0x14], edx
mov edx, ecx
sub edx, dword [esp + 0x1c]
sub edx, 1
imul edx, ebx
add edx, edx
add edx, edx
mov dword [esp + 0x18], edx
lea edx, [eax + 1]
imul edx, esi
add edx, edx
add edx, edx
mov dword [esp + 0x1c], edx
mov edx, ebx
imul edx, esi
sub edx, ebx
lea ebx, [ecx + ecx*2]
lea ebx, [ebx + ebx + 3]
imul ebx, edi
add ebx, dword [esp + 0x20]
add edx, ecx
add edx, esi
lea edx, [edx + edx*2]
add ebx, edx
mov edx, dword [esp + 0x70]
lea eax, [eax + eax*4]
add eax, ebx
mov ebx, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
add eax, ebx
cdq
mov ebx, 0x29ba
idiv ebx
lea eax, [ecx + esi]
add eax, eax
mov ebp, 0x29ba
sub edx, eax
sub edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x40]
sub edx, dword [esp + 0x44]
sub edx, edi
mov ebx, edx
mov edx, dword [esp + 0x48]
movzx eax, byte [edx + ebx]
add eax, dword [esp + 0x24]
cdq
idiv ebp
mov eax, dword [esp + 0x54]
add edx, dword [esp + 0x4c]
add edx, dword [esp + 0x50]
mov ebp, edx
movzx edx, byte [eax + ebx]
mov eax, dword [esp + 0x58]
mov byte [esp + 0x13], dl
movzx edx, byte [eax + ebp]
mov eax, dword [esp + 0x5c]
mov byte [eax + ebx], dl
mov edx, dword [esp + 0x2c]
mov al, byte [esp + 0x13]
mov byte [edx + ebp], al
mov edx, dword [esp + 0x30]
movzx eax, byte [edx + ebx]
mov edx, dword [esp + 0x60]
movzx edx, byte [edx + ebp]
add eax, edx
mov dword [esp + 0x24], ebp
cdq
mov ebp, 0x29ba
idiv ebp
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x28]
add ebp, 1
mov dword [esp + 0x28], ebp
sub edx, dword [esp + 0x1c]
add edx, dword [esp + 0x18]
add edx, dword [esp + 0x14]
add edx, dword [esp + 0x64]
movzx edx, byte [edx + eax]
mov eax, dword [esp + 0x20]
xor byte [eax + ebp - 1], dl
cmp ebp, dword [esp + 0x74]
jb 0x10002a26
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret