Function at 0x1002c8e0
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 0x100f4010
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x90
mov eax, dword [0x101110c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov edi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x6c], edx
test edi, edi
je 0x1002d219
test edx, edx
je 0x1002d219
cmp dword [edi], 0
je 0x1002d219
movss xmm3, dword [0x10130e40]
mov ecx, dword [0x101ae65c]
mov eax, dword [0x10130e40]
addss xmm3, dword [0x10105ee4]
movq xmm0, qword [0x10130e38]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [0x101ae828]
movss dword [0x10130e40], xmm3
add eax, 0xffffffd9
movss xmm2, dword [ecx + 0x20]
xor eax, 0x2f303c67
add eax, dword [0x10130e2c]
mulss xmm2, dword [0x10105f08]
movq qword [ebp - 0x30], xmm0
movaps xmm0, xmm2
movaps xmm1, xmm2
mulss xmm0, dword [eax]
mulss xmm1, dword [eax + 4]
mulss xmm2, dword [eax + 8]
addss xmm0, dword [0x10130e38]
addss xmm1, dword [0x10130e3c]
addss xmm2, xmm3
movss dword [0x10130e38], xmm0
movss dword [0x10130e3c], xmm1
movss dword [0x10130e40], xmm2
mov dword [edi + 0x24], 0
mov eax, dword [edx + 0x1bcc]
mov esi, dword [0x101ae8f8]
add esi, 0xffffffa5
xor esi, 0x2f303c9b
add esi, dword [edx]
lea eax, [eax + eax*2]
shl eax, 4
push eax
lea eax, [edx + 0x3cc]
push eax
push dword [esi]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x6c]
add esp, 0xc
mov eax, dword [edx + 0x1bcc]
mov dword [esi + 0xc], eax
lea esi, [edx + 0x20]
mov ecx, dword [0x101ae820]
mov eax, dword [esi]
add ecx, 0xffffffdb
xor ecx, 0x2f303c65
add ecx, dword [edx]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [0x101ae82c]
mov eax, dword [edx + 0x38]
add ecx, 0xffffffd8
xor ecx, 0x2f303c68
add ecx, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
mov ecx, dword [0x101ae830]
mov eax, dword [edx + 0x44]
add ecx, 0xffffffd7
xor ecx, 0x2f303c69
add ecx, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x4c]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [0x101ae714]
lea eax, [ecx + 0x6c]
mov ecx, dword [ecx]
push eax
call edx
mov ecx, dword [ebp - 0x6c]
mov eax, dword [0x101ae718]
push esi
mov ecx, dword [ecx]
call eax
mov eax, dword [ebp - 0x64]
mov ecx, 4
cmp dword [edi + 0x1c], eax
jg 0x1002ccdf
xor eax, eax
mov dword [ebp - 0x68], eax
nop dword [eax]
movss xmm3, dword [0x10105df4]
xor esi, esi
test eax, eax
cmove esi, ecx
push esi
push dword [edi]
call fcn.1002c7e0
test al, al
je 0x1002ccaf
mov ecx, dword [edi]
add ecx, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x1002ccaf
mov ecx, dword [0x101ae634]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
mov dword [ebp - 0x60], eax
test eax, eax
je 0x1002ccaf
mov ecx, dword [0x101ae878]
mov edx, dword [edi]
add ecx, 0xffffffc5
mov eax, dword [eax + 0xb0]
xor ecx, 0x2f303c7b
mov ecx, dword [ecx + edx]
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4]
add edx, dword [ebp - 0x60]
je 0x1002ccaf
mov eax, dword [edx + 8]
mov ecx, esi
shl ecx, 4
add ecx, esi
lea eax, [eax + ecx*4]
add eax, edx
je 0x1002ccaf
movss xmm3, dword [eax + 0x18]
subss xmm3, dword [eax + 0x30]
movss xmm4, dword [eax + 0x1c]
movss xmm5, dword [eax + 0x14]
mov ecx, dword [ebp - 0x6c]
movaps xmm2, xmm5
movss dword [ebp - 0x20], xmm5
movaps xmm1, xmm5
movss dword [ebp - 0x1c], xmm3
movaps xmm0, xmm3
movss dword [ebp - 0x18], xmm4
mov eax, dword [eax]
push 1
push dword [0x10134ba4]
lea eax, [eax + eax*2]
add eax, eax
push dword [0x10134ba0]
mulss xmm0, dword [ecx + eax*8 + 0x3d0]
mulss xmm2, dword [ecx + eax*8 + 0x3cc]
mulss xmm1, dword [ecx + eax*8 + 0x3dc]
mulss xmm5, dword [ecx + eax*8 + 0x3ec]
addss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [ecx + eax*8 + 0x3d4]
addss xmm0, dword [ecx + eax*8 + 0x3d8]
addss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ecx + eax*8 + 0x3e0]
mulss xmm3, dword [ecx + eax*8 + 0x3f0]
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [ecx + eax*8 + 0x3e4]
mulss xmm4, dword [ecx + eax*8 + 0x3f4]
addss xmm5, xmm3
addss xmm0, dword [ecx + eax*8 + 0x3e8]
addss xmm4, dword [ecx + eax*8 + 0x3f8]
mov eax, dword [edi]
mov dword [ebp - 0x58], eax
mov eax, dword [0x10130e2c]
addss xmm1, xmm0
movss dword [ebp - 0x20], xmm2
addss xmm5, xmm4
mov dword [ebp - 0x48], 0x3f800000
mov byte [ebp - 0x44], 1
mov dword [ebp - 0x5c], eax
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x54], xmm2
movss dword [ebp - 0x18], xmm5
movss dword [ebp - 0x50], xmm1
movss dword [ebp - 0x4c], xmm5
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 0x34], 0
call fcn.100f25e0
cmp eax, dword [0x10134ba4]
je 0x1002cca0
mov ecx, dword [0x101ae63c]
lea edx, [ebp - 0x20]
push ecx
mov dword [esp], 0x3dcccccd
push 0
mov eax, dword [ecx]
push 0
push 0
push 0xff
mov eax, dword [eax + 0x14]
push edx
push 0x10130e38
call eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x5c]
call fcn.100dd1a0
test al, al
jne 0x1002ccc5
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp eax, 2
jge 0x1002ccdc
mov ecx, 4
jmp 0x1002cac0
mov eax, dword [ebp - 0x64]
add eax, 0x20
cmp dword [ebp - 0x38], 3
mov dword [edi + 0x1c], eax
jne 0x1002ccdc
cvttss2si eax, dword [ebp - 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x64]
movss xmm0, dword [ebp - 0x30]
movss dword [0x10130e38], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [0x10130e3c], xmm0
movss xmm0, dword [ebp - 0x28]
movss dword [0x10130e40], xmm0
cmp dword [edi + 0x20], eax
jg 0x1002d0f0
mov esi, dword [edi]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x28c]
call eax
cmp dword [esi + 0x39e1], 0
je 0x1002ce89
mov eax, dword [0x101ae79c]
mov eax, dword [esi + eax]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x1002ce89
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x1002ce89
cmp byte [eax + 0x109], 0
xorps xmm5, xmm5
jne 0x1002cdb5
mov eax, dword [0x101ae890]
add eax, 0xffffffbf
xor eax, 0x2f303c81
movss xmm0, dword [eax + ecx]
ucomiss xmm0, xmm5
lahf
test ah, 0x44
jp 0x1002cdb5
mov eax, dword [0x101ae904]
add eax, 0xffffffa2
xor eax, 0x2f303c9e
mov eax, dword [eax + ecx]
mov ecx, dword [0x101ae600]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
jne 0x1002ce89
xorps xmm5, xmm5
mov eax, dword [ebp - 0x60]
mov ecx, dword [0x101ae8f8]
add ecx, 0xffffffa5
xor ecx, 0x2f303c9b
mov eax, dword [eax + 0x60]
mov eax, dword [ecx + eax]
test eax, eax
je 0x1002ce89
movss xmm4, dword [eax + 0x1ac]
movss xmm3, dword [ebp - 0x18]
cvtps2pd xmm4, xmm4
cvtps2pd xmm0, xmm3
addsd xmm4, qword [str.333333]
comisd xmm0, xmm4
movsd qword [ebp - 0x30], xmm4
jbe 0x1002ce8e
subsd xmm0, xmm4
cvtpd2ps xmm0, xmm0
subss xmm0, dword [0x10105ecc]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x10105e40]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm5
jb 0x1002ce4e
sub esp, 8
mov dword [esp + 4], 0x3f800000
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_fminf]
movss xmm3, dword [ebp - 0x18]
add esp, 8
movsd xmm4, qword [ebp - 0x30]
fstp dword [ebp - 0x60]
movss xmm5, dword [ebp - 0x60]
movaps xmm1, xmm5
mulss xmm1, xmm5
cvtps2pd xmm2, xmm3
movaps xmm0, xmm1
addss xmm1, xmm1
mulss xmm0, dword [0x10105eb4]
subsd xmm4, xmm2
mulss xmm1, xmm5
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm4
addsd xmm0, xmm2
cvtpd2ps xmm3, xmm0
movss dword [ebp - 0x18], xmm3
jmp 0x1002ce8e
movss xmm3, dword [ebp - 0x18]
mov eax, dword [0x101ae65c]
movss xmm2, dword [eax + 0x20]
mulss xmm2, dword [0x10105f08]
mov eax, dword [ebp - 0x6c]
movaps xmm0, xmm2
movaps xmm1, xmm2
mulss xmm0, dword [eax + 0x2c]
mulss xmm1, dword [eax + 0x30]
mulss xmm2, dword [eax + 0x34]
xor eax, eax
mov dword [ebp - 0x68], eax
addss xmm0, dword [ebp - 0x20]
addss xmm1, dword [ebp - 0x1c]
addss xmm2, xmm3
movss dword [ebp - 0x20], xmm0
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x18], xmm2
nop word [eax + eax]
movss xmm3, dword [0x10105df4]
xor esi, esi
test eax, eax
mov eax, 4
cmove esi, eax
push esi
push dword [0x10130e2c]
call fcn.1002c7e0
test al, al
je 0x1002d0d5
mov ecx, dword [0x10130e2c]
add ecx, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test eax, eax
je 0x1002d0d5
mov ecx, dword [0x101ae634]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
call edx
mov edx, eax
mov dword [ebp - 0x60], edx
test edx, edx
je 0x1002d0d5
mov ecx, dword [0x101ae878]
mov eax, dword [0x10130e2c]
add ecx, 0xffffffc5
xor ecx, 0x2f303c7b
mov ecx, dword [ecx + eax]
mov eax, dword [edx + 0xb0]
lea ecx, [ecx + ecx*2]
lea edx, [eax + ecx*4]
add edx, dword [ebp - 0x60]
je 0x1002d0d5
mov eax, dword [edx + 8]
mov ecx, esi
shl ecx, 4
add ecx, esi
lea esi, [eax + ecx*4]
add esi, edx
je 0x1002d0d5
movss xmm4, dword [esi + 0x18]
subss xmm4, dword [esi + 0x30]
movss xmm5, dword [esi + 0x1c]
movss xmm6, dword [esi + 0x14]
mov eax, dword [0x101ae8f8]
movaps xmm3, xmm6
mov edx, dword [0x10130e2c]
add eax, 0xffffffa5
movss dword [ebp - 0x30], xmm6
xor eax, 0x2f303c9b
movss dword [ebp - 0x2c], xmm4
movaps xmm2, xmm6
movss dword [ebp - 0x28], xmm5
push 1
mov ecx, dword [eax + edx]
mov eax, dword [esi]
push dword [0x10134ba4]
push dword [0x10134ba0]
lea eax, [eax + eax*2]
add eax, eax
movss xmm1, dword [ecx + eax*8 + 8]
movss xmm0, dword [ecx + eax*8 + 4]
mulss xmm3, dword [ecx + eax*8]
mulss xmm2, dword [ecx + eax*8 + 0x10]
mulss xmm6, dword [ecx + eax*8 + 0x20]
mulss xmm1, xmm5
mulss xmm0, xmm4
addss xmm1, dword [ecx + eax*8 + 0xc]
addss xmm3, xmm0
movss xmm0, dword [ecx + eax*8 + 0x14]
mulss xmm0, xmm4
addss xmm3, xmm1
movss xmm1, dword [ecx + eax*8 + 0x18]
mulss xmm1, xmm5
addss xmm2, xmm0
movss xmm0, dword [ecx + eax*8 + 0x24]
mulss xmm0, xmm4
addss xmm1, dword [ecx + eax*8 + 0x1c]
addss xmm6, xmm0
addss xmm2, xmm1
movss xmm1, dword [ecx + eax*8 + 0x28]
mulss xmm1, xmm5
addss xmm1, dword [ecx + eax*8 + 0x2c]
mov eax, dword [edi]
movss dword [ebp - 0x30], xmm3
movss dword [ebp - 0x2c], xmm2
mov dword [ebp - 0x48], 0x3f800000
addss xmm6, xmm1
mov byte [ebp - 0x44], 1
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], eax
movss dword [ebp - 0x54], xmm3
movss dword [ebp - 0x50], xmm2
movss dword [ebp - 0x28], xmm6
movss dword [ebp - 0x4c], xmm6
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 0x34], 0
call fcn.100f25e0
cmp eax, dword [0x10134ba4]
je 0x1002d0c6
mov ecx, dword [0x101ae63c]
lea edx, [ebp - 0x30]
push ecx
mov dword [esp], 0x3dcccccd
push 0
mov eax, dword [ecx]
push 0
push 0
push 0xff
mov eax, dword [eax + 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x5c]
call fcn.100dd1a0
test al, al
jne 0x1002d0e7
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp eax, 2
jl 0x1002cee0
jmp 0x1002d0f0
mov eax, dword [ebp - 0x64]
add eax, 0x20
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0x64]
cmp eax, ecx
jg 0x1002d103
cmp dword [edi + 0x1c], ecx
jg 0x1002d103
xor cl, cl
jmp 0x1002d105
mov cl, 1
mov byte [edi + 0x28], cl
test cl, cl
je 0x1002d219
sub eax, dword [ebp - 0x64]
movaps xmm0, xmmword [0x10106ba0]
xorps xmm0, xmmword [0x10106da0]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x1c]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov eax, 0x10
mov dword [ebp - 0x78], 0xe7e2b1e7
mov word [ebp - 0x74], 0xc2b1
movups xmmword [ebp - 0x88], xmm0
nop dword [eax]
xor byte [ebp + eax - 0x88], 0xc2
inc eax
cmp eax, 0x16
jb 0x1002d150
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xa0]
call fcn.10033190
add esp, 8
mov edx, dword [ebp - 0x70]
mov dword [ebp - 4], 0
mov ecx, dword [edx + 0x64a1c]
cmp ecx, dword [edx + 0x64a20]
je 0x1002d1d0
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
add dword [edx + 0x64a1c], 0x18
jmp 0x1002d1dd
push eax
push ecx
lea ecx, [esi + 0x64a18]
call fcn.10034bd0
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0xf
jbe 0x1002d219
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002d20f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002d20f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f2c1b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100f27a0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8