Function at 0x49fd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x90], ecx
call fcn.00499ca0
push dword [ebp + 0x10]
mov dword [ebp - 0x8c], 0
push esi
mov esi, dword [ebp - 0x98]
push esi
mov byte [ebp - 0x85], al
mov byte [ebp - 0x89], 1
call fcn.00499dc0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x49ff6f
cmp dword [ebp + 0x20], eax
je 0x49ff51
push dword [ebp + 0x18]
push edi
push esi
call fcn.00499fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49ff51
push 4
lea eax, [ebp - 0x8c]
push eax
push esi
call fcn.00499fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49ff51
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00499cc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x49ff51
push esi
call fcn.00499d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49ff51
movzx edi, byte [ebp - 0x85]
lea eax, [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x94], 1
cmp dword [ebp + 0x1c], 1
jbe 0x49fef6
push edi
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00499fc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49ff51
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00499cc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x49ff51
push esi
call fcn.00499d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49ff51
test edi, edi
je 0x49fec6
cmp edi, 0x40
jb 0x49fec6
mov ecx, edi
and ecx, 0x8000003f
jns 0x49fe64
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, edi
sub edx, ecx
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x44]
movups xmm1, xmmword [ebp + eax - 0x84]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x44], xmm1
movups xmm0, xmmword [ebp + eax - 0x34]
movups xmm1, xmmword [ebp + eax - 0x74]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x34], xmm1
movups xmm0, xmmword [ebp + eax - 0x24]
movups xmm1, xmmword [ebp + eax - 0x64]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x24], xmm1
movups xmm0, xmmword [ebp + eax - 0x14]
movups xmm1, xmmword [ebp + eax - 0x54]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x14], xmm1
add eax, 0x40
cmp eax, edx
jl 0x49fe70
cmp eax, edi
jge 0x49fee0
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x84]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x49fed0
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp + 0x1c]
jb 0x49fe04
mov esi, dword [ebp + 0x20]
lea eax, [ebp - 0x44]
cmp esi, edi
cmovae esi, edi
push esi
push eax
push dword [ebp - 0x90]
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp + 0x20]
lea ecx, [ebp - 0x89]
add dword [ebp - 0x90], esi
sub edi, esi
mov edx, 4
mov dword [ebp + 0x20], edi
mov eax, ecx
add esp, 0xc
sub edx, eax
nop
add byte [ecx], 1
jne 0x49ff3d
dec ecx
lea eax, [edx + ecx]
test eax, eax
jne 0x49ff30
mov esi, dword [ebp - 0x98]
test edi, edi
mov edi, dword [ebp - 0x9c]
jne 0x49fd78
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004a0f10
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.004a0f10
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret