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

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x604a10
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.005aa170
mov eax, dword [0x69e3d4]
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.0050e9af
and dword [ebp - 4], 0
mov esi, 0x6ae5bc
mov ecx, esi
call fcn.0050cb18
cmp dword [eax], 0
setne byte [ebp - 0x11]
test ebx, ebx
je 0x50faf9
cmp dword [ebp - 0x28], 0
je 0x50faf9
cmp ebx, dword [ebp - 0x28]
je 0x50faf9
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.0050f44e
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 0x50f5bd
fld qword [ebp + 0x22c]
jmp 0x50f5bf
fld st(0)
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x50f5d0
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 0x50f6db
test edx, edx
je 0x50f5f2
cmp edx, 1
jne 0x50f6db
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 0x50f6f1
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.005aad50
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x50f6a8
mov ecx, 0x6ae5bc
call fcn.0050cb18
cmp dword [eax + 4], 1
jne 0x50f6a2
mov ecx, 0x6ae5bc
call fcn.0050cb18
cmp dword [eax], 0
je 0x50f6a2
mov ecx, 0x6ae5bc
call fcn.0050cb18
mov ecx, 0x6ae5bc
mov dword [ebp - 0x2c], eax
call fcn.0050cb18
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 0x50f6a4
xor eax, eax
test eax, eax
jne 0x50f6c8
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 0x50f641
jmp 0x50f6f1
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xe
mov ecx, 0x6ae5bc
jmp 0x50fb01
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x50f70c
test edx, edx
je 0x50f6ef
cmp edx, 1
jne 0x50f70c
fstp st(0)
or dword [ebp - 4], 0xffffffff
mov ecx, 0x6ae5bc
call fcn.0050cb18
add eax, 4
dec dword [eax]
xor eax, eax
inc eax
jmp 0x50fb11
fld qword [ebp + 0x22c]
call fcn.005ab4c0
cmp dword [ebp + 0x240], 0
mov dword [ebp - 0x18], eax
je 0x50f72c
cmp dword [ebp + 0x240], 1
jne 0x50f754
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.0050f3af
jmp 0x50f756
fstp st(0)
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jae 0x50f6f1
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.0x50f7b0
jmp dword [eax*4 + 0x50fb39]
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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 0x50f7c6
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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.005ab4f6
mov byte [esi], al
inc esi
dec ebx
jne 0x50f7f2
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
mov eax, dword [ebp - 0x10]
sub edi, esi
mov cl, byte [edi + esi]
and byte [esi], cl
inc esi
dec eax
jne 0x50f826
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
mov eax, dword [ebp - 0x10]
sub edi, esi
mov cl, byte [edi + esi]
or byte [esi], cl
inc esi
dec eax
jne 0x50f843
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
mov eax, dword [ebp - 0x10]
sub edi, esi
mov cl, byte [edi + esi]
xor byte [esi], cl
inc esi
dec eax
jne 0x50f860
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
mov edx, dword [ebp - 0x10]
sub edi, esi
mov al, byte [esi]
mov cl, byte [edi + esi]
cmp al, cl
ja 0x50f888
mov al, cl
mov byte [esi], al
inc esi
dec edx
jne 0x50f87d
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
mov edx, dword [ebp - 0x10]
sub edi, esi
mov al, byte [esi]
mov cl, byte [edi + esi]
cmp al, cl
jb 0x50f8ad
mov al, cl
mov byte [esi], al
inc esi
dec edx
jne 0x50f8a2
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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 0x50f8d9
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x50f8c5
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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 0x50f908
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x50f8f1
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edi]
movzx eax, byte [esi]
sub eax, edx
inc edi
test eax, eax
jge 0x50f92f
xor eax, eax
mov byte [esi], al
inc esi
dec ecx
jne 0x50f920
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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 0x50f95e
mov eax, ecx
mov byte [esi], al
inc esi
dec edx
jne 0x50f947
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
mov ebx, dword [ebp - 0x10]
sub edi, esi
movzx eax, byte [esi]
movzx ecx, byte [edi + esi]
sub eax, ecx
push eax
call fcn.005b1cab
mov byte [esi], al
inc esi
dec ebx
pop ecx
jne 0x50f978
jmp 0x50fa76
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jbe 0x50fa76
mov al, byte [edi]
movzx edx, al
inc edi
cmp edx, dword [ebp - 0x18]
jle 0x50f9ac
mov byte [esi + ecx], al
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x50f99e
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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 0x50f9c6
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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 [0x65d250]
fild dword [ebp - 0x34]
fmul qword [ebp + 0x22c]
fmulp st(1)
call fcn.005ab4f6
cmp al, 0xff
jbe 0x50fa1e
or al, 0xff
mov byte [esi], al
inc esi
dec ebx
jne 0x50f9f0
jmp 0x50fa76
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
jbe 0x50fa76
mov al, byte [edi]
movzx edx, al
inc edi
cmp edx, dword [ebp - 0x18]
jge 0x50fa3b
mov byte [esi + ecx], al
inc ecx
cmp ecx, dword [ebp - 0x10]
jb 0x50fa2d
jmp 0x50fa76
cmp dword [ebp - 0x10], 0
jbe 0x50fa76
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 0x50fa4e
cmp byte [ebp - 0x11], 0
je 0x50faca
mov edi, 0x6ae5bc
mov ecx, edi
call fcn.0050cb18
cmp dword [eax + 4], 1
jne 0x50fac4
mov ecx, edi
call fcn.0050cb18
cmp dword [eax], 0
je 0x50fac4
mov ecx, edi
call fcn.0050cb18
mov ecx, edi
mov esi, eax
call fcn.0050cb18
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 0x50fac6
xor eax, eax
test eax, eax
jne 0x50fade
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jb 0x50f77c
jmp 0x50f6f1
mov eax, dword [ebp - 0x30]
mov dword [eax], 0xe
mov ecx, edi
jmp 0x50fb01
mov eax, dword [ebp - 0x30]
mov dword [eax], 5
jmp 0x50f6d1
mov dword [edi], 5
mov ecx, esi
or dword [ebp - 4], 0xffffffff
call fcn.0050cb18
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.005a58d9
add ebp, 0x204
leave
ret 0x38