Function at 0x424c80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
and ecx, 7
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 5
jae 0x424ca5
xor eax, eax
jmp 0x424ef1
mov edx, dword [ebp + 0x10]
add edx, 5
mov dword [ebp + 0x10], edx
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx - 4]
mov dword [ebp - 0x14], eax
jmp 0x424cd6
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jae 0x424cf6
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
and ecx, 0xfe
cmp ecx, 0xe8
jne 0x424cf4
jmp 0x424cf6
jmp 0x424ccd
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x424d0c
jmp 0x424ebd
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
jbe 0x424d24
mov dword [ebp - 4], 0
jmp 0x424d95
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov edx, dword [ebp - 4]
shl edx, cl
and edx, 7
mov dword [ebp - 4], edx
je 0x424d95
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x435570]
mov edx, 4
sub edx, ecx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax + edx]
mov byte [ebp - 0x15], cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x435568]
test eax, eax
je 0x424d73
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x424d73
movzx edx, byte [ebp - 0x15]
cmp edx, 0xff
jne 0x424d95
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
shl ecx, 1
and ecx, 7
or ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x424cb5
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 4]
test edx, edx
je 0x424db9
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 4]
cmp ecx, 0xff
jne 0x424ea1
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 4]
shl eax, 0x18
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 3]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 2]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 1]
or eax, edx
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x18], 0
je 0x424dfb
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x424e09
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 4], 0
jne 0x424e11
jmp 0x424e61
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x435570]
shl ecx, 3
mov dword [ebp - 0x24], ecx
mov ecx, 0x18
sub ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
shr edx, cl
mov byte [ebp - 0x25], dl
movzx eax, byte [ebp - 0x25]
test eax, eax
je 0x424e47
movzx ecx, byte [ebp - 0x25]
cmp ecx, 0xff
je 0x424e47
jmp 0x424e61
mov ecx, 0x20
sub ecx, dword [ebp - 0x24]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
jmp 0x424de7
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
and eax, 1
sub eax, 1
not eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 4], al
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], dl
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], cl
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 1], cl
mov edx, dword [ebp - 8]
add edx, 5
mov dword [ebp - 8], edx
jmp 0x424eb8
mov eax, dword [ebp - 4]
shl eax, 1
and eax, 7
or eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x424cb5
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
jbe 0x424ed5
mov dword [ebp - 0x2c], 0
jmp 0x424ee6
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov eax, dword [ebp - 4]
shl eax, cl
and eax, 7
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret