Function at 0x4ab1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x24
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov al, byte [esp + 0x4c]
mov edi, 2
mov edx, dword [0x56a020]
imul esi, dword [esp + 0x44]
add esi, dword [esp + 0x38]
cmp edx, 0x18
jne 0x4ab1d7
mov edi, 3
jmp 0x4ab1e1
cmp edx, 0x20
jne 0x4ab1e1
mov edi, 4
imul ebx, edi
add esi, ebx
cmp edx, 0x10
je 0x4ab420
cmp edx, 0x18
jne 0x4ab340
mov dl, byte [ecx]
test dl, dl
je 0x4ab500
add edi, edi
mov ebx, ecx
inc ecx
movsx edx, byte [ebx]
mov ebp, esi
mov eax, esi
lea ebx, [edx + edx]
add ebx, ebx
add ebx, ebx
lea edx, [edx*8 + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 4], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 8], ebp
lea esi, [esi]
mov ebp, dword [esp + 0x18]
movzx ebx, byte [ebp + 0x776880]
mov ecx, esi
sar ebx, cl
and ebx, 1
mov dl, byte [esp + 0x4c]
test dl, dl
je 0x4ab2d0
test ebx, ebx
je 0x4ab2f5
mov edx, 0x1f
mov ecx, dword [0x574e14]
movzx ebp, byte [eax]
sar ebp, 1
shl edx, cl
movzx ebx, dl
shr ebx, 1
mov dword [esp + 0x1c], edx
add ebx, ebp
movzx edx, byte [eax + 1]
mov byte [eax], bl
sar edx, 1
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
shr edx, 8
movzx edx, dl
shr edx, 1
mov ebx, dword [esp + 0x20]
add ebx, edx
movzx edx, byte [eax + 2]
mov byte [eax + 1], bl
sar edx, 1
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
shr edx, 0x10
movzx edx, dl
shr edx, 1
mov ebx, dword [esp + 0x20]
add ebx, edx
mov byte [eax + 2], bl
jmp 0x4ab2f5
test ebx, ebx
je 0x4ab2f5
mov edx, 0x1f
mov ecx, dword [0x574e14]
shl edx, cl
mov dword [esp + 0x20], edx
mov ebx, edx
shr ebx, 0x10
mov byte [eax], dl
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax + 2], bl
inc esi
add eax, 3
cmp esi, 8
jl 0x4ab240
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0x3c]
add ebp, edi
mov eax, ebp
inc ebx
cmp edx, ebx
jg 0x4ab22c
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea esi, [esi + edi*4]
mov dl, byte [ecx]
test dl, dl
jne 0x4ab204
jmp 0x4ab500
cmp edx, 0x20
jne 0x4ab500
mov dl, byte [ecx]
test dl, dl
je 0x4ab500
add edi, edi
mov eax, edi
mov ebx, ecx
inc ecx
movsx edx, byte [ebx]
mov edi, esi
mov ebp, esi
lea ebx, [edx + edx]
add ebx, ebx
add ebx, ebx
lea edx, [edx*8 + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x4c]
xor esi, esi
mov dword [esp + 8], edi
lea esi, [esi]
movzx edi, byte [ebx + 0x776880]
mov ecx, esi
sar edi, cl
and edi, 1
test al, al
je 0x4ab3d0
test edi, edi
je 0x4ab3e4
mov edi, 0xf
mov ecx, dword [0x574e14]
shl edi, cl
mov ecx, dword [ebp]
and ecx, 0xfefefe
shr ecx, 1
add edi, ecx
mov dword [ebp], edi
jmp 0x4ab3e4
test edi, edi
je 0x4ab3e4
mov edi, 0x1f
mov ecx, dword [0x574e14]
shl edi, cl
mov dword [ebp], edi
inc esi
add ebp, 4
cmp esi, 8
jl 0x4ab390
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
add edi, ecx
mov ebp, edi
inc ebx
cmp edx, ebx
jg 0x4ab383
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea esi, [esi + eax*4]
mov dl, byte [ecx]
test dl, dl
jne 0x4ab357
jmp 0x4ab500
mov dl, byte [ecx]
test dl, dl
je 0x4ab500
add edi, edi
mov dword [esp + 0x14], edi
mov edi, ecx
inc ecx
movsx eax, byte [edi]
mov edi, esi
mov edx, dword [0x574e24]
xor edx, 0xffffffff
movzx edx, dx
mov ebp, esi
lea ebx, [eax + eax]
add ebx, ebx
add ebx, ebx
lea eax, [eax*8 + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov al, byte [esp + 0x4c]
mov esi, esi
movzx edi, byte [ebx + 0x776880]
mov ecx, esi
sar edi, cl
and edi, 1
test al, al
je 0x4ab4b0
test edi, edi
je 0x4ab4c5
mov edi, 0xf
mov ecx, dword [0x574e14]
shl edi, cl
movzx ecx, word [ebp]
and ecx, edx
sar ecx, 1
add edi, ecx
mov word [ebp], di
jmp 0x4ab4c5
test edi, edi
je 0x4ab4c5
mov edi, 0x1f
mov ecx, dword [0x574e14]
shl edi, cl
mov word [ebp], di
inc esi
add ebp, 2
cmp esi, 8
jl 0x4ab470
mov eax, dword [esp + 4]
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
add edi, ecx
mov ebp, edi
inc ebx
cmp eax, ebx
jg 0x4ab460
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
lea esi, [esi + ebp*4]
mov al, byte [ecx]
test al, al
jne 0x4ab430
add esp, 0x24
pop ebx
pop ebp
pop esi
pop edi
ret