Function at 0x1005b1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp byte [0x100f9644], 0
push ebx
push esi
push edi
je 0x1005bbe6
mov eax, dword [0x100f965c]
mov byte [ebp - 1], 0
test eax, eax
je 0x1005b2fc
dec eax
cmp eax, 5
ja case.default.0x1005b201
jmp dword [eax*4 + 0x1005bbf0]
mov ecx, dword [0x100fc35c]
push 0
push dword [0x1017de98]
mov byte [ebp - 1], 1
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005b320
mov ecx, dword [0x100fc35c]
push 0
push dword [0x1017dea0]
mov byte [ebp - 1], 1
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005b320
mov ecx, dword [0x100fc35c]
push 0
push dword [0x1017de9c]
mov byte [ebp - 1], 1
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005b320
mov ecx, dword [0x100fc35c]
push 0
push dword [0x1017dea4]
mov byte [ebp - 1], 1
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005b320
mov ecx, dword [0x100fc35c]
push 0
push dword [0x1017deb4]
mov byte [ebp - 1], 1
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005b320
mov ecx, dword [0x100fc338]
push str.mat_hdr_level
mov byte [ebp - 1], 1
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 0x1005b2d7
mov eax, dword [0x1017deac]
mov dword [0x1017deb0], eax
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005b320
mov eax, dword [0x1017dea8]
mov dword [0x1017deb0], eax
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
jmp 0x1005b320
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 [0x100f9634]
movss xmm1, dword [0x100f06a8]
comiss xmm1, xmm0
jbe 0x1005b346
mov ecx, dword [0x100fc34c]
push ecx
movss dword [esp], xmm0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [0x100f964c], 0
je 0x1005b369
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]
cmp byte [0x100f9654], 0
mov edi, dword [ebp + 8]
je 0x1005b5e7
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 6
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov ebx, dword [eax + 4]
mov esi, dword [eax]
cmp esi, ebx
je 0x1005b5e7
nop dword [eax + eax]
mov edx, dword [esi]
mov ecx, edi
call fcn.10025e10
test al, al
je 0x1005b5dc
cmp byte [ebp - 1], 0
je 0x1005b5ac
cmp dword [0x100f965c], 6
mov eax, dword [0x100f9478]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
je 0x1005b427
movss xmm1, dword [0x100f0568]
movzx ecx, al
mov edx, dword [0x100fc34c]
shr eax, 8
movzx eax, al
movd xmm0, ecx
lea ecx, [ebp - 0x18]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, edx
mulss xmm0, xmm1
movss dword [ebp - 0x18], xmm0
movd xmm0, eax
movzx eax, byte [0x100f947a]
cvtdq2ps xmm0, xmm0
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 0x1005b448
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 [0x100f965c], 6
mov byte [ebp - 2], 0
mov byte [ebp - 3], 0
jne 0x1005b5ac
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 edi, dword [eax + 0x2c]
mov dword [ebp - 0x35], 0x100b9a2
nop dword [eax]
mov al, dl
sub al, 0x40
xor byte [ebp + edx - 0x41], al
inc edx
cmp edx, 0xe
jb 0x1005b490
push 1
lea eax, [ebp - 2]
mov byte [ebp - 0x32], 0
push eax
lea eax, [ebp - 0x41]
push eax
call edi
cmp byte [ebp - 2], 0
mov edi, eax
je 0x1005b50c
movzx ecx, byte [0x100f98e6]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [0x100f98e4]
mov edx, dword [edi]
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, edi
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 edi, 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 0x1005b532
push 1
lea eax, [ebp - 3]
mov byte [ebp - 0x25], 0
push eax
lea eax, [ebp - 0x31]
push eax
call edi
cmp byte [ebp - 3], 0
mov edi, eax
je 0x1005b5a9
movzx ecx, byte [ebp - 0xa]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [ebp - 8]
mov edx, dword [edi]
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, edi
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 edi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0xc], 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 - 0xc]
mov ecx, 0x1017dec0
push eax
call fcn.10027290
mov byte [eax], 1
mov byte [0x1017dec9], 0
add esi, 4
cmp esi, ebx
jne 0x1005b3a0
cmp byte [0x100f9664], 0
je 0x1005b857
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 7
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov ebx, dword [eax + 4]
mov esi, dword [eax]
cmp esi, ebx
je 0x1005b857
mov edx, dword [esi]
mov ecx, edi
call fcn.10025e10
test al, al
je 0x1005b84c
cmp byte [ebp - 1], 0
je 0x1005b81c
cmp dword [0x100f965c], 6
mov eax, dword [0x100f9484]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
je 0x1005b69d
movss xmm1, dword [0x100f0568]
movzx ecx, al
mov edx, dword [0x100fc34c]
shr eax, 8
movzx eax, al
movd xmm0, ecx
lea ecx, [ebp - 0x24]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, edx
mulss xmm0, xmm1
movss dword [ebp - 0x24], xmm0
movd xmm0, eax
movzx eax, byte [0x100f9486]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movd xmm0, eax
mov eax, dword [edx]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x1c], xmm0
jmp 0x1005b6be
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x3f800000
mov dword [ebp - 0x14], 0x3f800000
mov dword [ebp - 0x10], 0x3f800000
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
cmp dword [0x100f965c], 6
mov byte [ebp - 3], 0
mov byte [ebp - 2], 0
jne 0x1005b81c
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 edi, 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 0x1005b700
push 1
lea eax, [ebp - 3]
mov byte [ebp - 0x32], 0
push eax
lea eax, [ebp - 0x41]
push eax
call edi
cmp byte [ebp - 3], 0
mov edi, eax
je 0x1005b77c
movzx ecx, byte [0x100f98e6]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [0x100f98e4]
mov edx, dword [edi]
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, edi
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 edi, 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 0x1005b7a2
push 1
lea eax, [ebp - 2]
mov byte [ebp - 0x25], 0
push eax
lea eax, [ebp - 0x31]
push eax
call edi
cmp byte [ebp - 2], 0
mov edi, eax
je 0x1005b819
movzx ecx, byte [ebp - 0xa]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [ebp - 8]
mov edx, dword [edi]
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, edi
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 edi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0xc], 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 - 0xc]
mov ecx, 0x1017dec0
push eax
call fcn.10027290
mov byte [eax], 1
mov byte [0x1017dec9], 0
add esi, 4
cmp esi, ebx
jne 0x1005b616
cmp dword [0x100f963c], 0
je 0x1005bb64
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push eax
mov ecx, 0x1017dbe0
call fcn.100ce400
mov edi, dword [eax]
mov ebx, dword [eax + 4]
cmp edi, ebx
je 0x1005bb64
nop word [eax + eax]
mov ecx, dword [edi]
test byte [ecx + 0x7c], 0x20
jne 0x1005bb59
call fcn.10005ff0
cmp dword [0x100f963c], 2
mov esi, eax
jne 0x1005b8bc
mov ecx, dword [ebp + 8]
call fcn.10005ff0
cmp esi, eax
je 0x1005bb59
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
call fcn.10025e10
test al, al
je 0x1005bb59
cmp byte [ebp - 1], 0
je 0x1005bb29
cmp byte [0x100f9024], 0
je 0x1005b928
mov ecx, dword [0x1017dbe8]
test ecx, ecx
je 0x1005b932
call fcn.10005ff0
cmp eax, 2
jne 0x1005b90c
cmp esi, eax
jne 0x1005b900
mov eax, dword [0x100f9034]
jmp 0x1005b945
cmp esi, 3
jne 0x1005b932
mov eax, dword [0x100f903c]
jmp 0x1005b945
cmp eax, 3
jne 0x1005b932
cmp esi, eax
jne 0x1005b91c
mov eax, dword [0x100f9034]
jmp 0x1005b945
cmp esi, 2
jne 0x1005b932
mov eax, dword [0x100f903c]
jmp 0x1005b945
sub esi, 2
je 0x1005b940
sub esi, 1
je 0x1005b939
mov eax, dword [0x100f9030]
jmp 0x1005b945
mov eax, dword [0x100f9038]
jmp 0x1005b945
mov eax, dword [0x100f902c]
cmp dword [0x100f965c], 6
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
je 0x1005b9ad
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 - 0x24], xmm0
movd xmm0, ecx
lea ecx, [ebp - 0x24]
cvtdq2ps xmm0, xmm0
push ecx
mov ecx, edx
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm0
movd xmm0, eax
mov eax, dword [edx]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x1c], xmm0
jmp 0x1005b9ce
mov ecx, dword [0x100fc34c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x3f800000
mov dword [ebp - 0x14], 0x3f800000
mov dword [ebp - 0x10], 0x3f800000
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
cmp dword [0x100f965c], 6
mov byte [ebp - 3], 0
mov byte [ebp - 2], 0
jne 0x1005bb29
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 0x1005ba10
push 1
lea eax, [ebp - 3]
mov byte [ebp - 0x32], 0
push eax
lea eax, [ebp - 0x41]
push eax
call esi
cmp byte [ebp - 3], 0
mov esi, eax
je 0x1005ba8c
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 0x1005bab2
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 0x1005bb29
movzx ecx, byte [ebp - 6]
sub esp, 0xc
movss xmm1, dword [0x100f0568]
mov eax, dword [ebp - 0xc]
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 - 0xc], 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 - 0xc]
mov ecx, 0x1017dec0
push eax
call fcn.10027290
mov byte [eax], 1
mov byte [0x1017dec9], 0
add edi, 4
cmp edi, ebx
jne 0x1005b890
cmp byte [ebp - 1], 0
je 0x1005bb9f
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 [0x100f9634]
jbe 0x1005bbc3
mov ecx, dword [0x100fc34c]
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [0x100f964c], 0
je 0x1005bbe6
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