Function at 0x550a64
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x550d82
mov eax, dword [ebp + 0x1c]
sub eax, ebx
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x84]
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
fild dword [ebp - 0x88]
fdivp st(1)
fcomp dword [0x550d8c]
wait
fnstsw ax
sahf
ja 0x550ae9
mov eax, dword [ebp + 0x18]
sub eax, esi
mov dword [ebp - 0x8c], eax
fild dword [ebp - 0x8c]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x90], eax
fild dword [ebp - 0x90]
fdivp st(1)
fcomp dword [0x550d8c]
wait
fnstsw ax
sahf
jbe 0x550b14
push esi
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0054eb90
jmp 0x550d82
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0054b390
test al, al
jne 0x550d82
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 1
jl 0x550d82
cmp dword [ebp - 0x2c], 1
jl 0x550d82
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x38]
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x3c]
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x48]
shl eax, 0xa
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x38]
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x4c]
shl eax, 0xa
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x3c]
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
fild dword [ebp - 0x84]
fdivr dword [0x550d90]
fmul dword [0x550d94]
call fcn.00404aa8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jl 0x550d82
inc eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x24]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x60]
add edx, edx
add edx, edx
add dword [ebp - 0x14], edx
imul dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
imul dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x550d76
inc eax
mov dword [ebp - 0x7c], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
dec eax
test eax, eax
jl 0x550d08
inc eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x6c]
shr edx, 0xa
add eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x24]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x74]
shr edx, 0xa
add edx, edx
add edx, edx
add eax, edx
mov ecx, dword [ebp - 0x30]
dec ecx
test ecx, ecx
jl 0x550d00
inc ecx
mov edx, dword [eax]
mov esi, edx
shr esi, 0x18
add ebx, esi
mov esi, edx
shr esi, 0x10
and esi, 0xff
add dword [ebp - 0x18], esi
mov esi, edx
shr esi, 8
and esi, 0xff
add dword [ebp - 0x1c], esi
and edx, 0xff
add dword [ebp - 0x20], edx
add eax, 4
dec ecx
jne 0x550ccc
inc dword [ebp - 0x10]
dec dword [ebp - 0x80]
jne 0x550c9d
imul ebx, dword [ebp - 0x24]
shr ebx, 0xc
and ebx, 0xff
mov eax, dword [ebp - 0x18]
imul dword [ebp - 0x24]
shr eax, 0xc
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x24]
shr eax, 0xc
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x24]
shr eax, 0xc
and eax, 0xff
mov dword [ebp - 0x20], eax
shl ebx, 0x18
mov eax, dword [ebp - 0x18]
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp - 0x1c]
shl eax, 8
or ebx, eax
or ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
add dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x74], eax
dec dword [ebp - 0x7c]
jne 0x550c79
inc dword [ebp - 0xc]
dec dword [ebp - 0x78]
jne 0x550c3b
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c