Function at 0x10019bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x88
cmp dword [ebx + 0xc], 0
mov eax, 1
push esi
mov esi, ecx
mov dword [ebp - 0x34], eax
push edi
mov edi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x1c], 0
jle 0x1001a139
mov edx, dword [ebx + 8]
xorps xmm3, xmm3
movss xmm4, dword [0x1006747c]
add edx, 8
mov dword [ebp - 0x20], edx
movss xmm2, dword [edx - 8]
comiss xmm2, xmm3
jbe 0x10019c67
mov eax, dword [ebp - 4]
mov edi, dword [edi + 0x1c]
mov esi, dword [eax + 4]
mov eax, 0x100
cwde
movzx ecx, byte [edi + esi + 4]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 6]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
mov esi, dword [ebp - 8]
add cx, ax
movsx eax, cx
sub edx, eax
movd xmm0, edx
jmp 0x10019c87
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
xorps xmm2, xmmword [0x10067860]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov edx, dword [ebp - 0x20]
cvtdq2ps xmm0, xmm0
mov al, byte [edx + 0xd]
mov cl, byte [edx + 0xc]
divss xmm2, xmm0
xorps xmm0, xmm0
movaps xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x5f], al
mov byte [ebp - 0x60], cl
movaps xmm1, xmmword [ebp - 0x60]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movd edi, xmm1
psrldq xmm1, 4
movd ecx, xmm1
movaps xmm1, xmm4
mov eax, edi
movss dword [ebp - 0x14], xmm2
shr eax, 0x1f
mov dword [esi + 0x18], edi
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mov dword [esi + 0x1c], ecx
addsd xmm0, qword [eax*8 + 0x10067810]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
movss dword [ebp - 0x6c], xmm1
movaps xmm1, xmm4
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10067810]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x70], xmm1
test edi, edi
jne 0x10019d1f
movss dword [ebp - 0x24], xmm3
jmp 0x10019d41
mov eax, 1
movd xmm0, edi
sub eax, edi
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x24], xmm1
test ecx, ecx
jne 0x10019d4c
movss dword [ebp - 0x2c], xmm3
jmp 0x10019d6e
mov eax, 1
movd xmm0, ecx
sub eax, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm0, xmm0
divss xmm1, xmm0
movss dword [ebp - 0x2c], xmm1
xor ecx, ecx
mov dword [ebp - 0x30], ecx
cmp dword [edx + 4], ecx
jle 0x1001a11d
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebx + 0x10]
shl eax, 4
add edi, 8
add edi, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
mov dword [ebp - 0x38], eax
mov eax, ecx
nop dword [eax + eax]
cmp dword [edi + 4], 0
je 0x1001a0f2
mov eax, dword [edx + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [edx]
test eax, eax
jne 0x10019dc0
mov edx, dword [edx - 4]
add edx, ecx
jmp 0x10019dc3
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
call fcn.10014820
movzx ecx, word [esi + 0x14]
add word [edi], cx
add word [edi + 2], cx
sub word [edi - 4], cx
sub word [edi - 2], cx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
movzx ecx, byte [edx + eax + 0x22]
movzx eax, byte [edx + eax + 0x23]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
cmp dword [ebp - 0xc], ecx
jge 0x10019e24
mov ecx, dword [ebp - 0xc]
lea edx, [edx + ecx*4]
movzx ecx, byte [edx + eax]
add edx, eax
movsx ecx, cx
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x10019e46
mov esi, dword [ebp - 4]
lea edx, [edx + ecx*4]
movzx ecx, byte [edx + eax - 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [esi + 0x20]
mov esi, dword [ebp - 8]
movzx eax, byte [edx + eax - 3]
add cx, ax
mov edx, dword [ebp - 0xc]
movzx eax, cx
cwde
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10067810]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x3c], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10067810]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
cvtpd2ps xmm0, xmm0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
mulss xmm0, xmm2
movss dword [ebp - 0x54], xmm0
call fcn.10014c30
add esp, 0x10
test eax, eax
jne 0x10019ed0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
jmp 0x10019f4a
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, dword [ebp - 0x18]
sub esp, 8
mulss xmm0, dword [ebp - 0x3c]
addss 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_floor
fstp qword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x40]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x44]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x54]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [ebp - 0x18], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x58], xmm0
fld qword [ebp - 0x58]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x58]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x1c]
mov eax, ecx
push dword [ebp - 0xc]
mov edx, dword [esi + 0x18]
shr eax, 0x1f
sub esp, 0x10
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov esi, dword [esi + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
addsd xmm0, qword [eax*8 + 0x10067810]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x14]
movss dword [esp + 4], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10067810]
movzx eax, word [edi - 2]
sub eax, ecx
mov ecx, dword [ebp - 4]
inc eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x14]
movss dword [esp], xmm0
push esi
push eax
movzx eax, word [edi - 4]
sub eax, edx
movzx edx, word [edi + 2]
imul edx, esi
inc eax
mov esi, dword [ebp - 8]
push eax
movzx eax, word [edi]
add edx, eax
add edx, dword [esi + 0x20]
call fcn.10019220
mov eax, dword [esi + 0x18]
add esp, 0x20
cmp eax, 1
jbe 0x1001a010
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
mov esi, dword [ebp - 8]
push eax
movzx eax, word [edi]
add ecx, eax
add ecx, dword [esi + 0x20]
call fcn.10019410
add esp, 0xc
mov eax, dword [esi + 0x1c]
cmp eax, 1
jbe 0x1001a040
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
mov esi, dword [ebp - 8]
push eax
movzx eax, word [edi]
add ecx, eax
add ecx, dword [esi + 0x20]
call fcn.10019660
add esp, 0xc
mov ecx, dword [ebp - 0x64]
movzx eax, word [edi]
movd xmm0, dword [ebp - 0x68]
movss xmm2, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
mov word [ecx], ax
movzx eax, word [edi + 2]
mov word [ecx + 2], ax
movzx eax, word [edi]
add ax, word [edi - 4]
mulss xmm0, xmm2
mov edx, dword [ebp - 0x28]
mov word [ecx + 4], ax
movzx eax, word [edi + 2]
add ax, word [edi - 2]
movss dword [ecx + 0x10], xmm0
movd xmm0, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
mov word [ecx + 6], ax
mulss xmm0, dword [ebp - 0x6c]
addss xmm0, dword [ebp - 0x24]
movss dword [ecx + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x70]
addss xmm0, dword [ebp - 0x2c]
movss dword [ecx + 0xc], xmm0
movzx eax, word [edi - 4]
add eax, dword [ebp - 0x18]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x6c]
addss xmm0, dword [ebp - 0x24]
movss dword [ecx + 0x14], xmm0
movzx eax, word [edi - 2]
add eax, edx
mov edx, dword [ebp - 0x20]
movd xmm0, eax
mov eax, dword [ebp - 0x10]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x70]
addss xmm0, dword [ebp - 0x2c]
movss dword [ecx + 0x18], xmm0
mov ecx, dword [ebp - 0x30]
jmp 0x1001a0f9
mov dword [ebp - 0x34], 0
inc dword [ebp - 0x1c]
inc ecx
add eax, 0x1c
mov dword [ebp - 0x30], ecx
add edi, 0x10
mov dword [ebp - 0x10], eax
cmp ecx, dword [edx + 4]
jl 0x10019da0
movss xmm4, dword [0x1006747c]
xorps xmm3, xmm3
mov edi, dword [ebp - 4]
add edx, 0x18
sub dword [ebx + 0xc], 1
mov dword [ebp - 0x20], edx
jne 0x10019c11
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
pop edi
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret