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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0xa
lea eax, [ebp - 0x43]
mov ecx, 7
mov edx, dword [ebp - 4]
call fcn.00408bcc
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xc]
jae 0x583052
mov eax, dword [ebp - 0x18]
call fcn.004cc9f0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, 4
call fcn.004cc9f0
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x43]
shl eax, 0x10
xor edx, edx
mov dl, byte [ebp - 0x42]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp - 0x41]
or eax, edx
mov dword [ebp - 0x24], eax
xor eax, eax
mov al, byte [ebp - 0x40]
shl eax, 0x18
xor edx, edx
mov dl, byte [ebp - 0x3f]
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [ebp - 0x3e]
shl edx, 8
or eax, edx
xor edx, edx
mov dl, byte [ebp - 0x3d]
or eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jb 0x582f6b
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x24]
and eax, 0xffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0xff
xor eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x885e80]
shl eax, 4
add eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov dword [ebp + edx*4 - 0x70], eax
mov eax, dword [ebp - 0x10]
shr eax, 7
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
shr eax, 0xf
mov edx, dword [ebp - 0x10]
shl edx, 0x11
or eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
shl eax, 0x11
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
inc dword [ebp - 0x30]
dec dword [ebp - 0x48]
jne 0x582f13
mov dword [ebp - 0x34], 9
mov eax, dword [ebp - 0x34]
xor edx, edx
div dword [ebp - 0x2c]
mov edx, dword [ebp + edx*4 - 0x70]
mov eax, dword [ebp - 0x20]
call fcn.00582d7c
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x34], 5
jne 0x58300c
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
and al, 0xff
mov edx, dword [ebp - 4]
xor al, byte [edx]
mov byte [ebp - 0x43], al
mov eax, dword [ebp - 0x3c]
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 4]
xor al, byte [edx + 1]
mov byte [ebp - 0x42], al
mov al, byte [ebp - 0x3c]
mov edx, dword [ebp - 4]
xor al, byte [edx + 2]
mov byte [ebp - 0x41], al
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
and al, 0xff
mov edx, dword [ebp - 4]
xor al, byte [edx + 3]
mov byte [ebp - 0x40], al
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and al, 0xff
mov edx, dword [ebp - 4]
xor al, byte [edx + 4]
mov byte [ebp - 0x3f], al
mov eax, dword [ebp - 0x1c]
shr eax, 8
and al, 0xff
mov edx, dword [ebp - 4]
xor al, byte [edx + 5]
mov byte [ebp - 0x3e], al
mov al, byte [ebp - 0x1c]
mov edx, dword [ebp - 4]
xor al, byte [edx + 6]
mov byte [ebp - 0x3d], al
dec dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xffffffff
jne 0x582f72
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
call fcn.004cca64
mov eax, dword [ebp - 0x18]
add eax, 4
mov edx, dword [ebp - 0x1c]
call fcn.004cca64
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 2
add dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xc]
jb 0x582ea5
mov esp, ebp
pop ebp
ret