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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x66f040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x110], ecx
je 0x49407a
push esi
push 0
mov edx, 7
call fcn.00492f70
lea edx, [edi - 1]
add esp, 4
mov dword [ebp - 0x118], edx
test edx, edx
jle 0x493f06
mov edi, dword [ebp - 0x110]
lea esi, [ebx + edx]
or eax, 0xffffffff
lea ebx, [ebx]
movzx eax, byte [eax + esi]
xor byte [esi], al
mov eax, edx
mov cl, byte [esi]
and eax, reloc.WS2_32.dll_ntohs
jns 0x493ec6
dec eax
or eax, 0xfffffff0
inc eax
mov bl, byte [eax + edi + 8]
mov eax, edx
cdq
xor bl, cl
mov ecx, 0x14
mov byte [esi], bl
idiv ecx
mov eax, dword [ebp + 0x10]
movzx eax, byte [edx + eax]
mov edx, dword [ebp - 0x118]
xor al, bl
xor al, dl
dec edx
mov byte [esi], al
dec esi
mov dword [ebp - 0x118], edx
lea eax, [ecx - 0x15]
test edx, edx
jg 0x493eb0
mov ebx, dword [ebp - 0x108]
mov edi, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
xor esi, esi
mov al, byte [eax + 8]
xor byte [ebx], al
mov eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test edi, edi
jle 0x493f3e
lea edx, [ebx + edi]
mov ecx, dword [ebp - 0x108]
mov bl, byte [ebx + esi]
mov al, byte [edx + esi]
mov byte [ecx + esi], al
mov byte [edx + esi], bl
add esi, 2
mov ebx, ecx
cmp esi, edi
jl 0x493f23
mov ecx, dword [ebp - 0x110]
mov edx, 7
push 0
call fcn.00492fc0
mov ecx, dword [ebp - 0x114]
add esp, 4
movzx eax, byte [ecx + 7]
xor byte [ecx], al
movzx eax, byte [ecx + 7]
xor byte [ecx + 1], al
movzx eax, byte [ecx + 7]
xor byte [ecx + 2], al
movzx eax, byte [ecx + 7]
xor byte [ecx + 3], al
movzx eax, byte [ecx + 7]
xor byte [ecx + 4], al
movzx eax, byte [ecx + 7]
xor byte [ecx + 5], al
movzx eax, byte [ecx + 7]
xor byte [ecx + 6], al
xor eax, eax
jmp 0x493f90
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jl 0x493f90
xor edi, edi
mov ebx, ecx
xor esi, esi
jmp 0x493fb0
mov dl, byte [ebp + esi - 0x104]
mov eax, esi
and eax, 7
movzx ecx, dl
movzx eax, byte [eax + ebx]
add edi, eax
add edi, ecx
and edi, 0xff
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jl 0x493fb0
mov eax, dword [ebp - 0x10c]
xor edx, edx
mov ebx, dword [ebp - 0x108]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x494059
inc edx
and edx, 0xff
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add edi, eax
and edi, 0xff
movzx eax, byte [ebp + edi - 0x104]
mov byte [ebp + edx - 0x104], al
mov byte [ebp + edi - 0x104], cl
movzx eax, byte [ebp + edx - 0x104]
movzx ecx, cl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x104]
xor byte [ebx + esi], al
inc esi
mov eax, dword [ebp - 0x10c]
cmp esi, eax
jl 0x494001
lea edx, [eax - 1]
test edx, edx
jle 0x494079
lea eax, [ebx + edx]
or esi, 0xffffffff
mov cl, byte [eax + esi]
lea eax, [eax - 1]
xor cl, byte [eax + 1]
xor cl, dl
dec edx
mov byte [eax + 1], cl
test edx, edx
jg 0x494066
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005c02df
mov esp, ebp
pop ebp
ret