Function at 0x49a190
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10c
mov eax, dword [0x718924]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x12c]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
mov esi, dword [esp + 0x11c]
mov ecx, esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x13c]
push edi
mov edi, dword [esp + 0x124]
mov edx, edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x38], eax
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x94], 0
movups xmmword [esp + 0x6c], xmm0
mov dword [esp + 0x98], 0
movups xmmword [esp + 0x7c], xmm0
movq qword [esp + 0x8c], xmm0
nop
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x5c]
sub edx, 1
jne 0x49a220
cmp dword [esp + 0x5c], edi
jne 0x49a240
mov dword [ebp], edx
mov dword [ebx], edx
xor eax, eax
jmp 0x49a5ec
mov edx, dword [ebx]
mov ecx, 1
cmp dword [esp + ecx*4 + 0x5c], 0
jne 0x49a254
inc ecx
cmp ecx, 0xf
jbe 0x49a247
cmp edx, ecx
mov dword [esp + 0x14], ecx
mov eax, ecx
cmovae eax, edx
mov edx, 0xf
cmp dword [esp + edx*4 + 0x5c], 0
jne 0x49a270
sub edx, 1
jne 0x49a264
cmp eax, edx
mov dword [esp + 0x2c], edx
mov ebp, edx
cmovbe ebp, eax
mov dword [esp + 0x20], ebp
mov dword [ebx], ebp
mov ebp, 1
shl ebp, cl
cmp ecx, edx
jae 0x49a2a1
nop dword [eax]
sub ebp, dword [esp + ecx*4 + 0x5c]
js 0x49a5e7
inc ecx
add ebp, ebp
cmp ecx, edx
jb 0x49a290
lea ebx, [edx*4]
mov eax, dword [esp + ebx + 0x5c]
sub ebp, eax
mov dword [esp + 0x58], ebp
js 0x49a5e7
add eax, ebp
xor ecx, ecx
mov dword [esp + ebx + 0x5c], eax
mov dword [esp + 0xa0], ecx
sub edx, 1
je 0x49a2e3
xor eax, eax
nop
add ecx, dword [esp + eax + 0x60]
lea eax, [eax + 4]
mov dword [esp + eax + 0xa0], ecx
sub edx, 1
jne 0x49a2d0
mov ebp, dword [esp + 0x38]
xor ecx, ecx
nop dword [eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x49a30c
mov eax, dword [esp + edx*4 + 0x9c]
mov dword [ebp + eax*4], ecx
inc eax
mov dword [esp + edx*4 + 0x9c], eax
inc ecx
cmp ecx, edi
jb 0x49a2f0
mov eax, dword [esp + ebx + 0x9c]
xor ebp, ebp
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
mov dword [esp + 0x54], eax
mov ebx, edx
mov eax, dword [esp + 0x38]
neg ebx
mov dword [esp + 0x18], eax
xor esi, esi
mov eax, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xdc], ebp
cmp eax, dword [esp + 0x2c]
jg 0x49a5ca
lea eax, [esp + eax*4 + 0x5c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
je 0x49a5b6
mov eax, dword [esp + 0x24]
nop dword [eax + eax]
mov dword [esp + 0x48], eax
dec eax
mov dword [esp + 0x24], eax
lea eax, [edx + ebx]
cmp dword [esp + 0x14], eax
jle 0x49a497
mov edi, dword [esp + 0x2c]
mov ebx, eax
inc ecx
mov dword [esp + 0x3c], ebx
sub edi, ebx
mov dword [esp + 0x10], ecx
cmp edi, edx
mov eax, 1
cmova edi, edx
mov edx, dword [esp + 0x14]
sub edx, ebx
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x48]
jbe 0x49a3fa
mov esi, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x24]
add eax, ecx
cmp edx, edi
jae 0x49a3fa
inc edx
cmp edx, edi
jae 0x49a3fa
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x49a3fa
inc edx
sub eax, ecx
cmp edx, edi
jb 0x49a3e7
mov eax, dword [esp + 0x40]
mov ecx, edx
mov edi, 1
shl edi, cl
mov eax, dword [eax]
lea ecx, [eax + edi]
cmp ecx, 0x5a0
ja 0x49a5e7
mov esi, dword [esp + 0x4c]
lea esi, [esi + eax*8]
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xdc], esi
mov eax, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x49a480
mov eax, dword [esp + 0x20]
mov dword [esp + ecx*4 + 0x9c], ebp
mov ecx, ebx
sub ecx, eax
mov byte [esp + 0x31], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], dl
mov edx, ebp
shr edx, cl
mov ecx, dword [esp + eax*4 + 0xd8]
mov eax, esi
sub eax, ecx
sar eax, 3
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [esp + 0x10]
jmp 0x49a486
mov eax, dword [esp + 0x50]
mov dword [eax], esi
mov edx, dword [esp + 0x20]
lea eax, [edx + ebx]
cmp dword [esp + 0x14], eax
jg 0x49a3a6
mov edx, dword [esp + 0x14]
mov al, dl
mov ecx, dword [esp + 0x54]
sub al, bl
mov byte [esp + 0x31], al
mov eax, dword [esp + 0x38]
lea eax, [eax + ecx*4]
cmp dword [esp + 0x18], eax
jb 0x49a4bb
mov byte [esp + 0x30], 0xc0
jmp 0x49a511
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jae 0x49a4e9
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x30], al
jmp 0x49a511
sub ecx, eax
mov eax, dword [esp + 0x130]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x12c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov ecx, edx
mov eax, ebp
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x49a545
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
nop
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
add eax, edx
cmp eax, edi
jb 0x49a530
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test ebp, eax
je 0x49a55f
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x49a557
mov edx, dword [esp + 0x20]
xor ebp, eax
mov ecx, ebx
mov dword [esp + 0x44], ebp
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x9c]
je 0x49a5a6
dec ecx
sub ebx, edx
mov dword [esp + 0x10], ecx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x9c]
jne 0x49a582
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49a390
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jle 0x49a371
cmp dword [esp + 0x58], 0
je 0x49a239
cmp dword [esp + 0x2c], 1
je 0x49a239
mov eax, 0xfffffffb
jmp 0x49a5ec
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb998
add esp, 0x10c
ret