Function at 0x424170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
mov esi, dword [edi]
mov ebp, dword [edi + 4]
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], edx
and byte [esi], 0xf8
and byte [esi + 1], 0xfc
and byte [esi + 2], 0xf8
and byte [ebp], 0xf8
and byte [ebp + 1], 0xfc
and byte [ebp + 2], 0xf8
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
mov dh, byte [ebp + 2]
shl cx, 5
or cx, ax
shr dh, 3
mov al, byte [esi + 2]
shl cx, 3
shr al, 3
movzx eax, al
or cx, ax
movzx eax, cx
movzx ecx, byte [ebp]
shl cx, 5
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp + 1]
or cx, ax
movzx eax, dh
shl cx, 3
or cx, ax
movzx edx, cx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
cmp cx, dx
jae 0x42421a
movzx eax, cx
mov dword [esp + 0x28], eax
mov eax, esi
movzx ecx, dx
mov esi, ebp
mov dword [edi], ebp
mov ebp, eax
mov dword [esp + 0x1c], ecx
mov dword [edi + 4], eax
lea ecx, [esp + 0x50]
xor eax, eax
sub esi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], esi
sub ebp, ecx
nop dword [eax]
lea ebx, [esp + 0x50]
add ebx, eax
mov cl, byte [ebx + esi]
mov al, byte [ebx + ebp]
movzx esi, al
mov byte [ebx + 4], al
mov eax, 0xaaaaaaab
movzx edi, cl
mov byte [ebx], cl
lea ecx, [esi + edi*2]
mul ecx
lea ecx, [edi + esi*2]
mov eax, 0xaaaaaaab
mov esi, dword [esp + 0x40]
shr edx, 1
mov byte [ebx + 8], dl
mul ecx
mov eax, dword [esp + 0x20]
inc eax
shr edx, 1
mov byte [ebx + 0xc], dl
mov dword [esp + 0x20], eax
cmp eax, 3
jl 0x424230
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x6c], eax
jle 0x424386
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
nop dword [eax + eax]
test edx, edx
jle 0x424370
shl eax, 3
mov esi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
nop dword [eax]
movzx eax, byte [esi]
or ebp, 0xffffffff
movzx ecx, byte [esi + 1]
xor ebx, ebx
mov dword [esp + 0x44], eax
movzx eax, byte [esi + 2]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
movzx eax, byte [esp + ebx*4 + 0x50]
mov edx, esi
sub edx, eax
movzx eax, byte [esp + ebx*4 + 0x51]
sub ecx, eax
imul edx, edx
movzx eax, byte [esp + ebx*4 + 0x52]
imul ecx, ecx
shl edx, 2
shl ecx, 4
add edx, ecx
mov ecx, dword [esp + 0x48]
sub ecx, eax
movzx eax, byte [esp + 0x13]
imul ecx, ecx
add edx, ecx
movzx ecx, bl
cmp edx, ebp
mov edi, edx
cmovae ecx, eax
cmovae edi, ebp
mov al, cl
inc ebx
mov ecx, dword [esp + 0x4c]
mov ebp, edi
mov byte [esp + 0x13], al
cmp ebx, 4
jl 0x4242e0
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add dword [esp + 0x20], edi
add esi, 4
mov byte [esp + 0x13], al
movzx eax, al
shl eax, cl
add ecx, 2
or dword [esp + 0x14], eax
sub dword [esp + 0x38], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
jne 0x4242c0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x68]
inc eax
add ecx, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
cmp eax, dword [esp + 0x6c]
jl 0x4242a0
mov edi, dword [esp + 0x64]
lea ebx, [esp + 0x58]
lea ebp, [esp + 0x5c]
mov esi, 3
mov edx, dword [edi]
sub ebx, edx
mov edi, dword [edi + 4]
sub edi, edx
sub ebp, edx
movzx ecx, byte [edi + edx]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
add ecx, eax
mov byte [edx + ebp - 1], 0
shr ecx, 1
mov byte [ebx + edx - 1], cl
sub esi, 1
jne 0x4243a2
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x38], edx
cmp dword [esp + 0x6c], ecx
jle 0x4244d5
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x18]
nop dword [eax]
xor ebp, ebp
mov dword [esp + 0x40], ebp
test eax, eax
jle 0x4244bf
mov edi, ebx
mov dword [esp + 0x3c], ebx
or esi, 0xffffffff
cmp byte [edi + 3], 0x7f
ja 0x424407
mov al, 3
xor esi, esi
mov byte [esp + 0x13], al
jmp 0x424485
movzx eax, byte [edi + 1]
xor ebx, ebx
movzx ebp, byte [edi]
mov dword [esp + 0x4c], eax
movzx eax, byte [edi + 2]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
movzx ecx, byte [esp + ebx*4 + 0x50]
mov eax, ebp
sub eax, ecx
mov edx, edi
movzx ecx, byte [esp + ebx*4 + 0x51]
sub edx, ecx
imul eax, eax
movzx ecx, byte [esp + ebx*4 + 0x52]
imul edx, edx
shl eax, 2
shl edx, 4
add eax, edx
mov edx, dword [esp + 0x48]
sub edx, ecx
imul edx, edx
add eax, edx
cmp eax, esi
jae 0x42446b
mov esi, eax
mov al, bl
cmp ebx, 1
jle 0x424463
mov byte [esp + 0x13], al
jmp 0x42446f
xor al, 1
mov byte [esp + 0x13], al
jmp 0x42446f
mov al, byte [esp + 0x13]
inc ebx
cmp ebx, 3
jl 0x424420
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x38]
add ecx, esi
movzx eax, al
mov dword [esp + 0x64], ecx
add edi, 4
lea ecx, [edx*4]
mov dword [esp + 0x3c], edi
add ecx, ebp
inc ebp
add ecx, ecx
mov dword [esp + 0x40], ebp
shl eax, cl
or dword [esp + 0x24], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
cmp ebp, eax
jl 0x4243f4
mov ebx, dword [esp + 0x18]
inc edx
add ebx, 0x10
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ebx
cmp edx, dword [esp + 0x6c]
jl 0x4243e0
cmp dword [esp + 0x20], ecx
ja 0x424507
cmp byte [esp + 0x74], 0
jne 0x424507
mov eax, dword [esp + 0x14]
mov ecx, eax
mov edi, dword [esp + 0x28]
mov edx, eax
mov ebx, eax
mov ax, di
shr ax, 8
movzx eax, ax
mov dword [esp + 0x3c], eax
movzx eax, di
mov edi, dword [esp + 0x1c]
jmp 0x42452e
mov eax, dword [esp + 0x24]
mov ecx, eax
mov edi, dword [esp + 0x1c]
mov edx, eax
mov ebx, eax
mov dword [esp + 0x14], eax
mov ax, di
shr ax, 8
movzx eax, ax
mov dword [esp + 0x3c], eax
movzx eax, di
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
add esi, 4
shr ecx, 0x18
mov ax, di
shr ebx, 8
shr edx, 0x10
shr ax, 8
movzx eax, ax
mov dword [esp + 0x64], eax
movzx eax, di
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], eax
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov byte [edi], cl
mov ecx, dword [esp + 0x64]
mov byte [edi + 1], cl
mov ecx, dword [esp + 0x40]
mov byte [edi + 2], cl
mov ecx, dword [esp + 0x3c]
mov byte [edi + 3], cl
mov ecx, dword [esp + 0x14]
mov byte [esi], cl
mov ecx, dword [esp + 0x38]
mov byte [esi + 1], bl
pop edi
pop esi
pop ebp
mov byte [eax + 2], dl
mov byte [eax + 3], cl
pop ebx
add esp, 0x50
ret