Function at 0x100e3230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x178], eax
mov eax, dword [0x1029e3e4]
push edi
mov edi, dword [ebp + 8]
test al, 1
jne 0x100e326e
or eax, 1
mov dword [0x1029e3e4], eax
mov eax, dword [0x1029e3c0]
mov dword [0x1029e3e0], eax
jmp 0x100e3273
mov eax, dword [0x1029e3e0]
movss xmm1, dword [edi + eax + 4]
lea ecx, [edi + 8]
movss xmm0, dword [edi + eax]
mulss xmm0, xmm0
mov eax, dword [ecx]
mulss xmm1, xmm1
mov eax, dword [eax + 0x28]
addss xmm0, xmm1
sqrtss xmm0, xmm0
comiss xmm0, dword [0x101a2cb0]
setae byte [ebp - 0x179]
call eax
imul esi, eax, 0x88
add esi, 0x1029bd98
cmp dword [0x101cf0a0], 0
je 0x100e3838
mov ecx, dword [0x101cf098]
test ecx, ecx
je 0x100e3838
mov eax, dword [0x1029bcec]
test al, 1
jne 0x100e32ea
or eax, 1
mov dword [0x1029bcec], eax
mov eax, dword [0x1029bce4]
mov dword [0x1029bce8], eax
jmp 0x100e32ef
mov eax, dword [0x1029bce8]
cmp dword [eax + ecx], 0
jne 0x100e3838
mov eax, dword [0x1029bcf4]
test al, 1
jne 0x100e3316
or eax, 1
mov dword [0x1029bcf4], eax
mov eax, dword [0x1029bce0]
mov dword [0x1029bcf0], eax
jmp 0x100e331b
mov eax, dword [0x1029bcf0]
cmp dword [eax + ecx], 0
jle 0x100e3838
mov eax, dword [ebp - 0x178]
cmp dword [eax + 0x14], 2
jl 0x100e3838
push 0x90
lea eax, [ebp - 0x174]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x80
xorps xmm0, xmm0
mov dword [ebp - 0xe4], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xc0], 0
push 0
push eax
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xbc], 0
movups xmmword [ebp - 0xd0], xmm0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
add esp, 0x18
mov word [ebp - 0x38], 0
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1029bb40]
lea edx, [ebp - 0x174]
push edx
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
cmp byte [ebp - 0x38], 0
jne 0x100e3838
cmp byte [0x1028d72b], 0
je 0x100e3838
mov eax, dword [0x1027efa4]
cmp dword [edi + eax], 0
je 0x100e3838
mov eax, dword [ebp - 0x178]
movss xmm0, dword [0x1019e930]
movss xmm4, dword [0x1019e874]
movss xmm1, dword [eax + 0x3364]
movss xmm3, dword [eax + 0xcef8]
movss xmm2, dword [eax + 0x6740]
subss xmm3, xmm1
movss xmm5, dword [eax + 0x9b1c]
subss xmm2, xmm1
subss xmm5, xmm1
andps xmm3, xmm0
mulss xmm3, dword [0x101ab02c]
andps xmm2, xmm0
andps xmm5, xmm0
mulss xmm2, xmm4
comiss xmm4, xmm3
mulss xmm5, xmm4
jbe 0x100e3452
mov dword [esi + 0x1c], 0
movaps xmm4, xmm3
mov byte [esi + 0x20], 1
comiss xmm4, xmm2
jbe 0x100e3465
mov dword [esi + 0x1c], 0xffffffff
movaps xmm4, xmm2
mov byte [esi + 0x20], 1
comiss xmm4, xmm5
jbe 0x100e3475
mov dword [esi + 0x1c], 1
mov byte [esi + 0x20], 1
push esi
push edi
call fcn.100e2fb0
push edi
call fcn.100e2800
add esp, 0xc
cmp byte [esi + 0x3c], 0
je 0x100e364f
movss xmm0, dword [esi + 0x68]
push ecx
movss dword [esp], xmm0
call fcn.10065340
movss xmm0, dword [esi + 0x64]
fstp dword [ebp - 0x18c]
movss dword [esp], xmm0
call fcn.10065340
movss xmm0, dword [ebp - 0x18c]
fstp dword [ebp - 0x190]
movss dword [esp], xmm0
call fcn.10064f60
movss xmm0, dword [ebp - 0x190]
fstp dword [ebp - 0x180]
movss dword [esp], xmm0
call fcn.10064f60
movss xmm0, dword [ebp - 0x18c]
fstp dword [ebp - 0x188]
movss dword [esp], xmm0
call fcn.10064f60
movss xmm0, dword [ebp - 0x188]
fstp dword [ebp - 0x18c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss dword [ebp - 0x188], xmm0
movss xmm0, dword [ebp - 0x180]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss xmm1, dword [ebp - 0x188]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x190]
movss dword [esp], xmm0
mulss xmm1, dword [0x1019e7f4]
movss dword [ebp - 0x188], xmm1
call fcn.10064f60
fstp dword [ebp - 0x180]
movss xmm0, dword [ebp - 0x180]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss dword [ebp - 0x180], xmm0
movss xmm0, dword [ebp - 0x18c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss xmm1, dword [ebp - 0x180]
fld dword [ebp - 0x188]
addss xmm1, xmm0
mulss xmm1, dword [0x1019e7f4]
movss dword [ebp - 0x180], xmm1
fld dword [ebp - 0x180]
fpatan
fstp dword [ebp - 0x180]
movss xmm0, dword [ebp - 0x180]
movss dword [esp], xmm0
call fcn.100653a0
fstp dword [esp]
call fcn.10065340
mov eax, dword [ebp - 0x178]
fstp dword [ebp - 0x180]
movss xmm0, dword [eax + 0xc8]
subss xmm0, dword [ebp - 0x180]
movss dword [esp], xmm0
call fcn.10065340
xor eax, eax
mov byte [esi + 0x14], 1
fstp dword [ebp - 0x180]
movss xmm0, dword [ebp - 0x180]
add esp, 4
comiss xmm0, dword [0x1019e7b8]
mov ecx, 0x10296518
setbe al
lea eax, [eax*2 - 1]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1005c450
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x24]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.100866c0
lea ecx, [ebp - 0x1c]
call fcn.10044260
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10139242
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x179], 0
jne 0x100e37ce
cmp byte [esi + 0x7c], 0
je 0x100e37ea
cmp byte [0x10296530], 0
mov eax, dword [esi + 0x80]
mov dword [esi + 0x18], eax
je 0x100e36ea
cmp byte [0x10296531], 0
jne 0x100e3748
mov byte [0x10296531], 1
xor edi, edi
nop
xor edx, edx
mov eax, edi
xor eax, dword [0x10296540]
xor edx, dword [0x10296544]
xor eax, 0x1de26cd5
mov dword [ebp - 0x178], eax
xor edx, 0xd28f2c5
mov ecx, edx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov eax, ecx
mov dword [ebp - 0x180], edx
shrd eax, edx, 7
xor al, byte [edi + 0x10296532]
xor al, cl
mov byte [edi + 0x10296532], al
inc edi
cmp edi, 0xd
jb 0x100e3690
jmp 0x100e3748
xor edi, edi
nop dword [eax]
xor edx, edx
mov eax, edi
xor eax, dword [0x10296540]
xor edx, dword [0x10296544]
xor eax, 0x1de26cd5
mov dword [ebp - 0x178], eax
xor edx, 0xd28f2c5
mov ecx, edx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov eax, ecx
mov dword [ebp - 0x180], edx
shrd eax, edx, 7
xor al, byte [edi + 0x10296532]
xor al, cl
mov byte [edi + 0x10296532], al
inc edi
cmp edi, 0xd
jb 0x100e36f0
push 0xc
push 0x10296532
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100464c0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x24]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.100866c0
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100e3824
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100e37b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100e37b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov byte [esi + 0x14], 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10139242
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x20], 0
je 0x100e37ea
mov eax, dword [esi + 0x1c]
mov ecx, 0x10296548
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1004f700
jmp 0x100e3808
mov eax, dword [ebp - 0x178]
push eax
push edi
call fcn.100e3900
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x10296560
push eax
call fcn.1004ed50
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x24]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.100866c0
lea ecx, [ebp - 0x1c]
call fcn.10044260
pop edi
mov byte [esi + 0x14], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10139242
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x14], 0
je 0x100e3845
mov ecx, esi
call fcn.100e3860
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10139242
mov esp, ebp
pop ebp
ret