Function at 0x4a0d90
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510968
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x56a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebx + 8]
mov dword [ebp - 4], 0
call fcn.00494690
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
mov edi, dword [ebx + 8]
lea ecx, [ebx + 8]
mov edx, dword [ebx + 0x1c]
lea esi, [ebx + 8]
cmova eax, edi
cmova ecx, edi
add eax, dword [ebx + 0x18]
cmp edx, 0xf
mov dword [ebp - 0x14], eax
cmova esi, edi
cmp esi, eax
je 0x4a0e2b
sub ecx, esi
mov edi, ecx
nop word [eax + eax]
movsx eax, byte [esi]
push eax
call fcn.004e3aba
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x14]
jne 0x4a0e10
mov edi, dword [ebx + 8]
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x18]
lea eax, [ebx + 8]
cmp edx, 0xf
mov edx, 0x811c9dc5
cmova eax, edi
xor ecx, ecx
mov dword [ebp - 0x14], eax
test esi, esi
je 0x4a0e5b
mov edi, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4a0e47
mov edi, dword [ebx + 8]
mov esi, dword [ebp - 0x1c]
lea eax, [ebx + 8]
push edx
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004a3e40
mov eax, dword [eax + 4]
test eax, eax
je 0x4a0e85
cmp eax, dword [esi + 4]
je 0x4a0e85
mov eax, dword [eax + 0x20]
add esi, 0x20
jmp 0x4a0f50
mov eax, dword [esi + 0x24]
add esi, 0x20
mov ecx, dword [ebp - 0x1c]
sub eax, dword [esi]
sar eax, 4
imul edi, eax, 0xaaaaaaab
lea eax, [ebx + 8]
push eax
mov dword [ebp - 0x14], edi
call fcn.004a2e40
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [eax], edi
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 1
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x4a0f0a
lea eax, [ebx + 8]
mov ecx, edi
push eax
call fcn.00407fb0
vmovdqu xmm0, xmmword [ebp - 0x38]
mov dword [edi + 0x28], 0
mov ecx, 0xf
mov dword [edi + 0x2c], 0
vmovdqu xmmword [edi + 0x18], xmm0
vmovq xmm0, qword [ebp - 0x28]
vmovq qword [edi + 0x28], xmm0
add dword [esi + 4], 0x30
mov byte [ebp - 0x38], 0
jmp 0x4a0f1d
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebx + 8]
push eax
push edi
call fcn.004a4350
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x4a0f4a
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4a0f40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0fa2
push ecx
push edx
call fcn.004d7c38
add esp, 8
mov edi, dword [ebx + 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x1c]
shl ecx, 4
add esi, ecx
cmp eax, 0xf
jbe 0x4a0f89
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4a0f7f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0fa2
push ecx
push edi
call fcn.004d7c38
add esp, 8
lea eax, [esi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.004e35d4
int3