Function at 0x49b190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
test ebx, ebx
je 0x49b668
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49b668
push esi
nop word [eax + eax]
mov ecx, dword [edi + 0x24]
test ecx, ecx
jne 0x49b611
cmp eax, 0x40
jb 0x49b611
movups xmm0, xmmword [ebx]
xor esi, esi
lea edx, [edi + 0x29]
movups xmmword [edi + 0x28], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [edi + 0x38], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [edi + 0x48], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [edi + 0x58], xmm0
nop dword [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x154], ecx
inc esi
cmp esi, 0x10
jb 0x49b200
mov eax, dword [edi + 0x14]
lea edx, [ebp - 0x14c]
mov ecx, dword [edi + 0x10]
mov ebx, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 4], ecx
mov ecx, 0x40
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
rol eax, 1
mov dword [edx + 0x34], eax
sub ecx, 1
jne 0x49b252
mov edi, dword [ebp - 0xc]
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, ecx
mov ecx, esi
xor ecx, ebx
rol edx, 5
and ecx, dword [ebp - 8]
rol dword [ebp - 8], 0x1e
xor ecx, esi
add ecx, 0x5a827999
add edx, ecx
mov ecx, ebx
xor ecx, dword [ebp - 8]
and ecx, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x154]
xor ecx, ebx
rol dword [ebp - 4], 0x1e
add edi, edx
add ecx, 0x5a827999
mov edx, edi
rol edx, 5
add edx, ecx
mov ecx, dword [ebp - 8]
xor ecx, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x150]
and ecx, edi
xor ecx, dword [ebp - 8]
add esi, edx
add ecx, 0x5a827999
rol edi, 0x1e
mov edx, esi
rol edx, 5
add edx, ecx
mov ecx, edi
xor ecx, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x14c]
and ecx, esi
xor ecx, dword [ebp - 4]
add ebx, edx
mov edx, ebx
rol esi, 0x1e
rol edx, 5
add edx, ecx
mov ecx, dword [ebp - 8]
add edx, dword [ebp + eax*4 - 0x148]
add ecx, 0x5a827999
add ecx, edx
mov edx, ecx
mov dword [ebp - 8], ecx
mov ecx, edi
rol edx, 5
xor ecx, esi
and ecx, ebx
rol ebx, 0x1e
xor ecx, edi
add edx, ecx
mov ecx, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x144]
add ecx, 0x5a827999
add ecx, edx
add eax, 5
mov dword [ebp - 4], ecx
cmp eax, 0x14
jb 0x49b273
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
cmp eax, 0x28
jae 0x49b414
mov edi, dword [ebp - 0xc]
nop
mov edx, ecx
mov ecx, esi
xor ecx, ebx
rol edx, 5
xor ecx, dword [ebp - 8]
rol dword [ebp - 8], 0x1e
add ecx, 0x6ed9eba1
add edx, ecx
mov ecx, ebx
add edx, dword [ebp + eax*4 - 0x154]
xor ecx, dword [ebp - 8]
add edi, edx
xor ecx, dword [ebp - 4]
mov edx, edi
rol dword [ebp - 4], 0x1e
add ecx, 0x6ed9eba1
rol edx, 5
add edx, ecx
mov ecx, edi
add edx, dword [ebp + eax*4 - 0x150]
xor ecx, dword [ebp - 8]
add esi, edx
xor ecx, dword [ebp - 4]
mov edx, esi
add ecx, 0x6ed9eba1
rol edx, 5
add edx, ecx
rol edi, 0x1e
add edx, dword [ebp + eax*4 - 0x14c]
mov ecx, edi
add ebx, edx
xor ecx, esi
xor ecx, dword [ebp - 4]
mov edx, ebx
rol edx, 5
add edx, ecx
rol esi, 0x1e
add edx, dword [ebp + eax*4 - 0x148]
mov ecx, dword [ebp - 8]
add ecx, 0x6ed9eba1
add ecx, edx
mov edx, ecx
mov dword [ebp - 8], ecx
mov ecx, edi
rol edx, 5
xor ecx, esi
xor ecx, ebx
rol ebx, 0x1e
add edx, ecx
mov ecx, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x144]
add ecx, 0x6ed9eba1
add ecx, edx
add eax, 5
mov dword [ebp - 4], ecx
cmp eax, 0x28
jb 0x49b350
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
cmp eax, 0x3c
jae 0x49b50e
mov edi, dword [ebp - 0x10]
mov esi, ecx
mov edx, ebx
or edx, dword [ebp - 8]
mov ecx, ebx
and ecx, dword [ebp - 8]
and edx, edi
or edx, ecx
rol esi, 5
add edx, dword [ebp + eax*4 - 0x154]
add edx, dword [ebp - 0xc]
lea ecx, [esi - 0x70e44324]
add ecx, edx
mov edx, dword [ebp - 8]
rol edx, 0x1e
mov esi, ecx
mov dword [ebp - 8], edx
or edx, dword [ebp - 4]
and edx, ebx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
and ecx, dword [ebp - 4]
or edx, ecx
rol dword [ebp - 4], 0x1e
add edx, dword [ebp + eax*4 - 0x150]
mov ecx, dword [ebp - 0xc]
add edx, edi
rol esi, 5
lea edi, [esi - 0x70e44324]
add edi, edx
mov edx, ecx
or edx, dword [ebp - 4]
mov esi, edi
and edx, dword [ebp - 8]
and ecx, dword [ebp - 4]
or edx, ecx
rol esi, 5
add edx, dword [ebp + eax*4 - 0x14c]
mov ecx, dword [ebp - 0xc]
add edx, ebx
rol ecx, 0x1e
lea ebx, [esi - 0x70e44324]
mov dword [ebp - 0xc], ecx
add ebx, edx
mov edx, ecx
or edx, edi
and ecx, edi
and edx, dword [ebp - 4]
mov esi, ebx
or edx, ecx
rol esi, 5
add edx, dword [ebp + eax*4 - 0x148]
add edx, dword [ebp - 8]
rol edi, 0x1e
lea ecx, [esi - 0x70e44324]
add ecx, edx
mov edx, edi
mov esi, ecx
mov dword [ebp - 8], ecx
or edx, ebx
rol esi, 5
and edx, dword [ebp - 0xc]
mov ecx, edi
and ecx, ebx
rol ebx, 0x1e
or edx, ecx
add edx, dword [ebp + eax*4 - 0x144]
lea ecx, [esi - 0x70e44324]
add edx, dword [ebp - 4]
add eax, 5
add ecx, edx
mov dword [ebp - 4], ecx
cmp eax, 0x3c
jb 0x49b420
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
cmp eax, 0x50
jae 0x49b5dd
mov edi, dword [ebp - 0xc]
nop word [eax + eax]
mov edx, ecx
mov ecx, esi
xor ecx, ebx
rol edx, 5
xor ecx, dword [ebp - 8]
add ecx, dword [ebp + eax*4 - 0x154]
rol dword [ebp - 8], 0x1e
add ecx, edi
lea edi, [edx - 0x359d3e2a]
add edi, ecx
mov ecx, ebx
xor ecx, dword [ebp - 8]
mov edx, edi
xor ecx, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x150]
rol dword [ebp - 4], 0x1e
add ecx, esi
rol edx, 5
lea esi, [edx - 0x359d3e2a]
add esi, ecx
mov ecx, edi
xor ecx, dword [ebp - 8]
mov edx, esi
xor ecx, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x14c]
add ecx, ebx
rol edx, 5
rol edi, 0x1e
lea ebx, [edx - 0x359d3e2a]
add ebx, ecx
mov ecx, edi
xor ecx, esi
mov edx, ebx
xor ecx, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x148]
add ecx, dword [ebp - 8]
rol edx, 5
add edx, 0xca62c1d6
rol esi, 0x1e
add ecx, edx
mov edx, ecx
mov dword [ebp - 8], ecx
mov ecx, edi
rol edx, 5
xor ecx, esi
xor ecx, ebx
rol ebx, 0x1e
add ecx, 0xca62c1d6
add ecx, dword [ebp + eax*4 - 0x144]
add eax, 5
add ecx, dword [ebp - 4]
add ecx, edx
mov dword [ebp - 4], ecx
cmp eax, 0x50
jb 0x49b520
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add dword [edi + 0x14], eax
add dword [edi + 0x18], ebx
add dword [edi + 0x10], ecx
add dword [edi + 0x1c], esi
mov eax, dword [ebp - 0xc]
add dword [edi + 0x20], eax
add dword [edi + 8], 0x200
mov ebx, dword [ebp + 8]
adc dword [edi + 0xc], 0
add ebx, 0x40
mov eax, dword [ebp + 0xc]
sub eax, 0x40
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
jmp 0x49b65f
mov esi, 0x40
sub esi, ecx
cmp eax, esi
cmovb esi, eax
lea eax, [ecx + 0x28]
push esi
add eax, edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0xc]
add ebx, esi
add dword [edi + 0x24], esi
sub eax, esi
add esp, 0xc
mov dword [ebp + 8], ebx
cmp dword [edi + 0x24], 0x40
mov dword [ebp + 0xc], eax
jne 0x49b65f
mov ecx, edi
call fcn.0049a810
add dword [edi + 8], 0x200
mov eax, dword [ebp + 0xc]
adc dword [edi + 0xc], 0
mov dword [edi + 0x24], 0
test eax, eax
jne 0x49b1c0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8