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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cdc90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1230
call fcn.004f5aa0
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
and dword [esi], 0
call fcn.0046f06e
and dword [esp + 0x1244], 0
mov edi, 0x640134
mov ecx, edi
call fcn.0046cef1
cmp dword [eax], 0
mov eax, dword [ebp + 8]
setne byte [esp + 0x13]
test eax, eax
je case.default.0x46fd8a
cmp dword [ebp + 0x14], 0
je case.default.0x46fd8a
cmp eax, dword [ebp + 0x14]
je case.default.0x46fd8a
push dword [ebp + 0x24]
lea eax, [esp + 0x20]
mov ecx, esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0047015a
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [ebp + 0x30]
sub edx, ecx
fld qword [ebp + 0x28]
mov eax, edx
fcomp qword [0x5e5700]
imul eax, esi
mov dword [esp + 8], eax
fnstsw ax
test ah, 5
jp 0x46fbd7
fld qword [ebp + 0x28]
jmp 0x46fbd9
fld1
fldz
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x46fbe8
fstp st(0)
fldz
fcom qword [0x5e5700]
fnstsw ax
test ah, 0x44
jp 0x46fcd7
cmp dword [ebp + 0x3c], 0
je 0x46fc09
cmp dword [ebp + 0x3c], 1
jne 0x46fcd7
imul edx, esi
fstp st(0)
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov edx, ecx
sub ecx, dword [ebp + 0x20]
imul edx, esi
imul ecx, esi
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jae 0x46fcf2
mov esi, eax
sub eax, dword [ebp + 0x24]
imul esi, dword [ebp + 0x34]
imul eax, dword [ebp + 0x38]
add esi, edx
add eax, ecx
add esi, dword [ebp + 8]
add eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
push dword [esp + 0xc]
push dword [esp + 0x1c]
push esi
call fcn.004f7e60
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x46fcb9
mov ecx, edi
call fcn.0046cef1
cmp dword [eax + 4], 1
jne 0x46fcaf
mov ecx, edi
call fcn.0046cef1
cmp dword [eax], 0
je 0x46fcaf
mov ecx, edi
call fcn.0046cef1
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.0046cef1
push dword [eax + 8]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x46fcb1
xor eax, eax
test eax, eax
jne 0x4700d9
mov eax, dword [ebp + 0x38]
inc dword [esp + 0x14]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add esi, dword [ebp + 0x34]
cmp eax, dword [esp + 0x1c]
jb 0x46fc4a
jmp 0x46fcf2
fcom qword [0x5e56e0]
fnstsw ax
test ah, 0x44
jp 0x46fcfa
cmp dword [ebp + 0x3c], 0
je 0x46fcf0
cmp dword [ebp + 0x3c], 1
jne 0x46fcfa
fstp st(0)
xor esi, esi
inc esi
jmp 0x4700f1
fld qword [ebp + 0x28]
call fcn.004f6200
cmp dword [ebp + 0x3c], 0
mov dword [esp + 0x18], eax
je 0x46fd12
cmp dword [ebp + 0x3c], 1
jne 0x46fd3f
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xa40]
push eax
lea eax, [esp + 0x244]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x40]
fstp qword [esp]
call fcn.004701cd
jmp 0x46fd41
fstp st(0)
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x4700ca
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov eax, ecx
imul ecx, dword [ebp + 0x34]
sub eax, dword [ebp + 0x24]
mov edi, esi
sub edi, dword [ebp + 0x20]
imul esi, dword [ebp + 0x30]
imul eax, dword [ebp + 0x38]
imul edi, dword [ebp + 0x30]
add edi, eax
mov eax, dword [ebp + 0x3c]
add edi, dword [ebp + 0x14]
add esi, ecx
add esi, dword [ebp + 8]
cmp eax, 0x10
mov dword [esp + 0x24], edi
ja case.default.0x46fd8a
jmp dword [eax*4 + 0x470116]
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
movzx ecx, byte [edi]
movzx edx, byte [esi]
mov cl, byte [esp + ecx + 0x38]
add cl, byte [esp + edx + 0x138]
mov byte [esi], cl
inc esi
inc edi
dec eax
jne 0x46fd9d
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov dword [esp + 0xc], eax
movzx eax, byte [edi]
movzx ecx, byte [esi]
fld qword [esp + eax*8 + 0x238]
fadd qword [esp + ecx*8 + 0xa38]
call fcn.004f6200
mov edi, dword [esp + 0x24]
mov byte [esi], al
inc esi
inc edi
dec dword [esp + 0xc]
mov dword [esp + 0x24], edi
jne 0x46fdca
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov cl, byte [edi]
and byte [esi], cl
inc esi
inc edi
dec eax
jne 0x46fe06
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov cl, byte [edi]
or byte [esi], cl
inc esi
inc edi
dec eax
jne 0x46fe20
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov cl, byte [edi]
xor byte [esi], cl
inc esi
inc edi
dec eax
jne 0x46fe3a
jmp 0x470069
mov edx, dword [esp + 8]
test edx, edx
jbe 0x470069
mov al, byte [esi]
mov ecx, edi
inc edi
mov cl, byte [ecx]
cmp al, cl
ja 0x46fe61
mov al, cl
mov byte [esi], al
inc esi
dec edx
jne 0x46fe54
jmp 0x470069
mov edx, dword [esp + 8]
test edx, edx
jbe 0x470069
mov al, byte [esi]
mov ecx, edi
inc edi
mov cl, byte [ecx]
cmp al, cl
jb 0x46fe85
mov al, cl
mov byte [esi], al
inc esi
dec edx
jne 0x46fe78
jmp 0x470069
mov edx, dword [esp + 8]
test edx, edx
jbe 0x470069
movzx eax, byte [edi]
movzx ecx, byte [esi]
add eax, ecx
mov ecx, 0xff
inc edi
cmp eax, ecx
jle 0x46feb0
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x46fe9c
jmp 0x470069
mov edx, dword [esp + 8]
test edx, edx
jbe 0x470069
movzx eax, byte [esi]
movzx ecx, byte [edi]
sub eax, dword [esp + 0x18]
inc edi
add eax, ecx
mov ecx, 0xff
cmp eax, ecx
jle 0x46fedf
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x46fec7
jmp 0x470069
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x470069
movzx edx, byte [edi]
movzx eax, byte [esi]
sub eax, edx
inc edi
test eax, eax
jge 0x46ff05
xor eax, eax
mov byte [esi], al
inc esi
dec ecx
jne 0x46fef6
jmp 0x470069
mov edx, dword [esp + 8]
test edx, edx
jbe 0x470069
movzx ecx, byte [edi]
movzx eax, byte [esi]
sub eax, ecx
mov ecx, 0xff
add eax, dword [esp + 0x18]
inc edi
cmp eax, ecx
jle 0x46ff34
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x46ff1c
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov dword [esp + 0xc], eax
movzx eax, byte [esi]
movzx ecx, byte [edi]
sub eax, ecx
inc edi
push eax
call fcn.004f821b
mov byte [esi], al
inc esi
dec dword [esp + 0x10]
pop ecx
jne 0x46ff4f
jmp 0x470069
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x470069
mov al, byte [edi]
inc edi
movzx edx, al
cmp edx, dword [esp + 0x18]
jle 0x46ff87
mov byte [esi], al
inc esi
dec ecx
jne 0x46ff79
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov dword [esp + 0xc], eax
movzx ecx, byte [edi]
movzx eax, byte [esi]
imul eax, ecx
cdq
mov ecx, 0xff
inc edi
idiv ecx
mov byte [esi], al
inc esi
dec dword [esp + 0xc]
jne 0x46ffa0
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov dword [esp + 0xc], eax
jmp 0x46ffd6
mov edi, dword [esp + 0x24]
movzx ecx, byte [esi]
mov al, byte [edi]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
movzx eax, al
fmul qword [0x5e56f8]
mov dword [esp + 0x2c], eax
inc edi
fild dword [esp + 0x2c]
mov dword [esp + 0x24], edi
fmul st(1)
fmul qword [ebp + 0x28]
call fcn.004f6200
cmp al, 0xff
fstp st(0)
jbe 0x47000b
or al, 0xff
mov byte [esi], al
inc esi
dec dword [esp + 0xc]
jne 0x46ffd2
jmp 0x470069
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x470069
mov al, byte [edi]
inc edi
movzx edx, al
cmp edx, dword [esp + 0x18]
jge 0x47002c
mov byte [esi], al
inc esi
dec ecx
jne 0x47001e
jmp 0x470069
mov eax, dword [esp + 8]
test eax, eax
jbe 0x470069
mov dword [esp + 0xc], eax
movzx eax, byte [edi]
movzx edx, byte [esi]
mov ecx, 0xff
sub ecx, eax
mov eax, 0xff
sub eax, edx
inc edi
imul eax, ecx
cdq
mov ecx, 0xff
idiv ecx
sub ecx, eax
mov byte [esi], cl
inc esi
dec dword [esp + 0xc]
jne 0x47003e
cmp byte [esp + 0x13], 0
je 0x4700c2
mov esi, 0x640134
mov ecx, esi
call fcn.0046cef1
cmp dword [eax + 4], 1
jne 0x4700bc
mov ecx, esi
call fcn.0046cef1
cmp dword [eax], 0
je 0x4700bc
mov ecx, esi
call fcn.0046cef1
mov ecx, esi
mov edi, eax
call fcn.0046cef1
push dword [eax + 8]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
push eax
call dword [edi]
neg eax
sbb eax, eax
inc eax
jmp 0x4700be
xor eax, eax
test eax, eax
jne 0x4700d9
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
jb 0x46fd4e
jmp 0x46fcf2
mov eax, dword [esp + 0x28]
mov dword [eax], 0xe
jmp 0x4700ef
mov eax, dword [esp + 0x28]
mov dword [eax], 5
xor esi, esi
or dword [esp + 0x1244], 0xffffffff
call fcn.0046f05e
mov ecx, dword [esp + 0x123c]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x38