Function at 0x4a4920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
test ebx, ebx
je 0x4a4962
nop
test edi, edi
je 0x4a4962
movzx eax, byte [ecx + edi]
xor al, byte [esi]
mov byte [edx], al
mov eax, ebx
add esi, 1
add edx, 1
add edi, 1
and edi, 0xf
cmp ebx, 1
lea ebx, [ebx - 1]
jne 0x4a4940
mov dword [ebp - 0x10], edi
mov edi, esi
mov esi, edx
mov eax, dword [ebp + 0x18]
push dword [eax + 0xc]
call fcn.0060fcd5
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, esi
cmp ebx, 0x10
jae 0x4a4b6e
mov dword [ebp - 0x20], edi
test ebx, ebx
je 0x4a4c3d
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ecx
xorps xmm0, xmm0
mov esi, dword [ebp + 0x1c]
movups xmmword [esi], xmm0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push esi
push esi
call dword [ebp + 0x24]
add esp, 0x14
mov edi, dword [ebp - 0x18]
lea eax, [edi + 1]
push eax
call fcn.0060fcd5
mov edx, dword [ebp + 0x18]
add esp, 4
mov dword [edx + 0xc], eax
inc edi
jne 0x4a4a4f
movzx eax, byte [edx + 0xb]
add eax, 1
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
mov eax, dword [ebp - 0x14]
cmp eax, 0x20
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
jb 0x4a4c4b
mov ecx, eax
mov ebx, dword [ebp - 0x10]
lea eax, [edx + ebx]
add ecx, ebx
add edx, ecx
lea esi, [edi + ecx]
add ecx, dword [ebp + 0x1c]
cmp eax, esi
lea esi, [edi + ebx]
setb byte [ebp - 0x18]
cmp esi, edx
mov esi, dword [ebp + 0x1c]
setb byte [ebp - 0x24]
cmp eax, ecx
lea ecx, [esi + ebx]
setb al
cmp ecx, edx
setb cl
mov dl, byte [ebp - 0x24]
test byte [ebp - 0x18], dl
jne 0x4a4c45
and al, cl
jne 0x4a4c45
mov ebx, dword [ebp - 0x14]
and ebx, 0xffffffe0
lea eax, [ebx - 0x20]
mov ecx, eax
shr ecx, 5
add ecx, 1
test eax, eax
mov dword [ebp - 0x18], ecx
je 0x4a4c53
mov eax, esi
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
lea esi, [ecx + edx + 0x30]
mov ecx, edi
lea edi, [eax + edx + 0x30]
lea eax, [ecx + edx]
add eax, 0x30
mov ecx, ebx
mov ebx, dword [ebp - 0x24]
and ecx, 0xfffffffe
neg ecx
xor edx, edx
nop dword [eax + eax]
movups xmm0, xmmword [eax + edx - 0x30]
movups xmm1, xmmword [eax + edx - 0x20]
movups xmm2, xmmword [edi + edx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + edx - 0x20]
xorps xmm0, xmm1
movups xmmword [esi + edx - 0x30], xmm2
movups xmmword [esi + edx - 0x20], xmm0
movups xmm0, xmmword [eax + edx - 0x10]
movups xmm1, xmmword [eax + edx]
movups xmm2, xmmword [edi + edx - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [edi + edx]
xorps xmm0, xmm1
movups xmmword [esi + edx - 0x10], xmm2
movups xmmword [esi + edx], xmm0
add edx, 0x40
add ecx, 2
jne 0x4a4af0
jmp 0x4a4c55
shl ebx, 4
mov edx, dword [ebp - 0x14]
sub edx, ebx
add edi, ebx
mov eax, dword [ebp - 0x20]
add eax, ebx
cmp edx, 0xf
mov ecx, edi
mov ebx, edx
mov edi, eax
jbe 0x4a4985
mov dword [ebp - 0x14], ebx
mov eax, ebx
shr eax, 4
mov esi, dword [ebp - 0x18]
mov ebx, esi
neg ebx
add esi, eax
mov edx, 0
cmovb esi, edx
cmovae ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push ecx
mov dword [ebp - 0x20], edi
push edi
mov edi, ecx
call dword [ebp + 0x24]
add esp, 0x14
push esi
call fcn.0060fcd5
mov edx, dword [ebp + 0x18]
add esp, 4
mov dword [edx + 0xc], eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x4a4b50
movzx eax, byte [edx + 0xb]
add eax, 1
mov byte [edx + 0xb], al
shr eax, 8
movzx ecx, byte [edx + 0xa]
add ecx, eax
mov byte [edx + 0xa], cl
shr ecx, 8
movzx eax, byte [edx + 9]
add eax, ecx
mov byte [edx + 9], al
shr eax, 8
movzx ecx, byte [edx + 8]
add ecx, eax
mov byte [edx + 8], cl
shr ecx, 8
movzx eax, byte [edx + 7]
add eax, ecx
mov byte [edx + 7], al
shr eax, 8
movzx ecx, byte [edx + 6]
add ecx, eax
mov byte [edx + 6], cl
shr ecx, 8
movzx eax, byte [edx + 5]
add eax, ecx
mov byte [edx + 5], al
shr eax, 8
movzx ecx, byte [edx + 4]
add ecx, eax
mov byte [edx + 4], cl
shr ecx, 8
movzx eax, byte [edx + 3]
add eax, ecx
mov byte [edx + 3], al
shr eax, 8
movzx ecx, byte [edx + 2]
add ecx, eax
mov byte [edx + 2], cl
shr ecx, 8
movzx eax, byte [edx + 1]
add eax, ecx
mov byte [edx + 1], al
add byte [edx], ah
jmp 0x4a4b50
mov ecx, dword [ebp - 0x10]
jmp 0x4a4cf1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
test al, 1
jne 0x4a4ca1
mov ebx, eax
jmp 0x4a4cbe
xor edx, edx
test byte [ebp - 0x18], 1
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x20]
je 0x4a4c88
add edx, dword [ebp - 0x10]
movups xmm0, xmmword [edi + edx]
movups xmm1, xmmword [edi + edx + 0x10]
movups xmm2, xmmword [esi + edx]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + edx + 0x10]
xorps xmm0, xmm1
mov eax, dword [ebp - 0x1c]
movups xmmword [eax + edx], xmm2
movups xmmword [eax + edx + 0x10], xmm0
mov ecx, dword [ebp - 0x10]
add ecx, ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4a4cf1
mov dword [ebp - 0x10], ecx
and eax, 0x1f
mov edx, dword [ebp - 0x1c]
test al, 1
je 0x4a4c4f
mov dword [ebp - 0x14], eax
add eax, 0xffffffff
mov ebx, dword [ebp - 0x10]
mov cl, byte [esi + ebx]
xor cl, byte [edi + ebx]
mov byte [edx + ebx], cl
add ebx, 1
mov dword [ebp - 0x10], ebx
mov ecx, ebx
mov ebx, dword [ebp - 0x14]
cmp ebx, 1
mov ebx, dword [ebp - 0x10]
je 0x4a4cf1
nop word cs:[eax + eax]
movzx ecx, byte [esi + ebx]
xor cl, byte [edi + ebx]
mov byte [edx + ebx], cl
movzx ecx, byte [esi + ebx + 1]
xor cl, byte [edi + ebx + 1]
mov byte [edx + ebx + 1], cl
lea ecx, [ebx + 2]
mov ebx, ecx
add eax, 0xfffffffe
jne 0x4a4cd0
mov eax, dword [ebp + 0x20]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret