Function at 0x49c4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
cmp edi, 0x20
jb 0x49c5a7
cmp edi, ebp
jb 0x49c5af
lea eax, [edi - 0x20]
cmp eax, ebp
jae 0x49c5af
cmp ebx, 0x10
jb 0x49c629
mov dword [esp], ebx
nop word [eax + eax]
push edx
lea eax, [esp + 0xc]
push eax
push edi
call dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [edi]
xor ecx, dword [esp + 8]
mov dword [ebp], ecx
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 4]
xor ecx, dword [esp + 0xc]
mov dword [ebp + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [edi + 8]
xor ecx, dword [esp + 0x10]
mov dword [ebp + 8], ecx
mov dword [esi + 8], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [edi + 0xc]
add edi, 0x10
xor ecx, dword [esp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [esi + 0xc], eax
mov eax, dword [esp]
mov ecx, dword [esp + 0x40]
add ebp, 0x10
add eax, 0xfffffff0
cmp eax, 0xf
mov dword [esp], eax
ja 0x49c530
and ebx, 0xf
test ebx, ebx
jne 0x49c631
jmp 0x49c73d
cmp edi, ebp
jae 0x49c51b
cmp ebx, 0x10
jb 0x49c615
mov eax, ebx
mov dword [esp], esi
nop dword [eax]
mov dword [esp + 4], edi
push edx
push ebp
push edi
mov edi, eax
call dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, edx
add esp, 0xc
mov edx, dword [esp]
mov eax, dword [edx]
xor dword [ebp], eax
mov eax, dword [edx + 4]
xor dword [ebp + 4], eax
mov eax, dword [edx + 8]
xor dword [ebp + 8], eax
mov eax, dword [edx + 0xc]
mov edx, ecx
xor dword [ebp + 0xc], eax
mov eax, edi
add ebp, 0x10
mov ecx, dword [esp + 4]
add eax, 0xfffffff0
cmp eax, 0xf
lea edi, [ecx + 0x10]
mov dword [esp], ecx
ja 0x49c5c0
mov ecx, dword [esp + 0x40]
and ebx, 0xf
lea eax, [edi - 0x10]
jmp 0x49c617
mov eax, esi
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
test ebx, ebx
je 0x49c73d
mov eax, 0xfffffff0
sub eax, edi
mov dword [esp + 4], eax
mov eax, edi
neg eax
mov dword [esp], eax
nop word cs:[eax + eax]
nop dword [eax]
push edx
lea eax, [esp + 0xc]
push eax
push edi
call ecx
add esp, 0xc
xor ecx, ecx
mov eax, 0x10
nop word cs:[eax + eax]
nop dword [eax]
mov dh, byte [esi + ecx]
mov dl, byte [edi + ecx]
dec eax
xor dh, byte [esp + ecx + 8]
mov byte [ebp + ecx], dh
mov byte [esi + ecx], dl
inc ecx
cmp ecx, 0xf
ja 0x49c68c
cmp ecx, ebx
jb 0x49c670
cmp ebx, 0x10
jbe 0x49c6ad
add dword [esp + 4], 0xfffffff0
add dword [esp], 0xfffffff0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
add ebx, 0xfffffff0
add edi, 0x10
add ebp, 0x10
jmp 0x49c650
cmp ecx, 0xf
ja 0x49c73d
mov ebp, 0x10
sub ebp, ecx
cmp ebp, 0x20
jb 0x49c730
lea edx, [esi + ecx]
lea ebx, [edi + 0x10]
cmp edx, ebx
jae 0x49c6d8
mov ebx, ecx
lea edx, [esi + 0x10]
sub ebx, dword [esp]
cmp ebx, edx
jb 0x49c730
and eax, 0xffffffe0
mov edx, 0x10
mov dword [esp], ebp
mov ebx, ecx
lea ebp, [esi + ecx + 0x10]
sub edx, ecx
add eax, ecx
mov ecx, dword [esp]
sub ebx, dword [esp + 4]
and edx, 0xffffffe0
and ecx, 0xffffffe0
nop word [eax + eax]
movups xmm0, xmmword [ebx - 0x10]
movups xmm1, xmmword [ebx]
add ebx, 0x20
movups xmmword [ebp - 0x10], xmm0
movups xmmword [ebp], xmm1
add ebp, 0x20
add edx, 0xffffffe0
jne 0x49c700
cmp dword [esp], ecx
mov ecx, eax
je 0x49c73d
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
mov byte [esi + ecx], al
inc ecx
cmp ecx, 0x10
jne 0x49c730
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret