Function at 0x49be5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x49be65
mov eax, dword [ebp - 4]
add esp, 0xfffff16c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x3e98]
push ecx
mov ecx, 0xfa0
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
test ebx, ebx
js 0x49be9d
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x49be96
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x49beb1
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.0049b820
test bl, bl
jne 0x49bf93
mov dword [ebp - 8], 0x10
lea eax, [ebp - 0x3e98]
mov dword [ebp - 0x14], eax
mov eax, 4
mov edx, dword [ebp + 0x10]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49beeb
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49bf00
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.0049bd30
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x49bf36
add dword [ebp - 0x14], 0x3e8
dec dword [ebp - 8]
jne 0x49bee0
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49bf5d
mov eax, 4
mov edx, dword [ebp + 0x10]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x49bf6f
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49bf84
jmp 0x49c05b
cmp bl, 1
jne 0x49c05b
mov dword [ebp - 8], 0xfffffff0
lea ebx, [ebp - 0x400]
mov eax, 4
mov edx, dword [ebp + 0x10]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49bfb4
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49bfc9
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.0049bd30
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x49bfff
sub ebx, 0x3e8
inc dword [ebp - 8]
jne 0x49bfa9
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x49c02a
mov eax, 4
mov ebx, dword [ebp + 0x10]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x49c03c
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0x10]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x49c051
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.0049b8a0
mov edi, dword [ebp - 0x3ea4]
mov esi, dword [ebp - 0x3ea0]
mov ebx, dword [ebp - 0x3e9c]
mov esp, ebp
pop ebp
ret 0xc