Function at 0x4384d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx esi, word [esi]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 8]
movzx esi, word [esi]
mov dword [ebp - 0x2c], esi
mov esi, edx
shl esi, 2
xor esi, edx
xor eax, eax
push edi
mov dword [ebp - 0x18], edx
cmp esi, 4
jae 0x438595
push 8
pop edi
push 0x10
lea eax, [ecx + 2]
mov edx, edi
mov esi, edi
pop ecx
movzx ebx, byte [eax - 2]
add edx, ebx
movzx ebx, byte [eax - 1]
add esi, ebx
movzx ebx, byte [eax]
add edi, ebx
add eax, 4
dec ecx
jne 0x438515
sar esi, 4
lea ecx, [esi + esi]
sar edx, 4
sar edi, 4
lea eax, [edx + edx]
movzx si, byte [eax + 0x621c80]
movzx ax, byte [eax + 0x621c81]
lea edx, [edi + edi]
movzx di, byte [ecx + 0x621a80]
movzx cx, byte [ecx + 0x621a81]
shl si, 6
or si, di
movzx di, byte [edx + 0x621c80]
shl ax, 6
or ax, cx
movzx cx, byte [edx + 0x621c81]
shl si, 5
or si, di
shl ax, 5
or ax, cx
movzx edi, si
movzx esi, ax
jmp 0x4387c5
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
add ecx, 2
mov dword [ebp - 0x1c], 0x10
mov edx, dword [ebp - 0x18]
and edx, 3
shl edx, 2
mov ebx, dword [edx + 0x5c06ac]
add eax, dword [edx + 0x5c06bc]
movzx edx, byte [ecx - 1]
mov dword [ebp - 0x14], ebx
imul edx, dword [ebp - 0x14]
add dword [ebp - 8], edx
movzx edx, byte [ecx]
imul edx, dword [ebp - 0x14]
movzx ebx, byte [ecx - 2]
imul ebx, dword [ebp - 0x14]
add dword [ebp - 0x10], edx
movzx edx, byte [ecx - 2]
add dword [ebp - 4], ebx
movzx ebx, byte [ecx]
shr dword [ebp - 0x18], 2
add esi, edx
movzx edx, byte [ecx - 1]
add edi, edx
mov edx, dword [ebp - 0xc]
add edx, ebx
add ecx, 4
dec dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
jne 0x4385af
imul esi, esi, 3
imul edi, edi, 3
imul edx, edx, 3
sub esi, dword [ebp - 4]
sub edi, dword [ebp - 8]
mov dword [ebp - 0x1c], esi
mov esi, eax
mov ecx, 0xff
mov dword [ebp - 0x18], edi
mov edi, eax
and eax, ecx
sar esi, 8
and esi, ecx
mov ebx, eax
imul eax, ebx
sar edi, 0x10
mov ecx, esi
imul ecx, edi
sub ecx, eax
mov dword [ebp - 0x20], ecx
sub edx, dword [ebp - 0x10]
mov eax, ebx
fild dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
fdivr qword [0x5c0c90]
mov ecx, esi
mov dword [ebp - 0xc], edx
fstp dword [ebp - 0x20]
imul ecx, dword [ebp - 4]
fld dword [ebp - 0x20]
fld qword [0x5c0c70]
fmul st(1)
fdiv qword [0x5c0c78]
sub ecx, eax
mov dword [ebp - 0x14], ecx
fstp dword [ebp - 0x20]
fild dword [ebp - 0x14]
fld st(1)
fmulp st(1)
fld qword [0x5c0bf8]
fadd st(1), st(0)
fxch st(1)
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
call fcn.0050e3a0
test eax, eax
jge 0x43869c
xor eax, eax
jmp 0x4386a4
cmp eax, 0x1f
jle 0x4386a4
push 0x1f
pop eax
shl eax, 0xb
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, ebx
imul eax, dword [ebp - 0x18]
mov ecx, esi
imul ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x24], ecx
fild dword [ebp - 0x24]
fmul dword [ebp - 0x20]
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.0050e3a0
test eax, eax
jge 0x4386d9
xor eax, eax
jmp 0x4386e1
cmp eax, 0x3f
jle 0x4386e1
push 0x3f
pop eax
imul esi, dword [ebp - 0x10]
shl eax, 5
or dword [ebp - 0x14], eax
mov eax, ebx
imul eax, dword [ebp - 0xc]
sub esi, eax
mov dword [ebp - 0x24], esi
fild dword [ebp - 0x24]
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.0050e3a0
test eax, eax
jge 0x438712
xor eax, eax
jmp 0x43871a
cmp eax, 0x1f
jle 0x43871a
push 0x1f
pop eax
or dword [ebp - 0x14], eax
mov eax, edi
imul eax, dword [ebp - 0x1c]
mov ecx, ebx
imul ecx, dword [ebp - 4]
sub eax, ecx
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fld st(2)
fmulp st(1)
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.0050e3a0
test eax, eax
jge 0x43874a
xor eax, eax
jmp 0x438752
cmp eax, 0x1f
jle 0x438752
push 0x1f
pop eax
shl eax, 0xb
movzx esi, ax
mov eax, edi
imul eax, dword [ebp - 0x18]
mov ecx, ebx
imul ecx, dword [ebp - 8]
sub eax, ecx
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fmul dword [ebp - 0x20]
fadd st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.0050e3a0
test eax, eax
jge 0x438784
xor eax, eax
jmp 0x43878c
cmp eax, 0x3f
jle 0x43878c
push 0x3f
pop eax
imul edi, dword [ebp - 0xc]
imul ebx, dword [ebp - 0x10]
sub edi, ebx
mov dword [ebp - 0x24], edi
shl eax, 5
or esi, eax
fild dword [ebp - 0x24]
fmulp st(2)
faddp st(1)
fstp dword [ebp - 0x24]
fld dword [ebp - 0x24]
call fcn.0050e3a0
test eax, eax
jge 0x4387b8
xor eax, eax
jmp 0x4387c0
cmp eax, 0x1f
jle 0x4387c0
push 0x1f
pop eax
mov edi, dword [ebp - 0x14]
or esi, eax
mov eax, dword [ebp + 0xc]
mov word [eax], si
mov eax, dword [ebp + 8]
mov word [eax], di
cmp word [ebp - 0x28], si
jne 0x4387e1
cmp word [ebp - 0x2c], di
jne 0x4387e1
xor eax, eax
jmp 0x4387e4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret