Function at 0x4adf90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x24]
jne 0x4adfb3
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
test esi, esi
js 0x4ae2fe
test ebx, ebx
js 0x4ae2fe
je 0x4adfd6
xor edx, edx
mov eax, Ordinal_1
div ebx
cmp esi, eax
jg 0x4ae2fe
mov ecx, esi
imul ecx, ebx
mov dword [esp + 0x28], ecx
test ecx, ecx
js 0x4ae2fe
test ebp, ebp
js 0x4ae2fe
je 0x4ae002
xor edx, edx
mov eax, Ordinal_1
div ebp
cmp ecx, eax
jg 0x4ae2fe
mov eax, ecx
imul eax, ebp
push eax
call fcn.005b7d4f
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4ae2fe
push edi
mov edi, dword [esp + 0x24]
test ebp, ebp
jle 0x4ae2e9
mov eax, dword [esp + 0x28]
lea edx, [esi - 0xa]
mov esi, edi
mov dword [esp + 0x14], edi
lea edx, [edx + eax*8]
imul eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp edx, 0x19
ja case.default.0x4ae060
movzx ecx, byte [edx + 0x4ae354]
jmp dword [ecx*4 + 0x4ae320]
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
sub edx, 1
mov cl, byte [esi]
mov byte [eax], cl
lea esi, [esi + 1]
mov byte [eax + 1], 0xff
lea eax, [eax + 2]
jns 0x4ae072
jmp 0x4ae2be
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 1]
mov byte [eax + 1], cl
lea eax, [eax + 3]
mov byte [eax - 3], cl
jns 0x4ae095
jmp 0x4ae2be
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
nop dword [eax + eax]
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 1]
mov byte [eax + 1], cl
lea eax, [eax + 4]
mov byte [eax - 4], cl
mov byte [eax - 1], 0xff
jns 0x4ae0c0
jmp 0x4ae2be
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
nop word [eax + eax]
sub edx, 1
mov cl, byte [esi]
mov byte [eax], cl
lea esi, [esi + 2]
lea eax, [eax + 1]
jns 0x4ae0f0
jmp 0x4ae2be
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
nop
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 2]
mov byte [eax + 1], cl
lea eax, [eax + 3]
mov byte [eax - 3], cl
jns 0x4ae110
jmp 0x4ae2be
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 2]
mov byte [eax + 1], cl
lea eax, [eax + 4]
mov byte [eax - 4], cl
movzx ecx, byte [esi - 1]
mov byte [eax - 1], cl
jns 0x4ae136
jmp 0x4ae2be
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
sub edx, 1
movzx ecx, byte [esi]
mov byte [eax], cl
lea esi, [esi + 3]
movzx ecx, byte [esi - 2]
lea eax, [eax + 4]
mov byte [eax - 3], cl
movzx ecx, byte [esi - 1]
mov byte [eax - 2], cl
mov byte [eax - 1], 0xff
jns 0x4ae163
jmp 0x4ae2be
lea edi, [ebx - 1]
test edi, edi
js case.0x4ae060.3
nop word [eax + eax]
movzx ecx, byte [esi + 1]
lea esi, [esi + 3]
imul edx, ecx, 0x96
lea eax, [eax + 1]
movzx ecx, byte [esi - 1]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 3]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 1], dl
jns 0x4ae1a0
jmp 0x4ae2be
lea edi, [ebx - 1]
test edi, edi
js case.0x4ae060.3
nop dword [eax]
movzx ecx, byte [esi + 1]
lea esi, [esi + 3]
imul edx, ecx, 0x96
lea eax, [eax + 2]
movzx ecx, byte [esi - 1]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 3]
imul ecx, ecx, 0x4d
mov byte [eax - 1], 0xff
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 2], dl
jns 0x4ae1e0
jmp 0x4ae2be
lea edi, [ebx - 1]
test edi, edi
js case.0x4ae060.3
movzx ecx, byte [esi + 1]
lea esi, [esi + 4]
imul edx, ecx, 0x96
lea eax, [eax + 1]
movzx ecx, byte [esi - 2]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 4]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 1], dl
jns 0x4ae221
jmp 0x4ae2be
lea edi, [ebx - 1]
test edi, edi
js case.0x4ae060.3
nop word [eax + eax]
movzx ecx, byte [esi + 1]
lea esi, [esi + 4]
imul edx, ecx, 0x96
lea eax, [eax + 2]
movzx ecx, byte [esi - 2]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 4]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 2], dl
mov cl, byte [esi - 1]
mov byte [eax - 1], cl
jns 0x4ae260
jmp 0x4ae2be
lea edx, [ebx - 1]
test edx, edx
js 0x4ae2be
nop dword [eax]
sub edx, 1
movzx ecx, byte [esi]
mov byte [eax], cl
lea esi, [esi + 4]
movzx ecx, byte [esi - 3]
lea eax, [eax + 3]
mov byte [eax - 2], cl
movzx ecx, byte [esi - 2]
mov byte [eax - 1], cl
jns 0x4ae2a0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esi, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
sub ebp, 1
jne 0x4ae050
mov edi, dword [esp + 0x24]
push edi
call fcn.005b7d34
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push dword [esp + 0x20]
call fcn.005b7d34
add esp, 4
mov dword [0x655470], 0x5fa7ac
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x10
ret