Function at 0x1025ad9f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x34]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
test ecx, ecx
je 0x1025ae2e
cmp dword [ebp + 0x10], 0
jbe 0x1025ae2e
mov eax, dword [ebp + 0x1c]
push ecx
push eax
push dword [ebp + 0x10]
movzx edx, word [eax]
mov dword [ebp - 8], edx
call fcn.102594bf
xor edx, edx
mov ecx, edx
mov dword [ebp + 0x1c], edx
mov edi, edx
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], ecx
jbe 0x1025ae2e
mov eax, dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x34]
movzx eax, word [eax + edi*2]
mov dword [ebp - 0xc], eax
movzx eax, ax
sub eax, dword [ebp - 8]
cmp ecx, eax
jae 0x1025ae16
mov di, word [ebp + 0x1c]
cmp ecx, esi
jae 0x1025ae0e
mov edx, dword [ebp + 0x30]
add di, word [edx + ecx*4]
mov word [ebp + 0x1c], di
mov edx, dword [ebp + 0x1c]
inc ecx
cmp ecx, eax
jb 0x1025adfc
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 0x34]
mov eax, dword [ebp - 0xc]
add eax, edx
mov word [esi + edi*2], ax
inc edi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 0x10]
jb 0x1025ade4
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x1025af92
cmp dword [ebp + 0x3c], 0
je 0x1025af92
mov edx, dword [ebp + 0x40]
test edx, edx
je 0x1025af92
mov ecx, dword [ebp + 0x18]
test esi, esi
je 0x1025af92
mov eax, dword [ebp + 0x2c]
lea eax, [eax + esi*8]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x28]
lea edi, [eax + esi*4]
mov dword [ebp + 0x34], edi
mov edi, dword [ebp + 0x24]
sub dword [ebp + 0x30], edi
sub edi, eax
mov dword [ebp + 0x24], edi
mov edi, dword [ebp + 0x38]
test ecx, ecx
je 0x1025af92
mov eax, dword [ebp + 0x34]
dec esi
sub dword [ebp + 0x1c], 8
sub eax, 4
mov dword [ebp + 0x34], eax
dec ecx
add eax, dword [ebp + 0x24]
mov dword [ebp + 0x2c], eax
mov edx, eax
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x14], esi
mov eax, dword [edx + eax]
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x1025af5f
mov ax, word [ebp + 8]
movss xmm0, dword [ebp + 0xc]
xorps xmm0, xmmword [0x10341e90]
and dword [ebp - 0xc], 0
mov word [edi + ecx*2], ax
mov eax, dword [ebp + 0x3c]
movss dword [ebp - 0x10], xmm0
and dword [eax + ecx*4], 0
lea eax, [edx + ecx*8]
sub dword [ebp + 0x18], 1
mov dword [ebp + 0x10], eax
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov eax, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x38]
movss xmm1, dword [eax]
mov eax, dword [ebp + 0x34]
subss xmm1, dword [eax]
je 0x1025af5e
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x10]
sub eax, 8
dec ecx
dec edx
mov dword [ebp + 0x10], eax
mov eax, edx
shr eax, 0x1f
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10335e70]
mov ax, word [ebp + 8]
mov word [edi + ecx*2], ax
mov edi, dword [ebp + 0x10]
and dword [esi + ecx*4], 0
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0xc]
addss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov edi, dword [ebp + 0x38]
test edx, edx
jne 0x1025af08
mov esi, dword [ebp + 0x14]
dec ecx
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x3c]
mov ax, word [eax + esi*2]
mov word [edi + ecx*2], ax
mov eax, dword [ebp + 0x34]
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x40]
mov eax, dword [eax]
mov dword [edx + ecx*8], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
mov dword [edx + ecx*8 + 4], eax
test esi, esi
jne 0x1025ae79
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x3c