Function at 0x499cd8
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xf64]
mov dword [ebp - 0xc], ecx
cmp eax, 7
ja case.default.0x499bf6
push esi
jmp dword [eax*4 + 0x499ea1]
mov ecx, dword [ebp + 8]
sub ecx, 1
js 0x499e9a
mov esi, dword [ebp + 0x10]
add esi, 2
movzx eax, byte [edi]
mov al, byte [edx + eax*4]
mov byte [esi - 2], al
movzx eax, byte [edi]
mov al, byte [edx + eax*4 + 1]
mov byte [esi - 1], al
movzx eax, byte [edi]
inc edi
sub ecx, 1
mov al, byte [edx + eax*4 + 2]
mov byte [esi], al
lea esi, [esi + 3]
jns 0x499c0f
jmp 0x499e9a
mov ecx, dword [ebp + 8]
sub ecx, 1
js 0x499e9a
mov esi, dword [ebp + 0x10]
add esi, 2
movzx eax, byte [edi]
mov al, byte [edx + eax*4 + 2]
mov byte [esi - 2], al
movzx eax, byte [edi]
mov al, byte [edx + eax*4 + 1]
mov byte [esi - 1], al
movzx eax, byte [edi]
inc edi
sub ecx, 1
mov al, byte [edx + eax*4]
mov byte [esi], al
lea esi, [esi + 3]
jns 0x499c4b
jmp 0x499e9a
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp - 8], eax
js 0x499e9a
movzx eax, cx
mov dword [ebp - 0xc], eax
movzx esi, byte [edi]
movzx eax, byte [edx + esi*4 + 1]
movzx ecx, byte [edx + esi*4 + 2]
mov dx, word [ebx + eax*4 + 0x404]
mov eax, dword [ebp - 4]
or dx, word [ebx + ecx*4 + 4]
movzx eax, byte [eax + esi*4]
or dx, word [ebx + eax*4 + 0x804]
mov eax, dword [ebp + 0xc]
xor dx, word [ebp - 0xc]
mov word [eax], dx
add eax, 2
mov edx, dword [ebp - 4]
inc edi
sub dword [ebp - 8], 1
mov dword [ebp + 0xc], eax
jns 0x499c90
jmp 0x499e9a
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp - 8], eax
js 0x499e9a
movzx esi, byte [edi]
movzx eax, byte [edx + esi*4 + 1]
movzx ecx, byte [edx + esi*4 + 2]
mov edx, dword [ebx + eax*4 + 0x404]
mov eax, dword [ebp - 4]
or edx, dword [ebx + ecx*4 + 4]
movzx eax, byte [eax + esi*4]
or edx, dword [ebx + eax*4 + 0x804]
mov eax, dword [ebp + 0xc]
xor edx, dword [ebp - 0xc]
mov dword [eax], edx
add eax, 4
mov edx, dword [ebp - 4]
inc edi
sub dword [ebp - 8], 1
mov dword [ebp + 0xc], eax
jns 0x499ced
jmp 0x499e9a
mov esi, dword [ebp + 8]
sub esi, 1
js 0x499e9a
mov ecx, dword [ebp + 0x10]
sub edi, ecx
movzx eax, byte [edi + ecx]
mov al, byte [edx + eax*4 + 3]
mov byte [ecx], al
inc ecx
sub esi, 1
jns 0x499d41
jmp 0x499e9a
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp - 8], eax
js 0x499e9a
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
movzx esi, byte [edi]
movzx eax, byte [edx + esi*4 + 2]
movzx ecx, byte [edx + esi*4 + 1]
mov edx, dword [ebx + eax*4 + 0x804]
mov eax, dword [ebp - 4]
add edx, dword [ebx + ecx*4 + 0x404]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [eax + esi*4]
add edx, dword [ebx + eax*4 + 4]
mov al, byte [ebx + edx*4 + 0xc04]
mov edx, dword [ebp - 4]
mov byte [ecx], al
inc ecx
inc edi
mov dword [ebp + 0xc], ecx
sub dword [ebp - 8], 1
jns 0x499d6b
jmp 0x499e9a
movzx eax, byte [ebx + 0xf70]
add eax, 8
imul ecx, eax, 0x18
movzx eax, byte [ebx + 0xf71]
imul eax, eax, 0x6c
add ecx, eax
movzx eax, byte [ebx + 0xf72]
imul eax, eax, 0x3c
xor bl, bl
mov bh, 0x80
add ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 8
sub eax, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], eax
js 0x499e9a
mov esi, dword [ebp + 0x10]
movzx eax, byte [edi]
movzx edx, byte [edx + eax*4 + 3]
mov al, bh
or al, bl
cmp edx, dword [ebp - 0xc]
movzx ecx, al
movzx eax, bl
cmovae ecx, eax
shr bh, 1
mov bl, cl
jne 0x499e16
mov byte [esi], bl
mov bh, 0x80
inc esi
xor bl, bl
mov edx, dword [ebp - 4]
inc edi
sub dword [ebp + 0xc], 1
jns 0x499df1
cmp bh, 0x80
jae 0x499e9a
jmp 0x499e98
movzx eax, byte [ebx + 0xf70]
add eax, 8
imul ecx, eax, 0x18
movzx eax, byte [ebx + 0xf71]
imul eax, eax, 0x6c
add ecx, eax
movzx eax, byte [ebx + 0xf72]
imul eax, eax, 0x3c
xor bl, bl
mov bh, 1
add ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 8
sub eax, 1
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], eax
js 0x499e9a
mov esi, dword [ebp + 0x10]
movzx eax, byte [edi]
movzx edx, byte [edx + eax*4 + 3]
mov al, bh
or al, bl
cmp edx, dword [ebp - 0xc]
movzx ecx, al
movzx eax, bl
cmovae ecx, eax
mov bl, cl
add bh, bh
jne 0x499e89
mov byte [esi], bl
inc esi
xor bl, bl
inc bh
mov edx, dword [ebp - 4]
inc edi
sub dword [ebp + 0xc], 1
jns 0x499e64
cmp bh, 1
jbe 0x499e9a
mov byte [esi], bl
pop esi
pop edi
pop ebx
leave
ret