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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
imul ebx, eax, 0xc8
push ecx
mov edi, dword [esi + 0xc]
push eax
push esi
mov dword [ebp - 0xc], edi
add ebx, dword [edi + 0x280]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], 0
call fcn.10026dd0
add esp, 0xc
test eax, eax
jne 0x100102c4
movzx eax, word [ebx + 0xa]
mov dword [ebp - 0x28], eax
cmp eax, 1
jbe 0x100102b4
mov ecx, dword [ebp - 0x18]
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp + 0xc], 0x64
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x1000ffc5
sub eax, ecx
jmp 0x10010062
movzx edi, word [edi + 0x24]
xor edx, edx
xorps xmm3, xmm3
test edi, edi
je 0x1001004f
mov eax, dword [esi + 0xc]
movsd xmm4, qword [0x1007f818]
mov ebx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
lea esi, [eax + 0x438]
nop
mov al, byte [ebx + edx]
inc edx
cbw
xor al, ah
sub al, ah
movzx eax, al
movd xmm2, eax
mov eax, dword [esi + 4]
cvtdq2pd xmm2, xmm2
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x1007eee0]
mov eax, dword [esi]
add esi, 0x470
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1007eee0]
mulsd xmm1, xmm0
mulsd xmm2, xmm1
mulsd xmm2, xmm4
addsd xmm3, xmm2
cmp edx, edi
jl 0x1000fff0
mov ebx, dword [ebp + 8]
mulsd xmm3, qword [0x1007f690]
movaps xmm0, xmm3
call fcn.10005021
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
xor esi, esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10010113
movzx edx, word [edi + 0x24]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
nop dword [eax]
test edx, edx
je 0x10010101
mov ecx, dword [ebx + 0x80]
add ecx, 0x440
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov ebx, dword [ecx]
movzx eax, byte [ecx - 0x432]
add ebx, 8
inc eax
mov dword [ebp - 0x14], eax
mov edi, dword [ebx + 4]
xor edx, edx
imul edi, dword [ebx]
test edi, edi
je 0x100100db
mov ecx, dword [ebx + 0x84]
add ecx, 0x10
cmp dword [ecx], 0
lea eax, [esi + 1]
lea ecx, [ecx + 0x24]
cmovne eax, esi
inc edx
mov esi, eax
cmp edx, edi
jb 0x100100c5
mov eax, dword [ebp - 0x14]
add ebx, 0xa0
sub eax, 1
mov dword [ebp - 0x14], eax
jne 0x100100b0
mov ecx, dword [ebp - 0x10]
add ecx, 0x470
sub dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
jne 0x100100a0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
sub eax, 1
mov dword [ebp - 4], eax
jne 0x10010080
mov eax, dword [ebp - 0x1c]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x14], edi
cmp cx, word [ebp - 0x28]
jae 0x10010286
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x20]
mov ebx, eax
rol edx, cl
sub ebx, esi
cmp eax, esi
mov dword [ebp - 0x10], edx
mov esi, edx
cmovb ebx, eax
nop
xor edx, edx
lea ecx, [esi - 1]
mov eax, ebx
div ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x90]
mov dword [ecx + edi*4], eax
mov eax, dword [edx + 0x90]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + edi*4], ecx
jae 0x10010166
mov dword [eax + edi*4], ecx
mov eax, dword [edx + 0x90]
ror esi, 1
mov dword [ebp - 0x10], esi
cmp ebx, dword [eax + edi*4]
jae 0x10010179
mov dword [eax + edi*4], ebx
mov eax, dword [edx + 0x90]
xor ecx, ecx
mov dword [ebp - 0x1c], 0
sub ebx, dword [eax + edi*4]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], ebx
cmp cx, word [eax + 0x24]
mov ecx, dword [ebp + 0xc]
jae 0x1001026b
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, dword [edx + 0x80]
xor edi, edi
mov dword [ebp - 4], eax
mov edx, 0xc
mov dword [ebp - 0x20], edi
nop word [eax + eax]
mov esi, dword [ecx + eax + 0x440]
xor ebx, ebx
mov eax, dword [esi + edx - 4]
imul eax, dword [esi + edx]
test eax, eax
je 0x10010224
xor edi, edi
nop word [eax + eax]
mov eax, dword [edx + esi + 0x80]
mov ecx, esi
cmp dword [eax + edi + 0x10], 0
jne 0x1001020c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0x90]
inc dword [eax + ecx*4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [eax + ecx + 0x440]
mov eax, dword [edx + ecx - 4]
inc ebx
imul eax, dword [edx + ecx]
add edi, 0x24
mov esi, ecx
cmp ebx, eax
jb 0x100101e0
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
inc edi
add edx, 0xa0
mov dword [ebp - 0x20], edi
movzx eax, byte [ecx + eax + 0xe]
cmp edi, eax
mov eax, dword [ebp - 4]
jle 0x100101c0
mov eax, dword [ebp - 0xc]
add ecx, 0x470
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
inc ebx
mov dword [ebp - 0x1c], ebx
movzx eax, word [eax + 0x24]
mov dword [ebp - 8], ecx
cmp ebx, eax
jl 0x100101a3
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
movzx eax, word [edx + 0xa]
inc edi
add ecx, 0x1e
mov dword [ebp - 0x14], edi
mov dword [ebp + 0xc], ecx
cmp edi, eax
jl 0x10010140
mov ecx, dword [ebp - 0x18]
jmp 0x1001028c
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
cmp dword [edx + 0x84], 0
mov eax, dword [edx + 0x90]
je 0x100102a6
add dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shl dword [eax + edi*4 - 4], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x84]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret