Function at 0x4a4d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp esi, 0x20
jb 0x4a4da4
cmp esi, ecx
jb 0x4a4da8
lea eax, [esi - 0x20]
cmp eax, ecx
jae 0x4a4da8
cmp edi, 0x10
jb 0x4a4e14
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
push esi
mov ebx, esi
mov esi, ecx
call dword [ebp + 0x1c]
add esp, 0xc
mov eax, dword [ebx]
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx]
xor ecx, dword [ebp - 0x20]
mov dword [esi], ecx
mov dword [edx], eax
mov eax, dword [ebx + 4]
mov ecx, dword [edx + 4]
xor ecx, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 8]
xor ecx, dword [ebp - 0x18]
mov dword [esi + 8], ecx
mov dword [edx + 8], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [edx + 0xc]
xor ecx, dword [ebp - 0x14]
mov dword [esi + 0xc], ecx
mov ecx, esi
mov esi, ebx
mov dword [edx + 0xc], eax
add edi, 0xfffffff0
add esi, 0x10
add ecx, 0x10
cmp edi, 0xf
ja 0x4a4d40
mov edx, dword [ebp + 0x1c]
jmp 0x4a4e14
cmp esi, ecx
jae 0x4a4d37
cmp edi, 0x10
jb 0x4a4e08
mov ebx, dword [ebp + 0x18]
mov eax, esi
mov esi, ecx
mov ecx, eax
nop word cs:[eax + eax]
mov dword [ebp - 0x40], edi
mov edi, ecx
push dword [ebp + 0x14]
push esi
push ecx
call dword [ebp + 0x1c]
add esp, 0xc
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, dword [ebx + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
xor dword [esi + 0xc], eax
add dword [ebp - 0x40], 0xfffffff0
lea ecx, [edi + 0x10]
add esi, 0x10
mov ebx, edi
mov edi, dword [ebp - 0x40]
cmp edi, 0xf
ja 0x4a4dc0
lea eax, [ecx - 0x10]
mov edx, ecx
mov ecx, esi
mov esi, edx
mov edx, dword [ebp + 0x1c]
jmp 0x4a4e0b
mov eax, dword [ebp + 0x18]
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0x18]
movups xmmword [eax], xmm0
mov eax, dword [ebp + 0x14]
test edi, edi
je 0x4a518d
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x20]
push eax
push ecx
push esi
call edx
add esp, 0xc
lea eax, [edi - 1]
cmp eax, 0xf
mov edx, 0x10
cmovb edx, edi
xor ecx, ecx
cmp edx, 0xf
mov ebx, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x40], edi
ja 0x4a4ec0
mov eax, ecx
or eax, 1
test dl, 1
je 0x4a4e6f
mov dl, byte [ebx + ecx]
mov edi, dword [ebp + 0x18]
mov dh, byte [edi + ecx]
xor dh, byte [ebp + ecx - 0x20]
mov esi, dword [ebp - 0x2c]
mov byte [esi + ecx], dh
mov byte [edi + ecx], dl
mov edx, dword [ebp - 0x24]
mov ecx, eax
cmp edx, eax
je 0x4a5014
mov edi, dword [ebp - 0x2c]
nop word [eax + eax]
movzx eax, byte [ebx + ecx]
mov edx, dword [ebp + 0x18]
mov esi, ebx
mov ebx, edx
movzx edx, byte [edx + ecx]
xor dl, byte [ebp + ecx - 0x20]
mov byte [edi + ecx], dl
mov byte [ebx + ecx], al
movzx eax, byte [esi + ecx + 1]
movzx edx, byte [ebx + ecx + 1]
xor dl, byte [ebp + ecx - 0x1f]
mov byte [edi + ecx + 1], dl
mov edx, dword [ebp - 0x24]
mov byte [ebx + ecx + 1], al
mov ebx, esi
add ecx, 2
cmp edx, ecx
jne 0x4a4e80
jmp 0x4a5014
mov esi, dword [ebp - 0x2c]
lea eax, [esi + edx]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], ebx
mov ebx, eax
add eax, edx
mov dword [ebp - 0x44], eax
mov edi, dword [ebp - 0x28]
add edi, edx
mov dword [ebp - 0x38], edi
cmp esi, eax
setb byte [ebp - 0x32]
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
seta byte [ebp - 0x31]
cmp esi, dword [ebp - 0x38]
setb byte [ebp - 0x30]
mov edi, dword [ebp - 0x28]
cmp edi, eax
setb byte [ebp - 0x2f]
lea eax, [edx + ebp]
add eax, 0xffffffe0
cmp esi, eax
setb byte [ebp - 0x2e]
lea esi, [ebp - 0x20]
cmp dword [ebp - 0x3c], esi
seta byte [ebp - 0x3c]
cmp dword [ebp - 0x38], ebx
seta byte [ebp - 0x38]
mov edx, dword [ebp - 0x44]
cmp edi, edx
setb byte [ebp - 0x2d]
cmp eax, ebx
seta al
cmp edx, esi
seta bl
mov dl, byte [ebp - 0x31]
test byte [ebp - 0x32], dl
mov edx, edi
jne 0x4a519f
mov ah, byte [ebp - 0x2f]
and byte [ebp - 0x30], ah
jne 0x4a519f
mov ah, byte [ebp - 0x3c]
and byte [ebp - 0x2e], ah
jne 0x4a519f
mov ah, byte [ebp - 0x2d]
and byte [ebp - 0x38], ah
jne 0x4a519f
and al, bl
mov ebx, edx
mov edx, dword [ebp - 0x24]
jne 0x4a4e4a
mov ecx, edx
and ecx, 0xfffffff0
lea eax, [ecx - 0x10]
mov edx, eax
shr edx, 4
add edx, 1
test eax, eax
mov dword [ebp - 0x38], edx
je 0x4a51a9
mov eax, edx
and eax, 0xfffffffe
neg eax
xor edx, edx
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
nop word cs:[eax + eax]
movups xmm0, xmmword [edi + edx]
movups xmm1, xmmword [ebp + edx - 0x20]
mov ebx, dword [ebp + 0x18]
movups xmm2, xmmword [ebx + edx]
xorps xmm2, xmm1
movups xmmword [esi + edx], xmm2
movups xmmword [ebx + edx], xmm0
movups xmm0, xmmword [edi + edx + 0x10]
movups xmm1, xmmword [ebp + edx - 0x10]
movups xmm2, xmmword [ebx + edx + 0x10]
xorps xmm2, xmm1
movups xmmword [esi + edx + 0x10], xmm2
movups xmmword [ebx + edx + 0x10], xmm0
add edx, 0x20
add eax, 2
jne 0x4a4fa0
test byte [ebp - 0x38], 1
je 0x4a5006
mov eax, dword [ebp - 0x28]
movups xmm0, xmmword [eax + edx]
movups xmm1, xmmword [ebp + edx - 0x20]
mov esi, dword [ebp + 0x18]
movups xmm2, xmmword [esi + edx]
xorps xmm2, xmm1
mov eax, dword [ebp - 0x2c]
movups xmmword [eax + edx], xmm2
movups xmmword [esi + edx], xmm0
mov edx, dword [ebp - 0x24]
cmp edx, ecx
mov ebx, dword [ebp - 0x28]
jne 0x4a4e4a
cmp edx, 0xf
mov edi, dword [ebp - 0x40]
ja 0x4a518d
mov esi, ebx
mov ebx, 0x10
sub ebx, edi
cmp ebx, 0x1f
jbe 0x4a5124
mov eax, dword [ebp + 0x18]
add eax, edi
lea ecx, [esi + 0x10]
cmp eax, ecx
jae 0x4a504f
mov eax, dword [ebp + 0x18]
add eax, 0x10
lea ecx, [esi + edi]
cmp ecx, eax
jb 0x4a5124
mov dword [ebp - 0x28], esi
mov eax, ebx
and eax, 0xffffffe0
mov dword [ebp - 0x2c], eax
add eax, 0xffffffe0
mov esi, eax
shr esi, 5
add esi, 1
mov ecx, esi
and ecx, 3
mov dword [ebp - 0x24], ecx
xor ecx, ecx
cmp eax, 0x60
jb 0x4a50e6
mov eax, dword [ebp + 0x18]
add eax, edi
add eax, 0x70
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + edi]
add edx, 0x70
and esi, 0xfffffffc
neg esi
xor ecx, ecx
nop dword [eax]
movups xmm0, xmmword [edx + ecx - 0x70]
movups xmm1, xmmword [edx + ecx - 0x60]
movups xmmword [eax + ecx - 0x70], xmm0
movups xmmword [eax + ecx - 0x60], xmm1
movups xmm0, xmmword [edx + ecx - 0x50]
movups xmm1, xmmword [edx + ecx - 0x40]
movups xmmword [eax + ecx - 0x50], xmm0
movups xmmword [eax + ecx - 0x40], xmm1
movups xmm0, xmmword [edx + ecx - 0x30]
movups xmm1, xmmword [edx + ecx - 0x20]
movups xmmword [eax + ecx - 0x30], xmm0
movups xmmword [eax + ecx - 0x20], xmm1
movups xmm0, xmmword [edx + ecx - 0x10]
movups xmm1, xmmword [edx + ecx]
movups xmmword [eax + ecx - 0x10], xmm0
movups xmmword [eax + ecx], xmm1
sub ecx, 0xffffff80
add esi, 4
jne 0x4a5090
mov edx, dword [ebp - 0x24]
test edx, edx
mov esi, dword [ebp - 0x28]
je 0x4a511b
lea eax, [edi + ecx]
add eax, 0x10
neg edx
nop dword [eax + eax]
movups xmm0, xmmword [esi + eax - 0x10]
movups xmm1, xmmword [esi + eax]
mov ecx, dword [ebp + 0x18]
movups xmmword [ecx + eax - 0x10], xmm0
movups xmmword [ecx + eax], xmm1
add eax, 0x20
inc edx
jne 0x4a5100
mov eax, dword [ebp - 0x2c]
cmp ebx, eax
je 0x4a518d
add edi, eax
mov ecx, edi
neg ecx
mov eax, 0xf
sub eax, edi
and ecx, 3
je 0x4a5152
nop word cs:[eax + eax]
nop
movzx edx, byte [esi + edi]
mov ebx, dword [ebp + 0x18]
mov byte [ebx + edi], dl
add edi, 1
add ecx, 0xffffffff
jne 0x4a5140
cmp eax, 3
jb 0x4a518d
nop word [eax + eax]
movzx eax, byte [esi + edi]
mov ecx, dword [ebp + 0x18]
mov byte [ecx + edi], al
movzx eax, byte [esi + edi + 1]
mov byte [ecx + edi + 1], al
movzx eax, byte [esi + edi + 2]
mov byte [ecx + edi + 2], al
movzx eax, byte [esi + edi + 3]
mov byte [ecx + edi + 3], al
add edi, 4
cmp edi, 0x10
jne 0x4a5160
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, edx
mov edx, dword [ebp - 0x24]
jmp 0x4a4e4a
xor edx, edx
test byte [ebp - 0x38], 1
jne 0x4a4fe5
jmp 0x4a5006