Function at 0x100352c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10314bbf
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4c], 0
mov eax, dword [0x1060b5e0]
lea edi, [eax + 0xaa8]
mov dword [ebp - 0x64], esi
mov esi, dword [edi]
mov ecx, dword [esi + 0x25c]
cmp ecx, 8
je 0x1003591f
cmp ecx, 9
je 0x1003591f
cmp byte [0x1060f5d4], 0
je 0x100353d3
mov ecx, dword [0x1060f6d8]
test ecx, ecx
je 0x1003533f
cmp dword [0x1060f6dc], 0
jne 0x10035348
cmp ecx, 4
je 0x10035348
xor cl, cl
jmp 0x1003534a
mov cl, 1
test cl, cl
je 0x1003535b
cmp byte [0x1060f6e0], 0
je 0x1003535b
mov cl, 1
jmp 0x1003535d
xor cl, cl
test cl, cl
jne 0x100353d3
cmp byte [0x106110ac], cl
jne 0x10035388
cmp byte [0x106110bc], cl
je 0x10035388
mov eax, dword [eax + 0x5528]
mov byte [0x106110bc], cl
or dword [eax + 0x30], 2
mov eax, dword [0x1060b5e0]
jmp 0x100353d3
mov edx, dword [eax + 0x5528]
mov ecx, dword [edx + 0x30]
test cl, 2
je 0x100353c5
test byte [esi + 0x104], 1
je 0x100353b0
mov cl, 1
mov byte [0x106110bc], 1
mov byte [0x106110ac], cl
jmp 0x100353d3
and ecx, 0xfffffffd
mov dword [edx + 0x30], ecx
xor cl, cl
mov eax, dword [0x1060b5e0]
mov byte [0x106110ac], cl
jmp 0x100353d3
mov byte [0x106110ac], 0
mov byte [0x106110bc], 0
mov eax, dword [eax + 0x5528]
test dword [eax + 0x30], 0x20000
jne 0x1003591f
cmp byte [0x1060f5d5], 0
je 0x1003591f
cmp byte [0x1060f5d6], 0
je 0x1003540e
mov ecx, 0x1060f5d8
call fcn.10034ce0
test al, al
je 0x1003591f
mov eax, dword [edi]
mov dword [ebp - 0x80], 0
movss xmm1, dword [eax + 0x118]
movss xmm0, dword [eax + 0x114]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
movss dword [ebp - 0x4c], xmm0
sqrtss xmm0, dword [ebp - 0x4c]
movss dword [ebp - 0x80], xmm0
movss xmm0, dword [0x1041ef28]
comiss xmm0, dword [ebp - 0x80]
ja 0x1003591f
mov eax, dword fs:[0x2c]
mov ecx, dword [0x104c14e0]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x106110dc]
mov dword [ebp - 0x44], esi
cmp eax, dword [esi + 4]
jg 0x1003593c
mov eax, dword [0x10610b10]
cmp eax, dword [esi + 4]
jg 0x10035af3
mov eax, dword [0x1060f6ec]
test eax, eax
jne 0x1003564f
mov esi, dword [0x1060b5e0]
mov eax, dword [esi + 0xaa8]
test byte [eax + 0x104], 1
jne 0x1003591f
mov edi, dword [esi + 0x5528]
mov eax, dword [edi + 0x30]
mov ecx, eax
shr ecx, 3
mov edx, eax
and ecx, 0xffffff01
shr edx, 0xa
mov dword [ebp - 0x4c], ecx
and dl, 1
mov ecx, eax
shr eax, 4
shr ecx, 9
and cl, 1
test al, 1
je 0x10035525
movss xmm0, dword [0x1041f224]
mov dword [0x10610c4c], 0xc3340000
test cl, cl
je 0x10035509
movss xmm0, dword [0x1041f22c]
mov dword [0x10610c4c], 0xc3610000
jmp 0x10035592
test dl, dl
je 0x10035592
movss xmm0, dword [0x1041f218]
mov dword [0x10610c4c], 0xc3070000
jmp 0x10035592
test cl, cl
je 0x10035555
cmp byte [ebp - 0x4c], 0
movss xmm0, dword [0x1041efe8]
mov dword [0x10610c4c], 0x42b40000
je 0x10035592
movss xmm0, dword [0x1041efb8]
mov dword [0x10610c4c], 0x42340000
jmp 0x10035592
test dl, dl
je 0x10035585
cmp byte [ebp - 0x4c], 0
movss xmm0, dword [0x1041f20c]
mov dword [0x10610c4c], 0xc2b40000
je 0x10035592
movss xmm0, dword [0x1041f200]
mov dword [0x10610c4c], 0xc2340000
jmp 0x10035592
mov dword [0x10610c4c], 0
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x64]
addss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
mov dword [edi + 0x24], 0
mov eax, dword [esi + 0x5528]
mov dword [eax + 0x28], 0
mov eax, dword [esi + 0xaa8]
movss xmm0, dword [ecx + 4]
fld dword [eax + 0x118]
fld dword [eax + 0x114]
fpatan
fstp dword [ebp - 0x44]
movss xmm1, dword [ebp - 0x44]
mulss xmm1, dword [0x1041efc8]
subss xmm0, xmm1
call fcn.10127310
comiss xmm0, dword [0x1041ec1c]
mov ecx, dword [0x10610cec]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
movss dword [ebp - 0x50], xmm0
jbe 0x10035615
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
xorps xmm0, xmmword [0x1041f480]
jmp 0x10035623
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
mov eax, dword [0x1060b5e0]
mov esi, dword [ebp - 0x64]
mov eax, dword [eax + 0x5528]
movss dword [eax + 0x28], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [ebp - 0x50]
call fcn.10127310
movss dword [esi + 4], xmm0
jmp 0x1003591f
cmp eax, 1
jne 0x1003591f
mov ecx, dword [0x1060b5e0]
mov eax, dword [ecx + 0xaa8]
test byte [eax + 0x104], 1
jne 0x1003591f
mov eax, dword [ecx + 0x5528]
movsx eax, word [eax + 0x44]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [0x1060f6f0]
jle 0x1003591f
mov ecx, dword [0x1060b288]
lea edx, [ebp - 0x70]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov eax, dword [ecx]
push edx
call dword [eax + 0x48]
mov eax, dword [0x1060b5e0]
mov ecx, dword [eax + 0xaa8]
test ecx, ecx
jne 0x100356ca
xorps xmm1, xmm1
xorps xmm2, xmm2
xorps xmm3, xmm3
jmp 0x100356ef
movq xmm0, qword [ecx + 0x138]
mov eax, dword [ecx + 0x140]
movq qword [ebp - 0x5c], xmm0
movss xmm3, dword [ebp - 0x5c]
movss xmm1, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
movss xmm2, dword [ebp - 0x54]
xorps xmm0, xmm0
addss xmm3, dword [ecx + 0x114]
addss xmm1, dword [ecx + 0x118]
addss xmm2, dword [ecx + 0x11c]
test ecx, ecx
jne 0x10035716
xorps xmm4, xmm4
xorps xmm5, xmm5
jmp 0x1003573b
movq xmm0, qword [ecx + 0x138]
mov eax, dword [ecx + 0x140]
movq qword [ebp - 0x5c], xmm0
movss xmm0, dword [ebp - 0x5c]
movss xmm4, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
movss xmm5, dword [ebp - 0x54]
subss xmm3, xmm0
subss xmm1, xmm4
subss xmm2, xmm5
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x5c]
movss dword [ebp - 0x5c], xmm3
movss dword [ebp - 0x58], xmm1
movss dword [ebp - 0x54], xmm2
call fcn.10032b20
lea ecx, [ebp - 0x5c]
movss xmm0, dword [eax]
subss xmm0, dword [ebp - 0x70]
movss dword [ebp - 0x5c], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [ebp - 0x6c]
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [eax + 8]
lea eax, [ebp - 0x7c]
subss xmm0, dword [ebp - 0x68]
push eax
movss dword [ebp - 0x54], xmm0
call fcn.1001da10
movss xmm0, dword [0x1041efb8]
movss xmm2, dword [eax + 4]
movaps xmm1, xmm2
andps xmm1, xmmword [0x1041f450]
comiss xmm0, xmm1
jbe 0x100357fc
mov eax, dword [0x1060b5e0]
mov ecx, dword [0x10610cec]
mov eax, dword [eax + 0x5528]
cmp word [eax + 0x44], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
jle 0x100357e9
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
jmp 0x10035908
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
jmp 0x1003590f
movss xmm0, dword [0x1041f000]
comiss xmm0, xmm1
jbe 0x100358c0
xorps xmm0, xmm0
comiss xmm2, xmm0
seta al
setbe cl
test al, al
je 0x10035874
mov eax, dword [0x1060b5e0]
mov ecx, dword [0x106110e4]
mov eax, dword [eax + 0x5528]
cmp word [eax + 0x44], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
jle 0x10035851
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
xorps xmm0, xmmword [0x1041f480]
jmp 0x1003585f
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
mov eax, dword [0x1060b5e0]
mov eax, dword [eax + 0x5528]
movss dword [eax + 0x24], xmm0
jmp 0x1003591f
test cl, cl
je 0x1003591f
mov eax, dword [0x1060b5e0]
mov ecx, dword [0x106110e4]
mov eax, dword [eax + 0x5528]
cmp word [eax + 0x44], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
jle 0x100358a9
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
jmp 0x1003585f
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
xorps xmm0, xmmword [0x1041f480]
jmp 0x1003585f
movss xmm0, dword [0x1041f028]
comiss xmm0, xmm1
jbe 0x1003591f
mov eax, dword [0x1060b5e0]
mov ecx, dword [0x10610cec]
mov eax, dword [eax + 0x5528]
cmp word [eax + 0x44], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
jle 0x100358fa
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
jmp 0x1003590f
mov dword [ebp - 0x44], eax
call dword [ebp - 0x44]
fstp dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x44]
xorps xmm0, xmmword [0x1041f480]
mov eax, dword [0x1060b5e0]
mov eax, dword [eax + 0x5528]
movss dword [eax + 0x28], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret 4
push 0x106110dc
call fcn.102bba07
add esp, 4
cmp dword [0x106110dc], 0xffffffff
jne 0x10035477
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
push 0xe
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x4c], 1
call fcn.1001a120
mov esi, 0x1036f290
jmp 0x10035990
mov al, byte [esi]
lea ecx, [ebp - 0x28]
xor al, 0xa5
mov byte [ebp - 0x60], al
push dword [ebp - 0x60]
call fcn.1001a280
add esi, 2
cmp esi, 0x1036f2a8
jne 0x10035990
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmovae esi, dword [ebp - 0x28]
test edi, edi
je 0x100359d5
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x100359d5
sub edx, esi
jmp 0x100359da
or edx, 0xffffffff
jmp 0x100359da
cmp edx, 0xffffffff
je 0x10035a7d
mov dword [ebp - 0x50], 1
jmp 0x100359f0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea eax, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
setae cl
add esi, edx
mov byte [ebp - 0x45], cl
test cl, cl
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x60]
cmovne eax, dword [ebp - 0x28]
sub esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
mov dword [ebp - 0x60], eax
cmovae ecx, edx
cmp byte [ebp - 0x45], 0
mov edx, dword [ecx]
lea ecx, [ebp - 0x28]
cmovne ecx, dword [ebp - 0x28]
sub edi, edx
add ecx, esi
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
test edi, edi
je 0x10035a6d
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10035a6d
sub edx, esi
jmp 0x10035a72
or edx, 0xffffffff
jmp 0x10035a72
cmp edx, 0xffffffff
jne 0x100359f0
jmp 0x10035a7d
mov ecx, dword [0x1060b27c]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [0x10610cec], eax
cmp ecx, 0x10
jb 0x10035ad7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10035acb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10035acb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x10035ad7
push 0x106110dc
mov dword [ebp - 4], 0xffffffff
call fcn.102bb9b6
mov esi, dword [ebp - 0x44]
add esp, 4
jmp 0x10035477
push 0x10610b10
call fcn.102bba07
add esp, 4
cmp dword [0x10610b10], 0xffffffff
jne 0x10035488
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
push 0x11
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x4c], 2
call fcn.1001a120
mov esi, 0x1036f78c
jmp 0x10035b45
mov al, byte [esi]
lea ecx, [ebp - 0x40]
xor al, 0xa5
mov byte [ebp - 0x44], al
push dword [ebp - 0x44]
call fcn.1001a280
add esi, 2
cmp esi, 0x1036f7aa
jne 0x10035b45
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
mov edi, dword [ebp - 0x30]
cmovae esi, dword [ebp - 0x40]
test edi, edi
je 0x10035b8a
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10035b8a
sub edx, esi
jmp 0x10035b8f
or edx, 0xffffffff
jmp 0x10035b8f
cmp edx, 0xffffffff
je 0x10035c2e
mov dword [ebp - 0x50], 1
jmp 0x10035ba1
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
setae cl
add esi, edx
mov byte [ebp - 0x45], cl
test cl, cl
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x44]
cmovne eax, dword [ebp - 0x40]
sub esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
mov dword [ebp - 0x44], eax
cmovae ecx, edx
cmp byte [ebp - 0x45], 0
mov edx, dword [ecx]
lea ecx, [ebp - 0x40]
cmovne ecx, dword [ebp - 0x40]
sub edi, edx
add ecx, esi
mov eax, edi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov dword [ebp - 0x30], edi
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
test edi, edi
je 0x10035c1e
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x10035c1e
sub edx, esi
jmp 0x10035c23
or edx, 0xffffffff
jmp 0x10035c23
cmp edx, 0xffffffff
jne 0x10035ba1
jmp 0x10035c2e
mov ecx, dword [0x1060b27c]
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae edx, dword [ebp - 0x40]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x40]
call eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
mov dword [0x106110e4], eax
cmp ecx, 0x10
jb 0x10035c88
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10035c7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10035c7c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.102bb95a
add esp, 8
jmp 0x10035c88
push 0x10610b10
mov dword [ebp - 4], 0xffffffff
call fcn.102bb9b6
add esp, 4
jmp 0x10035488