Function at 0x1005acf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp byte [0x100f967c], 0
push ebx
push esi
push edi
je 0x1005b1a5
lea eax, [ebp - 8]
mov dword [ebp - 8], 3
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov edi, eax
mov ecx, dword [edi]
cmp ecx, dword [edi + 4]
je 0x1005b1a5
mov eax, dword [0x100f9694]
xor bl, bl
test eax, eax
je 0x1005ae30
dec eax
cmp eax, 5
ja case.default.0x1005ad41
jmp dword [eax*4 + 0x1005b1b0]
mov ecx, dword [0x100fc35c]
mov bl, 1
push 0
push dword [0x1017de98]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005ae54
mov ecx, dword [0x100fc35c]
mov bl, 1
push 0
push dword [0x1017dea0]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005ae54
mov ecx, dword [0x100fc35c]
mov bl, 1
push 0
push dword [0x1017de9c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005ae54
mov ecx, dword [0x100fc35c]
mov bl, 1
push 0
push dword [0x1017dea4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005ae54
mov ecx, dword [0x100fc35c]
mov bl, 1
push 0
push dword [0x1017deb4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005ae54
mov ecx, dword [0x100fc338]
mov bl, 1
push str.mat_hdr_level
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [0x100fc35c]
push 0
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x30], 1
jle 0x1005ae0b
mov eax, dword [0x1017deac]
mov dword [0x1017deb0], eax
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005ae54
mov eax, dword [0x1017dea8]
mov dword [0x1017deb0], eax
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005ae54
mov ecx, dword [0x100fc35c]
push 0
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0x3f800000
mov dword [ebp - 0x14], 0x3f800000
mov eax, dword [ecx]
mov dword [ebp - 0x10], 0x3f800000
call dword [eax + 0x18]
movss xmm0, dword [0x100f9674]
movss xmm1, dword [0x100f06a8]
comiss xmm1, xmm0
jbe 0x1005ae7a
mov ecx, dword [0x100fc34c]
push ecx
movss dword [esp], xmm0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [0x100f9684], 0
je 0x1005ae9d
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], 0x3e4ccccd
mov dword [esp], 0
call dword [eax + 0x2c]
mov eax, dword [edi + 4]
mov edi, dword [edi]
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x1005b125
nop dword [eax]
mov ecx, dword [edi]
call fcn.1000e7d0
test al, al
jne 0x1005b119
cmp byte [0x100f968c], al
je 0x1005aee0
mov ecx, dword [edi]
call fcn.10005ff0
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.10005ff0
cmp esi, eax
je 0x1005b119
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
call fcn.10025e10
test al, al
je 0x1005b119
test bl, bl
je 0x1005b0e9
mov dl, byte [0x100f9024]
mov ecx, dword [edi]
call fcn.10020790
cmp dword [0x100f9694], 6
mov dword [ebp - 8], eax
je 0x1005af6c
movss xmm1, dword [0x100f0568]
movzx ecx, al
mov edx, dword [0x100fc34c]
movd xmm0, ecx
mov ecx, eax
cvtdq2ps xmm0, xmm0
shr ecx, 8
movzx ecx, cl
shr eax, 0x10
movzx eax, al
mulss xmm0, xmm1
movss dword [ebp - 0x18], xmm0
movd xmm0, ecx
lea ecx, [ebp - 0x18]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, edx
mulss xmm0, xmm1
movss dword [ebp - 0x14], xmm0
movd xmm0, eax
mov eax, dword [edx]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
jmp 0x1005af8d
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x3f800000
mov dword [ebp - 0x20], 0x3f800000
mov dword [ebp - 0x1c], 0x3f800000
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
cmp dword [0x100f96cc], 6
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
jne 0x1005b0e9
mov ecx, dword [0x1017deb0]
xor edx, edx
mov eax, dword [ecx]
mov dword [ebp - 0x41], 0xafa7b2e4
mov dword [ebp - 0x3d], 0xabaaaca2
mov dword [ebp - 0x39], 0xa2bea4bd
mov esi, dword [eax + 0x2c]
mov dword [ebp - 0x35], 0x100b9a2
nop
mov al, dl
sub al, 0x40
xor byte [ebp + edx - 0x41], al
inc edx
cmp edx, 0xe
jb 0x1005afd0
push 1
lea eax, [ebp - 1]
mov byte [ebp - 0x32], 0
push eax
lea eax, [ebp - 0x41]
push eax
call esi
cmp byte [ebp - 1], 0
mov esi, eax
je 0x1005b04c
movzx ecx, byte [0x100f98e6]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [0x100f98e4]
mov edx, dword [esi]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movzx ecx, ah
movzx eax, al
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
movd xmm0, ecx
mov ecx, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp], xmm0
call dword [edx + 0x28]
mov ecx, dword [0x1017deb0]
xor edx, edx
mov eax, dword [ecx]
mov dword [ebp - 0x31], 0xb5aca4e4
mov dword [ebp - 0x2d], 0xb3b6a4a9
mov dword [ebp - 0x29], 0xbea7a1
mov esi, dword [eax + 0x2c]
mov byte [ebp - 0x25], 1
mov al, dl
sub al, 0x40
xor byte [ebp + edx - 0x31], al
inc edx
cmp edx, 0xb
jb 0x1005b072
push 1
lea eax, [ebp - 2]
mov byte [ebp - 0x25], 0
push eax
lea eax, [ebp - 0x31]
push eax
call esi
cmp byte [ebp - 2], 0
mov esi, eax
je 0x1005b0e9
movzx ecx, byte [ebp - 6]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [ebp - 8]
mov edx, dword [esi]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movzx ecx, ah
movzx eax, al
mulss xmm0, xmm1
movss dword [esp + 8], xmm0
movd xmm0, ecx
mov ecx, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp], xmm0
call dword [edx + 0x28]
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov byte [0x1017dec9], 1
push 1
lea ecx, [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
lea eax, [ebp - 8]
mov ecx, 0x1017dec0
push eax
call fcn.10027290
mov byte [eax], 1
mov byte [0x1017dec9], 0
add edi, 4
cmp edi, dword [ebp - 0xc]
jne 0x1005aeb0
test bl, bl
je 0x1005b15e
mov ecx, dword [0x100fc35c]
push 0
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], 0x3f800000
mov dword [ebp - 0x20], 0x3f800000
mov eax, dword [ecx]
mov dword [ebp - 0x1c], 0x3f800000
call dword [eax + 0x18]
movss xmm0, dword [0x100f06a8]
comiss xmm0, dword [0x100f9674]
jbe 0x1005b182
mov ecx, dword [0x100fc34c]
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [0x100f9684], 0
je 0x1005b1a5
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0
call dword [eax + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8