Function at 0x493b60
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 + 8]
push ebx
push edi
mov ebx, edx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], eax
je 0x493e26
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x108], edx
test ebx, ebx
jle 0x493bc1
nop
movzx eax, byte [edi + ecx]
inc ecx
add edx, eax
cmp ecx, ebx
jl 0x493bb0
mov dword [ebp - 0x108], edx
mov ecx, dword [ebp - 0x108]
mov eax, 0x837765f1
imul edx
push esi
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, 0x1b
imul dl
add al, cl
lea ecx, [ebx - 0x38]
mov ebx, dword [ebp - 0x114]
xor al, cl
xor esi, esi
mov byte [ebx + 7], al
call fcn.005c3e68
call fcn.005c3e68
mov byte [ebx + esi], al
inc esi
cmp esi, 7
jl 0x493bf1
mov ebx, dword [ebp - 0x110]
mov edx, 1
cmp ebx, edx
jle 0x493c33
lea ecx, [edi + 1]
or esi, 0xffffffff
lea esp, [esp]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
xor al, dl
inc edx
mov byte [ecx - 1], al
cmp edx, ebx
jl 0x493c20
xor eax, eax
jmp 0x493c40
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jl 0x493c40
mov ebx, dword [ebp - 0x114]
xor edi, edi
xor esi, esi
lea esp, [esp]
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 0x493c60
mov ecx, ebx
mov edi, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x110]
xor esi, esi
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 ecx, ecx
mov dword [ebp - 0x108], ecx
test ebx, ebx
jle 0x493d5a
jmp 0x493cf0
inc esi
and esi, 0xff
mov dl, byte [ebp + esi - 0x104]
movzx eax, dl
add ecx, eax
and ecx, 0xff
mov dword [ebp - 0x118], ecx
movzx eax, byte [ebp + ecx - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + ecx - 0x104], dl
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, dl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x104]
mov ecx, dword [ebp - 0x108]
xor byte [edi + ecx], al
inc ecx
mov dword [ebp - 0x108], ecx
cmp ecx, ebx
mov ecx, dword [ebp - 0x118]
jl 0x493cf0
mov ecx, dword [ebp - 0x10c]
mov edx, 7
push 0
call fcn.00492f70
mov eax, ebx
add esp, 4
cdq
sub eax, edx
xor edx, edx
mov esi, eax
sar esi, 1
test esi, esi
jle 0x493d9a
lea ebx, [edi + esi]
mov al, byte [ebx + edx]
mov cl, byte [edi + edx]
mov byte [edi + edx], al
mov byte [ebx + edx], cl
add edx, 2
cmp edx, esi
jl 0x493d81
mov ebx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
mov edx, 1
mov dword [ebp - 0x108], edx
mov al, byte [eax + 8]
xor byte [edi], al
cmp ebx, edx
jle 0x493e10
mov esi, dword [ebp - 0x110]
inc edi
or eax, 0xffffffff
mov edi, edi
movzx eax, byte [edi + eax]
xor byte [edi], al
mov eax, edx
mov cl, byte [edi]
and eax, reloc.WS2_32.dll_ntohs
jns 0x493dd6
dec eax
or eax, 0xfffffff0
inc eax
mov ebx, dword [ebp - 0x10c]
mov bl, byte [eax + ebx + 8]
mov eax, edx
cdq
xor bl, cl
mov ecx, 0x14
mov byte [edi], bl
idiv ecx
mov eax, dword [ebp + 0x10]
movzx eax, byte [edx + eax]
mov edx, dword [ebp - 0x108]
xor al, bl
xor al, dl
inc edx
mov byte [edi], al
inc edi
mov dword [ebp - 0x108], edx
lea eax, [ecx - 0x15]
cmp edx, esi
jl 0x493dc0
mov ecx, dword [ebp - 0x10c]
mov edx, 7
push 0
call fcn.00492fc0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005c02df
mov esp, ebp
pop ebp
ret