Function at 0x5a24ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
sub ebx, eax
shl eax, 8
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xec]
mov al, byte [0x680ed1]
shl ecx, 8
test al, al
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x18]
je 0x5a253a
mov eax, dword [esi + 0x38]
mov edx, ecx
push edx
add eax, 0x20
call fcn.0059865c
add esp, 4
jmp 0x5a254f
mov edx, dword [esi + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
add edx, 0x20
push edx
call fcn.005755dc
add esp, 0xc
mov eax, dword [esi + 0x38]
mov edi, dword [eax + 0x90]
test edi, edi
je 0x5a278e
fild dword [esp + 0x18]
movsx ecx, word [eax + 0x96]
mov dword [esp + 0x10], ecx
fmul qword [0x5fa5b8]
fstp qword [esp + 0x48]
fild dword [esp + 0x1c]
fmul qword [0x5fa5b8]
fild dword [eax + 0x20]
fmul qword [0x5fa5c8]
fild dword [eax + 0x24]
fmul qword [0x5fa5c8]
fstp qword [esp + 0x28]
fild dword [esp + 0x10]
fcom qword [0x5fa5b0]
fnstsw ax
test ah, 5
jp 0x5a25b4
fstp st(0)
fld qword [0x5fa5b0]
jmp 0x5a25c9
fcom qword [0x5fa5a8]
fnstsw ax
test ah, 0x41
jne 0x5a25c9
fstp st(0)
fld qword [0x5fa5a8]
fmul qword [0x5f69f0]
sub esp, 8
fld st(0)
fmul st(1)
fsubr qword [0x5f66e0]
fdivr qword [0x5f66e0]
fld qword [esp + 0x50]
fsub st(2)
fld st(0)
fmul st(2)
fmul st(3)
fst qword [esp + 0x38]
fld st(2)
fmul st(4)
fmul st(5)
fst qword [esp + 0x50]
fld st(0)
fmul st(1)
fadd st(0), st(0)
fstp qword [esp + 0x18]
fstp st(0)
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
fld st(5)
fmul st(6)
faddp st(1)
fmul st(3)
fadd st(0), st(0)
fstp qword [esp + 0x40]
fld st(1)
fmul st(2)
fld st(6)
fmul st(7)
faddp st(1)
fmul st(3)
fld st(1)
fmul st(2)
faddp st(1)
fstp qword [esp + 0x28]
fstp st(0)
fmul st(3)
fld qword [esp + 0x30]
fmul st(5)
faddp st(1)
fmul st(1)
fadd st(0), st(0)
fld qword [esp + 0x40]
fmul qword [0x5f66e8]
faddp st(1)
fld qword [esp + 0x50]
fmul qword [esp + 0x38]
fadd st(0), st(0)
fld qword [esp + 0x18]
fmul qword [0x5f66e8]
faddp st(1)
faddp st(1)
fstp qword [esp + 0x48]
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [esp + 0x40]
fadd qword [esp + 0x18]
fstp qword [esp + 0x40]
fld qword [esp + 0x28]
fstp qword [esp]
call fcn.00632fac
add esp, 8
fstp qword [esp + 0x28]
test ebx, ebx
je 0x5a278e
mov esi, dword [ebp + 0x14]
test bl, 0x10
fld qword [esp + 0x20]
jne 0x5a26cb
fdiv qword [esp + 0x28]
fadd qword [esp + 0x28]
fmul qword [0x5f66e8]
fld qword [esp + 0x20]
fdiv st(1)
fadd st(1)
fmul qword [0x5f66e8]
fstp qword [esp + 0x28]
fstp st(0)
jmp 0x5a26dd
sub esp, 8
fstp qword [esp]
call fcn.00632fac
fstp qword [esp + 0x30]
add esp, 8
fld qword [esp + 0x28]
fadd qword [esp + 0x30]
fmul qword [0x5f6850]
fstp qword [esp + 0x50]
fld qword [esp + 0x50]
fistp dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x38]
movzx ecx, byte [ecx + 0x94]
mov eax, dword [esp + 0x10]
and ecx, 0xc
cmp ecx, 4
je 0x5a272b
cmp ecx, 8
je 0x5a2735
cmp eax, 0x100
jle 0x5a2723
mov eax, pe_nt_image_headers32
jmp 0x5a273a
test eax, eax
jge 0x5a273a
xor eax, eax
jmp 0x5a273a
test ah, 1
je 0x5a2735
xor eax, 0xff
and eax, 0xff
movzx dx, byte [edi + eax*4 + 3]
fld qword [esp + 0x48]
fadd qword [esp + 0x30]
mov word [esi + 6], dx
movzx cx, byte [edi + eax*4 + 2]
fstp qword [esp + 0x30]
fld qword [esp + 0x40]
mov word [esi + 4], cx
movzx dx, byte [edi + eax*4 + 1]
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
mov word [esi + 2], dx
movzx ax, byte [edi + eax*4]
fld qword [esp + 0x40]
fadd qword [esp + 0x38]
mov word [esi], ax
add esi, 8
fstp qword [esp + 0x40]
dec ebx
jne 0x5a269e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret