Function at 0x49efec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x49f005
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x49effe
mov ecx, esp
mov dword [ebp - 9], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 8
mov eax, dword [ebp - 9]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec dword [ebp - 0x10]
jne 0x49f01d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0049e9a8
cmp byte [ebp - 5], 0
jne 0x49f0f8
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49f050
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49f064
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 0x30]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0049eeb4
mov eax, 4
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x49f0a2
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x10
jne 0x49f045
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0x14]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49f0c5
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x49f0d6
mov eax, 4
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49f0ea
jmp 0x49f1b7
cmp byte [ebp - 5], 1
jne 0x49f1b7
mov dword [ebp - 0x10], 0xf
mov eax, 4
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49f114
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49f128
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 0x30]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0049eeb4
mov eax, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov esi, dword [ebp + 0xc]
add esi, 4
mov bl, byte [edx]
xor bl, byte [ecx]
mov byte [esi], bl
inc esi
inc ecx
inc edx
dec eax
jne 0x49f166
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x49f109
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0x14]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49f189
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x49f19a
mov eax, 4
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49f1ae
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0049ea2c
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0xc