Function at 0x4edb7c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
mov edi, eax
cmp dword [ebp - 8], 0
jge 0x4edb9b
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jge 0x4edba6
xor eax, eax
mov dword [ebp - 4], eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x2c]
sub eax, dword [ebp - 8]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.0042b3b0
dec eax
mov dword [ebp - 0x24], eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x20]
sub eax, dword [ebp - 4]
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
pop edx
call fcn.0042b3b0
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0xc]
mov eax, edi
call fcn.004e24c4
test al, al
je 0x4ededb
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004e24c4
test al, al
je 0x4ededb
cmp dword [ebp + 8], 0x1fffffff
je 0x4edd0a
mov eax, dword [ebp - 0x28]
test eax, eax
jl 0x4ededb
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 4]
imul dword [ebp - 0x2c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x34]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jl 0x4edcf9
inc eax
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
lea esi, [eax + ecx*4]
mov eax, dword [ebp - 8]
add eax, ecx
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax*4]
xor eax, eax
mov al, byte [esi + 2]
xor edx, edx
mov dl, byte [esi]
add eax, edx
xor edx, edx
mov dl, byte [esi + 1]
add eax, edx
mov esi, 3
xor edx, edx
div esi
push eax
mov eax, 0xff
pop edx
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x1c]
movzx esi, byte [ebp - 0x20]
sub edx, esi
imul edx, eax
movzx esi, byte [ebp - 0x20]
shl esi, 8
add edx, esi
shr edx, 8
mov byte [ebx + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x1b]
movzx esi, byte [ebp - 0x1f]
sub edx, esi
imul edx, eax
movzx esi, byte [ebp - 0x1f]
shl esi, 8
add edx, esi
shr edx, 8
mov byte [ebx + 1], dl
xor edx, edx
mov dl, byte [ebp - 0x1a]
movzx esi, byte [ebp - 0x1e]
sub edx, esi
imul edx, eax
xor eax, eax
mov al, byte [ebp - 0x1e]
shl eax, 8
add edx, eax
shr edx, 8
mov byte [ebx], dl
inc ecx
dec dword [ebp - 0x3c]
jne 0x4edc63
inc dword [ebp - 0x34]
dec dword [ebp - 0x38]
jne 0x4edc37
jmp 0x4ededb
mov eax, esi
call fcn.00429330
cmp al, 7
jne 0x4eddf9
mov eax, dword [ebp - 0x28]
test eax, eax
jl 0x4ededb
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 4]
imul dword [ebp - 0x2c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x34]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jl 0x4edde8
inc eax
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*4]
mov edx, dword [ebp - 8]
add edx, ecx
mov ebx, dword [ebp - 0x10]
lea esi, [ebx + edx*4]
movzx eax, byte [eax + 3]
xor ebx, ebx
mov bl, byte [ebp - 0x1c]
mov dl, byte [esi + 2]
mov edi, edx
and edi, 0xff
sub ebx, edi
imul ebx, eax
and edx, 0xff
shl edx, 8
add ebx, edx
shr ebx, 8
mov byte [esi + 2], bl
xor ebx, ebx
mov bl, byte [ebp - 0x1b]
mov dl, byte [esi + 1]
mov edi, edx
and edi, 0xff
sub ebx, edi
imul ebx, eax
and edx, 0xff
shl edx, 8
add ebx, edx
shr ebx, 8
mov byte [esi + 1], bl
xor ebx, ebx
mov bl, byte [ebp - 0x1a]
mov dl, byte [esi]
mov edi, edx
and edi, 0xff
sub ebx, edi
imul ebx, eax
xor eax, eax
mov al, dl
shl eax, 8
add ebx, eax
shr ebx, 8
mov byte [esi], bl
inc ecx
dec dword [ebp - 0x3c]
jne 0x4edd5b
inc dword [ebp - 0x34]
dec dword [ebp - 0x38]
jne 0x4edd2f
jmp 0x4ededb
mov eax, dword [ebp - 0x28]
test eax, eax
jl 0x4ededb
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 4]
imul dword [ebp - 0x2c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
imul dword [ebp - 0x34]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jl 0x4edecf
inc eax
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
lea esi, [eax + ecx*4]
mov eax, dword [ebp - 8]
add eax, ecx
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax*4]
xor eax, eax
mov al, byte [esi + 2]
xor edx, edx
mov dl, byte [esi]
add eax, edx
xor edx, edx
mov dl, byte [esi + 1]
add eax, edx
mov esi, 3
xor edx, edx
div esi
push eax
mov eax, 0xff
pop edx
sub eax, edx
xor edx, edx
mov dl, byte [ebp - 0x1c]
movzx esi, byte [ebx + 2]
sub edx, esi
imul edx, eax
movzx esi, byte [ebx + 2]
shl esi, 8
add edx, esi
shr edx, 8
mov byte [ebx + 2], dl
xor edx, edx
mov dl, byte [ebp - 0x1b]
movzx esi, byte [ebx + 1]
sub edx, esi
imul edx, eax
movzx esi, byte [ebx + 1]
shl esi, 8
add edx, esi
shr edx, 8
mov byte [ebx + 1], dl
xor edx, edx
mov dl, byte [ebp - 0x1a]
movzx esi, byte [ebx]
sub edx, esi
imul edx, eax
xor eax, eax
mov al, byte [ebx]
shl eax, 8
add edx, eax
shr edx, 8
mov byte [ebx], dl
inc ecx
dec dword [ebp - 0x3c]
jne 0x4ede3b
inc dword [ebp - 0x34]
dec dword [ebp - 0x38]
jne 0x4ede0f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8