Function at 0x100c0780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10358f40]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.100c00b0
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
shl ecx, 8
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x14]
movzx edx, byte [eax + edx]
add ecx, edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
shr eax, 0xa
and eax, 0x1f
sub eax, 0xf
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 8
xor edx, edx
jne 0x100c07e3
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
jne 0x100c07d6
cmp dword [ebp - 0x1c], 0xfffffff1
jne 0x100c08be
mov eax, dword [ebp - 0x18]
and eax, 0x3ff
jne 0x100c0837
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
and ecx, 0x80
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0xc], cl
jmp 0x100c08b9
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0xc], 0x3f
mov eax, dword [ebp - 0x18]
shr eax, 6
and eax, 0xf
movzx ecx, al
add ecx, 0x10
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0xc], cl
mov ecx, dword [ebp - 0x18]
shl ecx, 2
and ecx, 0xff
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0xc], cl
lea ecx, [ebp - 0xc]
push ecx
call fcn.100a3330
add esp, 4
movsd xmm0, qword [ebp - 0xc]
subsd xmm0, qword [0x10296730]
movsd qword [ebp - 0x30], xmm0
mov edx, dword [ebp - 0x18]
and edx, 0x8000
je 0x100c08b1
movsd xmm0, qword [ebp - 0x30]
xorps xmm0, xmmword [0x10296850]
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
jmp 0x100c0a16
jmp 0x100c0a07
cmp dword [ebp - 0x1c], 0x10
jne 0x100c0936
mov eax, dword [ebp - 0x18]
and eax, 0x3ff
jne 0x100c0901
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
and ecx, 0x80
add ecx, 0x7f
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0xc], cl
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0xc], 0xf0
jmp 0x100c0931
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + ecx]
and eax, 0x80
add eax, 0x7f
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0xc], al
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0xc], 0xf8
jmp 0x100c0a07
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
and edx, 0x80
je 0x100c0956
mov dword [ebp - 0x20], Ordinal_2
jmp 0x100c095d
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x3ff
shl ecx, 0x14
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
and edx, 3
shl edx, 0x12
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + eax]
and edx, 0xff
shl edx, 0xa
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0xc], al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0xc], al
mov eax, dword [ebp - 0x10]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0xc], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov ecx, 1
shl ecx, 2
mov byte [ebp + ecx - 0xc], al
lea edx, [ebp - 0xc]
push edx
call fcn.100a3330
add esp, 4
fld qword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102390e8
mov esp, ebp
pop ebp
ret