Function at 0x100be060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d843d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100f3040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
vpxor xmm0, xmm0, xmm0
vmovq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
vmovss xmm0, dword [ebp + 0x2c]
vmovss dword [ebp - 0x38], xmm0
vaddss xmm0, xmm0, dword [ebp + 0x30]
push eax
push 0
lea ecx, [ebp - 0x20]
vmovss dword [ebp - 0x34], xmm0
call fcn.10053c30
vmovss xmm0, dword [ebp + 0x2c]
vsubss xmm0, xmm0, dword [ebp + 0x30]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov ebx, dword [ebp - 0x18]
vmovss dword [ebp - 0x30], xmm0
push eax
cmp edi, ebx
je 0x100be115
mov edx, edi
call fcn.10053e10
add esp, 4
add edi, 0xc
mov dword [ebp - 0x1c], edi
jmp 0x100be124
push edi
lea ecx, [ebp - 0x20]
call fcn.10053c30
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp + 0x2c]
push eax
cmp edi, ebx
je 0x100be13e
mov edx, edi
call fcn.10053e10
add esp, 4
add edi, 0xc
mov dword [ebp - 0x1c], edi
jmp 0x100be154
push edi
lea ecx, [ebp - 0x20]
call fcn.10053c30
vmovss xmm0, dword [ebp + 0x2c]
mov edi, dword [ebp - 0x1c]
vmovss dword [ebp - 0x38], xmm0
vmovq xmm0, qword [ebp + 0x10]
mov esi, dword [ebp - 0x20]
xor bl, bl
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
vmovq qword [ebp - 0x4c], xmm0
vmovq xmm0, qword [ebp + 0x1c]
vmovq qword [ebp - 0x64], xmm0
cmp esi, edi
je 0x100be377
vmovss xmm0, dword [ebp + 0x24]
vsubss xmm0, xmm0, dword [ebp + 0x18]
vmovss dword [ebp - 0x54], xmm0
vmulss xmm0, xmm0, xmm0
vmovss dword [ebp - 0x50], xmm0
vmovss xmm0, dword [esi]
vmulss xmm0, xmm0, dword [0x100e70e0]
vmovss dword [ebp - 0x34], xmm0
call fcn.1002e040
vmulss xmm1, xmm0, dword [0x100e7264]
vaddss xmm1, xmm1, dword [ebp - 0x64]
vsubss xmm0, xmm1, dword [ebp - 0x4c]
vmovss dword [ebp - 0x30], xmm0
vmovss xmm0, dword [ebp - 0x34]
call fcn.1002e080
vmulss xmm0, xmm0, dword [0x100e7264]
vaddss xmm0, xmm0, dword [ebp - 0x60]
vsubss xmm0, xmm0, dword [ebp - 0x48]
vmovss dword [ebp - 0x3c], xmm0
vmulss xmm1, xmm0, xmm0
vmovss xmm0, dword [ebp - 0x30]
vmulss xmm0, xmm0, xmm0
vaddss xmm0, xmm1, xmm0
vaddss xmm0, xmm0, dword [ebp - 0x50]
call fcn.1002e0a0
vmovss xmm2, dword [ebp - 0x3c]
vmovss xmm4, dword [ebp - 0x54]
vmovaps xmm3, xmm0
vaddss xmm1, xmm3, dword [0x100e70c8]
vmovss xmm0, dword [ebp - 0x30]
vxorps xmm5, xmm5, xmm5
vcomiss xmm5, xmm3
vdivss xmm0, xmm0, xmm1
vdivss xmm2, xmm2, xmm1
vdivss xmm4, xmm4, xmm1
vmovss dword [ebp - 0x34], xmm3
vmovss dword [ebp - 0x58], xmm0
vmovss dword [ebp - 0x3c], xmm2
vmovss dword [ebp - 0x40], xmm4
jae 0x100be336
vcomiss xmm3, xmm5
vxorps xmm1, xmm1, xmm1
vmovss dword [ebp - 0x30], xmm1
jbe 0x100be336
nop dword [eax + eax]
mov ecx, dword [0x1044c510]
lea edx, [ebp - 0x2c]
vmulss xmm0, xmm0, xmm1
vaddss xmm0, xmm0, dword [ebp - 0x4c]
vmovss dword [ebp - 0x2c], xmm0
vmulss xmm0, xmm2, xmm1
vaddss xmm0, xmm0, dword [ebp - 0x48]
vmovss dword [ebp - 0x28], xmm0
vmulss xmm0, xmm4, xmm1
vaddss xmm0, xmm0, dword [ebp - 0x44]
vmovss dword [ebp - 0x24], xmm0
mov eax, dword [ecx]
push 0
push 0x600400b
push edx
mov eax, dword [eax]
call eax
vmovss xmm3, dword [ebp - 0x34]
vmovss xmm1, dword [ebp - 0x30]
test eax, 0x600400b
je 0x100be310
vmulss xmm0, xmm3, dword [0x100e7154]
vcomiss xmm1, xmm0
vmovss xmm2, dword [0x100e719c]
vmovss xmm4, dword [0x100e71a4]
jbe 0x100be2d4
vmovaps xmm2, xmm4
vmulss xmm0, xmm3, dword [0x100e717c]
vcomiss xmm1, xmm0
jbe 0x100be2e6
vmovaps xmm2, xmm4
vmulss xmm0, xmm3, dword [0x100e718c]
vcomiss xmm1, xmm0
jbe 0x100be2fc
vmovss xmm2, dword [0x100e71d4]
vmulss xmm0, xmm2, dword [0x100e7208]
vaddss xmm0, xmm0, dword [esi + 4]
vmovss dword [esi + 4], xmm0
mov bl, 1
vaddss xmm1, xmm1, dword [0x100e7208]
vcomiss xmm3, xmm1
vmovss xmm0, dword [ebp - 0x58]
vmovss xmm2, dword [ebp - 0x3c]
vmovss xmm4, dword [ebp - 0x40]
vmovss dword [ebp - 0x30], xmm1
ja 0x100be260
add esi, 0xc
cmp esi, edi
jne 0x100be193
test bl, bl
je 0x100be377
mov ebx, dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x40]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
mov ecx, ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, edi
push eax
call fcn.100aa000
vmovss xmm0, dword [ebx]
add esp, 8
vmovss dword [ebp - 0x38], xmm0
jmp 0x100be37a
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x100be3c3
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 2
cmp ecx, 0x1000
jb 0x100be3b9
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100be3b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.100cd939
add esp, 8
vmovss xmm0, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100cd4b9
mov esp, ebp
pop ebp
ret 0x2c