Function at 0x1004a310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x100e8994]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1004a56d
mov eax, dword [0x100e8ffc]
cmp dword [eax], 0
je 0x1004a56d
mov eax, dword [edi + 0x10]
cmp eax, 0x1e
jbe 0x1004a362
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x1004a362
mov dword [edi + 0xc], 0
movaps xmm0, xmmword [0x100900b0]
mov ebx, 0x18
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
lea eax, [ebx + 1]
mov dword [ebp - 0x18], 0x43544250
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x5c471f00
mov byte [ebp - 0x10], 0x45
call fcn.1007cdb0
mov esi, esp
lea ebx, [ebp - 0x27]
xor ecx, ecx
mov dword [ebp - 0xc4], esi
sub ebx, esi
lea edx, [ecx + esi]
mov esi, 0x18
sub esi, ecx
mov cl, byte [ebp - 0x28]
mov al, byte [edx + ebx]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1004a3b4
mov esi, esp
mov ebx, 0x18
mov byte [esi + ebx], 0
xor esi, esi
cmp dword [edi + 0x10], esi
jbe 0x1004a56d
nop word [eax + eax]
mov eax, dword [edi + 0xc]
lea ecx, [eax + esi]
mov eax, dword [edi + 8]
dec eax
and ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x20], xmm0
psrldq xmm0, 0xc
movd ebx, xmm0
test ebx, ebx
je 0x1004a563
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
mov eax, dword [eax + 0x24]
call eax
test al, al
jne 0x1004a563
movss xmm0, dword [ebp - 0x30]
mov eax, dword [0x100e8ffc]
movss dword [ebp - 0xac], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0xa8], xmm0
movss xmm0, dword [ebp - 0x28]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x8c], 0xffffffff
mov byte [ebp - 0x50], 1
mov dword [ebp - 0x48], 0
movss dword [ebp - 0xa4], xmm0
cmp ebx, dword [eax]
jne 0x1004a4a9
subss xmm0, dword [0x1008d650]
movss dword [ebp - 0xa4], xmm0
movss xmm0, dword [ebp - 0x24]
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc4]
movss dword [ebp - 0xa0], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [ebp - 0x9c], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x98], xmm0
movaps xmm0, xmmword [0x1008f940]
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x90], eax
movzx eax, byte [ebp - 0x18]
movaps xmm0, xmmword [0x1008f8b0]
movups xmmword [ebp - 0x74], xmm0
mov ecx, dword [0x100e8958]
movd xmm0, eax
movzx eax, byte [ebp - 0x17]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 0x8300
push edx
movss dword [ebp - 0x5c], xmm0
movd xmm0, eax
movzx eax, byte [ebp - 0x16]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x58], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x54], xmm0
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x1004a563
mov ecx, dword [0x100e8958]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
inc esi
cmp esi, dword [edi + 0x10]
jb 0x1004a3e0
mov ecx, edi
call fcn.1004aaa0
lea esp, [ebp - 0xd4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
ret