Function at 0x10015ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
push esi
xor eax, eax
mov dword [ebp - 4], edx
mov esi, ecx
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 0x1c], esi
cmp dword [ebx + 0xc], eax
jle 0x10016234
mov edi, dword [ebx + 8]
xorps xmm3, xmm3
add edi, 0x14
mov dword [ebp - 0x10], edi
nop dword [eax]
movss xmm1, dword [edi - 0x14]
mov eax, 0x100
comiss xmm1, xmm3
jbe 0x10015f8d
mov edi, dword [edx + 0x1c]
mov esi, dword [edx + 4]
cwde
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
add cx, ax
movsx eax, cx
sub eax, edx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
jmp 0x10015fb7
mov eax, dword [ebp - 4]
mov edx, dword [edx + 0x14]
mov eax, dword [eax + 4]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
xorps xmm1, xmmword [0x1002efd0]
movzx eax, byte [esi + 0x18]
xor ecx, ecx
mov byte [edi], al
movzx eax, byte [esi + 0x1c]
mov byte [edi + 1], al
mov eax, dword [ebp - 8]
movss dword [ebp - 0x18], xmm1
mov dword [ebp - 0x38], ecx
cmp dword [edi - 8], ecx
jle 0x10016221
mov edx, dword [ebx + 0x10]
shl eax, 4
add edx, 6
add eax, edx
mov dword [ebp - 0x34], eax
mov edx, dword [edi - 0xc]
test edx, edx
jne 0x10015ff6
mov edx, dword [edi - 0x10]
add edx, ecx
jmp 0x10015ff9
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 4]
call fcn.100124d0
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1002efa0]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm2, xmm1
addsd xmm0, qword [eax*8 + 0x1002efa0]
movss dword [ebp - 0x2c], xmm2
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x14], xmm0
call fcn.10012810
mov dword [ebp - 0xc], eax
test eax, eax
js 0x100161c0
mov eax, dword [ebp - 4]
sub esp, 8
mov esi, dword [ebp - 0xc]
mov edi, dword [eax + 4]
mov eax, 0x100
cwde
movzx ecx, byte [esi + edi + 2]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edi + 3]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [esi + edi + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edi + 5]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
add cx, ax
movsx eax, cx
movzx ecx, byte [esi + edi + 6]
mov dword [ebp - 0x3c], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edi + 7]
mulss xmm0, xmm2
add cx, ax
mov eax, dword [ebp - 0xc]
movsx esi, cx
addss xmm0, xmm3
movzx ecx, byte [eax + edi + 8]
mov eax, 0x100
cwde
movsx ecx, cx
cvtps2pd xmm0, xmm0
imul ecx, eax
mov eax, dword [ebp - 0xc]
movsd qword [ebp - 0x28], xmm0
fld qword [ebp - 0x28]
fstp qword [esp]
movzx eax, byte [eax + edi + 9]
add cx, ax
movsx edi, cx
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
movd xmm0, esi
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
fstp qword [ebp - 0x28]
mulss xmm0, dword [ebp - 0x2c]
cvttsd2si eax, qword [ebp - 0x28]
addss xmm0, xmm1
movzx eax, ax
mov dword [ebp - 0xc], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movd xmm1, edi
xorps xmm0, xmm0
cvtdq2ps xmm1, xmm1
fstp qword [ebp - 0x30]
mulss xmm1, dword [ebp - 0x14]
cvttsd2si eax, qword [ebp - 0x30]
subss xmm0, xmm1
movzx eax, ax
mov dword [ebp - 0x24], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
movd xmm1, dword [ebp - 0x3c]
fstp qword [ebp - 0x30]
cvttsd2si eax, qword [ebp - 0x30]
movzx eax, ax
mov dword [ebp - 0x2c], eax
cvtdq2ps xmm1, xmm1
xorps xmm0, xmm0
mulss xmm1, dword [ebp - 0x14]
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x40], xmm0
fld qword [ebp - 0x40]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movss xmm1, dword [ebp - 0x18]
add esp, 8
mov esi, dword [ebp - 0x1c]
xorps xmm3, xmm3
mov edi, dword [ebp - 0x10]
fstp qword [ebp - 0x40]
cvttsd2si eax, qword [ebp - 0x40]
movzx ecx, ax
jmp 0x100161d7
mov dword [ebp - 0xc], 0
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
movzx eax, word [esi + 0x14]
dec cx
sub ax, word [ebp - 0xc]
mov edx, dword [ebp - 0x34]
dec ax
add ax, word [ebp - 0x24]
add ax, word [esi + 0x18]
mov word [edx - 2], ax
movzx eax, word [esi + 0x1c]
sub ax, word [ebp - 0x2c]
add ax, word [esi + 0x14]
add ax, cx
mov ecx, dword [ebp - 0x38]
mov word [edx], ax
inc ecx
mov eax, dword [ebp - 8]
add edx, 0x10
inc eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], ecx
cmp ecx, dword [edi - 8]
jl 0x10015fe8
mov edx, dword [ebp - 4]
add edi, 0x18
sub dword [ebx + 0xc], 1
mov dword [ebp - 0x10], edi
jne 0x10015f30
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret