Function at 0x4a40e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [0x90004c]
test ecx, 0x2000000
jne 0x4a412b
test ecx, 0x200
jne 0x4a4162
push 0x4a2ac0
push edi
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push edx
push esi
call fcn.004a4920
add esp, 0x38
jmp 0x4a4908
mov edi, dword [edi]
test eax, eax
je 0x4a41af
test edi, edi
je 0x4a41af
nop word cs:[eax + eax]
nop
movzx ecx, byte [ebx + edi]
xor cl, byte [esi]
add esi, 1
mov byte [edx], cl
add edx, 1
lea ecx, [eax - 1]
add edi, 1
and edi, 0xf
je 0x4a41b1
cmp eax, 1
mov eax, ecx
jne 0x4a4140
jmp 0x4a41b1
mov dword [ebp - 0x14], esi
mov esi, dword [edi]
test eax, eax
je 0x4a44a2
test esi, esi
je 0x4a44a2
nop word [eax + eax]
movzx ecx, byte [ebx + esi]
mov edi, dword [ebp - 0x14]
xor cl, byte [edi]
add edi, 1
mov dword [ebp - 0x14], edi
mov byte [edx], cl
add edx, 1
lea ecx, [eax - 1]
add esi, 1
and esi, 0xf
je 0x4a44a4
cmp eax, 1
mov eax, ecx
jne 0x4a4180
jmp 0x4a44a4
mov ecx, eax
mov dword [ebp - 0x14], esi
mov esi, edx
mov eax, dword [ebp + 0x18]
push dword [eax + 0xc]
mov ebx, ecx
call fcn.0060fcd5
add esp, 4
cmp ebx, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov ecx, esi
jb 0x4a42d1
mov esi, dword [ebp - 0x14]
jmp 0x4a41fd
shl edi, 4
mov ebx, dword [ebp - 0x10]
sub ebx, edi
mov eax, dword [ebp - 0x18]
add eax, edi
mov esi, dword [ebp - 0x14]
add esi, edi
cmp ebx, 0xf
mov ecx, eax
jbe 0x4a42d4
mov dword [ebp - 0x18], ecx
mov eax, ebx
mov dword [ebp - 0x10], ebx
shr eax, 4
mov edx, esi
mov esi, dword [ebp - 0x1c]
mov edi, esi
neg edi
add esi, eax
mov ebx, 0
cmovb esi, ebx
cmovae edi, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push ecx
mov dword [ebp - 0x14], edx
push edx
call fcn.004cdbd0
add esp, 0x14
push esi
call fcn.0060fcd5
mov edx, dword [ebp + 0x18]
add esp, 4
mov dword [edx + 0xc], eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4a41e0
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 0x4a41e0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4a43c3
mov dword [ebp - 0x18], ecx
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
movups xmmword [eax], xmm0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push eax
push eax
call fcn.004cdbd0
add esp, 0x14
mov edi, dword [ebp - 0x1c]
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 0x4a439d
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 ecx, dword [ebp - 0x10]
cmp ecx, 0x20
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
jae 0x4a43cb
mov esi, dword [ebp + 0x1c]
test cl, 1
jne 0x4a46ce
mov ebx, ecx
mov eax, ebx
jmp 0x4a46e8
mov ecx, dword [ebp - 0x20]
jmp 0x4a4900
lea eax, [edx + edi]
add ecx, edi
add edx, ecx
lea ebx, [esi + ecx]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 0x1c]
add ecx, ebx
cmp eax, dword [ebp - 0x1c]
lea esi, [esi + edi]
setb bl
cmp esi, edx
setb bh
cmp eax, ecx
mov eax, dword [ebp + 0x1c]
lea ecx, [eax + edi]
setb al
cmp ecx, edx
setb cl
test bl, bh
jne 0x4a46bc
and al, cl
jne 0x4a46bc
mov ecx, dword [ebp - 0x10]
and ecx, 0xffffffe0
lea eax, [ecx - 0x20]
mov edx, eax
shr edx, 5
add edx, 1
test eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edx
je 0x4a4866
mov eax, dword [ebp - 0x18]
lea esi, [eax + edi]
add esi, 0x30
mov eax, dword [ebp + 0x1c]
lea ebx, [eax + edi + 0x30]
mov eax, dword [ebp - 0x14]
add eax, edi
add eax, 0x30
mov ecx, edx
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 [ebx + edx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + 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 [ebx + edx - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + edx]
xorps xmm0, xmm1
movups xmmword [esi + edx - 0x10], xmm2
movups xmmword [esi + edx], xmm0
add edx, 0x40
add ecx, 2
jne 0x4a4450
jmp 0x4a4868
mov ecx, eax
cmp ecx, 0x10
jb 0x4a45cc
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x18]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [ebp - 0x10], ecx
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
push eax
push ebx
mov esi, edx
call fcn.004cff90
mov edx, esi
add esp, 0xc
movzx eax, byte [ebx + 0xf]
add eax, 1
mov byte [ebx + 0xf], al
shr eax, 8
movzx ecx, byte [ebx + 0xe]
add ecx, eax
mov byte [ebx + 0xe], cl
shr ecx, 8
movzx eax, byte [ebx + 0xd]
add eax, ecx
mov byte [ebx + 0xd], al
shr eax, 8
movzx ecx, byte [ebx + 0xc]
add ecx, eax
mov byte [ebx + 0xc], cl
shr ecx, 8
movzx eax, byte [ebx + 0xb]
add eax, ecx
mov byte [ebx + 0xb], al
shr eax, 8
movzx ecx, byte [ebx + 0xa]
add ecx, eax
mov byte [ebx + 0xa], cl
shr ecx, 8
movzx eax, byte [ebx + 9]
add eax, ecx
mov byte [ebx + 9], al
shr eax, 8
movzx ecx, byte [ebx + 8]
add ecx, eax
mov byte [ebx + 8], cl
shr ecx, 8
movzx eax, byte [ebx + 7]
add eax, ecx
mov byte [ebx + 7], al
shr eax, 8
movzx ecx, byte [ebx + 6]
add ecx, eax
mov byte [ebx + 6], cl
shr ecx, 8
movzx eax, byte [ebx + 5]
add eax, ecx
mov byte [ebx + 5], al
shr eax, 8
movzx ecx, byte [ebx + 4]
add ecx, eax
mov byte [ebx + 4], cl
shr ecx, 8
movzx eax, byte [ebx + 3]
add eax, ecx
mov byte [ebx + 3], al
shr eax, 8
movzx ecx, byte [ebx + 2]
add ecx, eax
mov byte [ebx + 2], cl
shr ecx, 8
movzx eax, byte [ebx + 1]
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov byte [ebx + 1], al
add byte [ebx], ah
mov esi, dword [ebp + 0x1c]
mov eax, dword [esi]
xor eax, dword [edi]
mov dword [edx], eax
mov eax, dword [esi + 4]
xor eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 8]
xor eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
add ecx, 0xfffffff0
add edx, 0x10
add edi, 0x10
cmp ecx, 0xf
ja 0x4a44c0
mov dword [ebp - 0x14], edi
xor esi, esi
mov ebx, dword [ebp + 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0x14]
je 0x4a48fe
mov dword [ebp - 0x18], edx
push eax
push ebx
mov edi, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x10], ecx
call fcn.004cff90
add esp, 0xc
movzx eax, byte [edi + 0xf]
add eax, 1
mov byte [edi + 0xf], al
shr eax, 8
movzx ecx, byte [edi + 0xe]
add ecx, eax
mov byte [edi + 0xe], cl
shr ecx, 8
movzx eax, byte [edi + 0xd]
add eax, ecx
mov byte [edi + 0xd], al
shr eax, 8
movzx ecx, byte [edi + 0xc]
add ecx, eax
mov byte [edi + 0xc], cl
shr ecx, 8
movzx eax, byte [edi + 0xb]
add eax, ecx
mov byte [edi + 0xb], al
shr eax, 8
movzx ecx, byte [edi + 0xa]
add ecx, eax
mov byte [edi + 0xa], cl
shr ecx, 8
movzx eax, byte [edi + 9]
add eax, ecx
mov byte [edi + 9], al
shr eax, 8
movzx ecx, byte [edi + 8]
add ecx, eax
mov byte [edi + 8], cl
shr ecx, 8
movzx eax, byte [edi + 7]
add eax, ecx
mov byte [edi + 7], al
shr eax, 8
movzx ecx, byte [edi + 6]
add ecx, eax
mov byte [edi + 6], cl
shr ecx, 8
movzx eax, byte [edi + 5]
add eax, ecx
mov byte [edi + 5], al
shr eax, 8
movzx ecx, byte [edi + 4]
add ecx, eax
mov byte [edi + 4], cl
shr ecx, 8
movzx eax, byte [edi + 3]
add eax, ecx
mov byte [edi + 3], al
shr eax, 8
movzx ecx, byte [edi + 2]
add ecx, eax
mov byte [edi + 2], cl
shr ecx, 8
movzx eax, byte [edi + 1]
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov byte [edi + 1], al
add byte [edi], ah
cmp ecx, 0x20
jae 0x4a4726
mov edx, dword [ebp - 0x18]
test cl, 1
jne 0x4a4814
mov edi, ecx
mov eax, edi
jmp 0x4a482e
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
test cl, 1
je 0x4a43ba
lea eax, [ecx - 1]
mov dword [ebp - 0x10], ecx
mov cl, byte [esi + edi]
mov ebx, dword [ebp - 0x14]
xor cl, byte [ebx + edi]
mov ebx, dword [ebp - 0x10]
mov byte [edx + edi], cl
add edi, 1
mov ecx, edi
cmp ebx, 1
mov ebx, dword [ebp - 0x14]
je 0x4a4900
nop word cs:[eax + eax]
nop
movzx ecx, byte [esi + edi]
xor cl, byte [ebx + edi]
mov byte [edx + edi], cl
movzx ecx, byte [esi + edi + 1]
xor cl, byte [ebx + edi + 1]
mov byte [edx + edi + 1], cl
lea ecx, [edi + 2]
mov edi, ecx
add eax, 0xfffffffe
jne 0x4a4700
jmp 0x4a4900
mov edx, dword [ebp - 0x18]
lea edi, [edx + esi]
add ecx, esi
lea eax, [edx + ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + ecx]
mov dword [ebp - 0x1c], edx
add ecx, ebx
cmp edi, dword [ebp - 0x1c]
lea eax, [eax + esi]
setb bl
mov edx, dword [ebp - 0x20]
cmp eax, edx
setb bh
cmp edi, ecx
mov eax, dword [ebp + 0x1c]
lea ecx, [eax + esi]
setb al
cmp ecx, edx
setb cl
test bl, bh
jne 0x4a4802
and al, cl
jne 0x4a4802
mov eax, dword [ebp - 0x10]
and eax, 0xffffffe0
mov dword [ebp - 0x1c], eax
add eax, 0xffffffe0
mov ecx, eax
shr ecx, 5
add ecx, 1
test eax, eax
mov dword [ebp - 0x20], ecx
je 0x4a48be
mov eax, dword [ebp - 0x18]
lea edi, [eax + esi]
add edi, 0x30
mov eax, dword [ebp + 0x1c]
lea ebx, [eax + esi]
add ebx, 0x30
mov eax, dword [ebp - 0x14]
add eax, esi
add eax, 0x30
and ecx, 0xfffffffe
neg ecx
xor edx, edx
movups xmm0, xmmword [eax + edx - 0x30]
movups xmm1, xmmword [eax + edx - 0x20]
movups xmm2, xmmword [ebx + edx - 0x30]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + edx - 0x20]
xorps xmm0, xmm1
movups xmmword [edi + edx - 0x30], xmm2
movups xmmword [edi + edx - 0x20], xmm0
movups xmm0, xmmword [eax + edx - 0x10]
movups xmm1, xmmword [eax + edx]
movups xmm2, xmmword [ebx + edx - 0x10]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + edx]
xorps xmm0, xmm1
movups xmmword [edi + edx - 0x10], xmm2
movups xmmword [edi + edx], xmm0
add edx, 0x40
add ecx, 2
jne 0x4a47b0
jmp 0x4a48c0
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
test cl, 1
je 0x4a46b3
lea eax, [ecx - 1]
mov dword [ebp - 0x10], ecx
mov cl, byte [ebx + esi]
mov edi, dword [ebp - 0x14]
xor cl, byte [edi + esi]
mov edi, dword [ebp - 0x10]
mov byte [edx + esi], cl
add esi, 1
mov ecx, esi
cmp edi, 1
mov edi, dword [ebp - 0x14]
je 0x4a4900
nop word [eax + eax]
movzx ecx, byte [ebx + esi]
xor cl, byte [edi + esi]
mov byte [edx + esi], cl
movzx ecx, byte [ebx + esi + 1]
xor cl, byte [edi + esi + 1]
mov byte [edx + esi + 1], cl
lea ecx, [esi + 2]
mov esi, ecx
add eax, 0xfffffffe
jne 0x4a4840
jmp 0x4a4900
xor edx, edx
test byte [ebp - 0x24], 1
mov esi, dword [ebp + 0x1c]
je 0x4a489a
add edx, edi
mov eax, dword [ebp - 0x14]
movups xmm0, xmmword [eax + edx]
movups xmm1, xmmword [eax + edx + 0x10]
movups xmm2, xmmword [esi + edx]
xorps xmm2, xmm0
movups xmm0, xmmword [esi + edx + 0x10]
xorps xmm0, xmm1
mov eax, dword [ebp - 0x18]
movups xmmword [eax + edx], xmm2
movups xmmword [eax + edx + 0x10], xmm0
mov eax, dword [ebp - 0x1c]
add edi, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jne 0x4a48aa
mov ecx, edi
jmp 0x4a4900
and ecx, 0x1f
mov edx, dword [ebp - 0x18]
test cl, 1
je 0x4a43ba
jmp 0x4a46ce
xor edx, edx
test byte [ebp - 0x20], 1
mov ebx, dword [ebp + 0x1c]
je 0x4a48f2
add edx, esi
mov eax, dword [ebp - 0x14]
movups xmm0, xmmword [eax + edx]
movups xmm1, xmmword [eax + edx + 0x10]
movups xmm2, xmmword [ebx + edx]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + edx + 0x10]
xorps xmm0, xmm1
mov eax, dword [ebp - 0x18]
movups xmmword [eax + edx], xmm2
movups xmmword [eax + edx + 0x10], xmm0
mov eax, dword [ebp - 0x1c]
add esi, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jne 0x4a490d
mov ecx, esi
mov eax, dword [ebp + 0x20]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
and ecx, 0x1f
jmp 0x4a46a7