Function at 0x50a4f7
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x5fccfd
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.005a28e0
mov eax, dword [0x6963f4]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x218]
mov ebx, dword [ebp + 0x20c]
mov edi, ecx
and dword [edi], 0
lea ecx, [ebp - 0x11]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
call fcn.00509ad5
and dword [ebp - 4], 0
mov esi, 0x6a621c
mov ecx, esi
call fcn.00507e89
cmp dword [eax], 0
setne byte [ebp - 0x11]
test ebx, ebx
je 0x50ab2f
cmp dword [ebp - 0x28], 0
je 0x50ab2f
cmp ebx, dword [ebp - 0x28]
je 0x50ab2f
push dword [ebp + 0x228]
lea eax, [ebp - 0x24]
push dword [ebp + 0x224]
mov ecx, edi
push dword [ebp + 0x220]
push dword [ebp + 0x21c]
push dword [ebp + 0x214]
push dword [ebp + 0x210]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0050a484
fld1
mov ecx, dword [ebp - 0x18]
fcom qword [ebp + 0x22c]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0x234]
sub ecx, esi
mov eax, ecx
imul eax, edi
mov dword [ebp - 0x10], eax
fnstsw ax
test ah, 0x41
jne 0x50a5f3
fld qword [ebp + 0x22c]
jmp 0x50a5f5
fld st(0)
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x50a606
fstp st(1)
fld st(0)
fxch st(1)
mov edx, dword [ebp + 0x240]
fxch st(2)
fucomp st(1)
fnstsw ax
test ah, 0x44
jp 0x50a711
test edx, edx
je 0x50a628
cmp edx, 1
jne 0x50a711
mov ebx, dword [ebp - 0x20]
imul ecx, edi
fstp st(1)
fstp st(0)
mov eax, esi
sub esi, dword [ebp + 0x224]
imul eax, edi
imul esi, edi
cmp ebx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov ecx, esi
mov dword [ebp - 0x18], ebx
jae 0x50a727
and dword [ebp - 0x20], 0
mov edi, ebx
sub edi, dword [ebp + 0x228]
mov esi, ebx
imul esi, dword [ebp + 0x238]
imul edi, dword [ebp + 0x23c]
add esi, dword [ebp - 0x2c]
add edi, dword [ebp - 0x28]
add esi, eax
add edi, ecx
push dword [ebp - 0x1c]
push edi
push esi
call fcn.005a34c0
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x50a6de
mov ecx, 0x6a621c
call fcn.00507e89
cmp dword [eax + 4], 1
jne 0x50a6d8
mov ecx, 0x6a621c
call fcn.00507e89
cmp dword [eax], 0
je 0x50a6d8
mov ecx, 0x6a621c
call fcn.00507e89
mov ecx, 0x6a621c
mov dword [ebp - 0x2c], eax
call fcn.00507e89
mov ecx, dword [ebp - 0x2c]
push dword [ecx + 8]
mov ecx, dword [ebp - 0x24]
sub ecx, ebx
push ecx
push dword [ebp - 0x20]
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x50a6da
xor eax, eax
test eax, eax
jne 0x50a6fe
inc dword [ebp - 0x18]
add edi, dword [ebp + 0x23c]
add esi, dword [ebp + 0x238]
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jb 0x50a677
jmp 0x50a727
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xe
mov ecx, 0x6a621c
jmp 0x50ab37
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x50a742
test edx, edx
je 0x50a725
cmp edx, 1
jne 0x50a742
fstp st(0)
or dword [ebp - 4], 0xffffffff
mov ecx, 0x6a621c
call fcn.00507e89
add eax, 4
dec dword [eax]
xor eax, eax
inc eax
jmp 0x50ab47
fld qword [ebp + 0x22c]
call fcn.005a3c30
cmp dword [ebp + 0x240], 0
mov dword [ebp - 0x18], eax
je 0x50a762
cmp dword [ebp + 0x240], 1
jne 0x50a78a
lea eax, [ebp]
push eax
lea eax, [ebp + 0x100]
push eax
lea eax, [ebp - 0x1034]
push eax
lea eax, [ebp - 0x834]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x30]
fstp qword [esp]
call fcn.0050a3e5
jmp 0x50a78c
fstp st(0)
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jae 0x50a727
mov ecx, dword [ebp - 0x28]
mov eax, esi
imul esi, edi
sub eax, dword [ebp + 0x224]
imul eax, edi
add eax, ecx
add esi, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, ecx
imul ecx, dword [ebp + 0x238]
sub eax, dword [ebp + 0x228]
imul eax, dword [ebp + 0x23c]
lea edi, [edx + eax]
mov eax, dword [ebp - 0x28]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0x240]
cmp eax, 0x10
ja case.default.0x50a7e6
jmp dword [eax*4 + 0x50ab6f]
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov eax, dword [ebp - 0x10]
sub edi, esi
movzx ecx, byte [edi + esi]
movzx edx, byte [esi]
mov cl, byte [ebp + ecx + 0x100]
add cl, byte [ebp + edx]
mov byte [esi], cl
inc esi
dec eax
jne 0x50a7fc
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov ebx, dword [ebp - 0x10]
sub edi, esi
movzx eax, byte [edi + esi]
movzx ecx, byte [esi]
fld qword [ebp + eax*8 - 0x834]
fadd qword [ebp + ecx*8 - 0x1034]
call fcn.005a3c66
mov byte [esi], al
inc esi
dec ebx
jne 0x50a828
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov eax, dword [ebp - 0x10]
sub edi, esi
mov cl, byte [edi + esi]
and byte [esi], cl
inc esi
dec eax
jne 0x50a85c
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov eax, dword [ebp - 0x10]
sub edi, esi
mov cl, byte [edi + esi]
or byte [esi], cl
inc esi
dec eax
jne 0x50a879
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov eax, dword [ebp - 0x10]
sub edi, esi
mov cl, byte [edi + esi]
xor byte [esi], cl
inc esi
dec eax
jne 0x50a896
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov edx, dword [ebp - 0x10]
sub edi, esi
mov al, byte [esi]
mov cl, byte [edi + esi]
cmp al, cl
ja 0x50a8be
mov al, cl
mov byte [esi], al
inc esi
dec edx
jne 0x50a8b3
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov edx, dword [ebp - 0x10]
sub edi, esi
mov al, byte [esi]
mov cl, byte [edi + esi]
cmp al, cl
jb 0x50a8e3
mov al, cl
mov byte [esi], al
inc esi
dec edx
jne 0x50a8d8
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov edx, dword [ebp - 0x10]
movzx eax, byte [edi]
movzx ecx, byte [esi]
add eax, ecx
mov ecx, 0xff
inc edi
cmp eax, ecx
jle 0x50a90f
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x50a8fb
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov edx, dword [ebp - 0x10]
movzx eax, byte [esi]
movzx ecx, byte [edi]
sub eax, dword [ebp - 0x18]
inc edi
add eax, ecx
mov ecx, 0xff
cmp eax, ecx
jle 0x50a93e
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x50a927
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edi]
movzx eax, byte [esi]
sub eax, edx
inc edi
test eax, eax
jge 0x50a965
xor eax, eax
mov byte [esi], al
inc esi
dec ecx
jne 0x50a956
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov edx, dword [ebp - 0x10]
movzx ecx, byte [edi]
movzx eax, byte [esi]
sub eax, ecx
add eax, dword [ebp - 0x18]
mov ecx, 0xff
inc edi
cmp eax, ecx
jle 0x50a994
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x50a97d
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov ebx, dword [ebp - 0x10]
sub edi, esi
movzx eax, byte [esi]
movzx ecx, byte [edi + esi]
sub eax, ecx
push eax
call fcn.005aa41b
mov byte [esi], al
inc esi
dec ebx
pop ecx
jne 0x50a9ae
jmp 0x50aaac
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jbe 0x50aaac
mov al, byte [edi]
movzx edx, al
inc edi
cmp edx, dword [ebp - 0x18]
jle 0x50a9e2
mov byte [esi + ecx], al
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x50a9d4
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov ebx, dword [ebp - 0x10]
sub edi, esi
movzx ecx, byte [edi + esi]
movzx eax, byte [esi]
imul eax, ecx
cdq
mov ecx, 0xff
idiv ecx
mov byte [esi], al
inc esi
dec ebx
jne 0x50a9fc
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov ebx, dword [ebp - 0x10]
movzx ecx, byte [esi]
mov al, byte [edi]
mov dword [ebp - 0x34], ecx
movzx eax, al
fild dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
inc edi
fdiv qword [0x655798]
fild dword [ebp - 0x34]
fmul qword [ebp + 0x22c]
fmulp st(1)
call fcn.005a3c66
cmp al, 0xff
jbe 0x50aa54
or al, 0xff
mov byte [esi], al
inc esi
dec ebx
jne 0x50aa26
jmp 0x50aaac
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jbe 0x50aaac
mov al, byte [edi]
movzx edx, al
inc edi
cmp edx, dword [ebp - 0x18]
jge 0x50aa71
mov byte [esi + ecx], al
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x50aa63
jmp 0x50aaac
cmp dword [ebp - 0x10], 0
jbe 0x50aaac
mov ebx, dword [ebp - 0x10]
sub edi, esi
movzx eax, byte [edi + esi]
movzx edx, byte [esi]
mov ecx, 0xff
sub ecx, eax
mov eax, 0xff
sub eax, edx
imul eax, ecx
cdq
mov ecx, 0xff
idiv ecx
sub ecx, eax
mov byte [esi], cl
inc esi
dec ebx
jne 0x50aa84
cmp byte [ebp - 0x11], 0
je 0x50ab00
mov edi, 0x6a621c
mov ecx, edi
call fcn.00507e89
cmp dword [eax + 4], 1
jne 0x50aafa
mov ecx, edi
call fcn.00507e89
cmp dword [eax], 0
je 0x50aafa
mov ecx, edi
call fcn.00507e89
mov ecx, edi
mov esi, eax
call fcn.00507e89
push dword [esi + 8]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
push ecx
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x50aafc
xor eax, eax
test eax, eax
jne 0x50ab14
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jb 0x50a7b2
jmp 0x50a727
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xe
mov ecx, edi
jmp 0x50ab37
mov eax, dword [ebp - 0x30]
mov dword [eax], 5
jmp 0x50a707
mov dword [edi], 5
mov ecx, esi
or dword [ebp - 4], 0xffffffff
call fcn.00507e89
add eax, 4
dec dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0059e0c2
add ebp, 0x204
leave
ret 0x38