Function at 0x410c70
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 0x410c95
xor eax, eax
jmp 0x410ee1
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 0x410cc6
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jae 0x410ce6
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
and ecx, 0xfe
cmp ecx, 0xe8
jne 0x410ce4
jmp 0x410ce6
jmp 0x410cbd
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 0x410cfc
jmp 0x410ead
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 3
jbe 0x410d14
mov dword [ebp - 4], 0
jmp 0x410d85
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 0x410d85
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x45891c]
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 + 0x458914]
test eax, eax
je 0x410d63
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x410d63
movzx edx, byte [ebp - 0x15]
cmp edx, 0xff
jne 0x410d85
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 0x410ca5
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 4]
test edx, edx
je 0x410da9
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 4]
cmp ecx, 0xff
jne 0x410e91
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 0x410deb
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
jmp 0x410df9
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 0x410e01
jmp 0x410e51
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x45891c]
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 0x410e37
movzx ecx, byte [ebp - 0x25]
cmp ecx, 0xff
je 0x410e37
jmp 0x410e51
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 0x410dd7
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 0x410ea8
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 0x410ca5
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
jbe 0x410ec5
mov dword [ebp - 0x2c], 0
jmp 0x410ed6
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