Function at 0x100172a0
Capabilities:
Encode data using xor
Get system information on windows

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 0x1009cd6b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x330
mov eax, dword [0x100b7080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100b8f88], 0
jne 0x10017433
push 0x100
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.100898cb
add esp, 0x24
test eax, eax
jne 0x10017433
mov ch, 0x19
mov byte [ebp - 0x313], 0
mov cl, 0x6a
mov byte [ebp - 0x318], ch
mov al, 0x3c
mov byte [ebp - 0x313], 0
mov dl, al
mov ah, cl
xor al, ch
xor ah, ch
mov byte [ebp - 0x317], al
xor cl, ch
mov byte [ebp - 0x314], ah
xor dl, ch
lea eax, [ebp - 0x218]
mov byte [ebp - 0x316], cl
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 0x315], dl
push eax
lea eax, [ebp - 0x317]
push eax
lea eax, [ebp - 0x118]
push 0x100
push eax
call fcn.10017a80
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x24c], 0
add esp, 0x14
lea edx, [ecx + 1]
movups xmmword [ebp - 0x260], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100173c4
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10002570
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0
call fcn.10016940
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24c]
cmp ecx, 0xf
jbe 0x10017433
mov edx, dword [ebp - 0x260]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017429
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001782f
push ecx
push edx
call fcn.100812a6
add esp, 8
mov ecx, 0xd79978
call fcn.10018500
mov esi, eax
test esi, esi
je 0x100174bd
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x100174bd
mov eax, dword [esi]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x100174bd
push 4
push esi
call edi
test eax, eax
jne 0x100174bd
call fcn.1007fe90
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10080360
push 0x10017280
push 0x100babfc
call fcn.1007fba0
call fcn.1007fef0
push 4
push esi
mov dword [0x100babfc], esi
call edi
test eax, eax
jne 0x100174bd
call fcn.1007fe90
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10080360
push 0x10017280
push 0x100babfc
call fcn.1007f710
call fcn.1007fef0
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x258]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp ecx, 2
jle 0x1001750b
mov edi, 1
mov esi, edi
shl esi, cl
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, esi
shl edi, cl
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x2c
lea eax, [ebp - 0x274]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test eax, eax
je 0x1001753d
mov eax, dword [ebp - 0x268]
mov ecx, eax
shr ecx, 1
lea eax, [eax + eax*2]
shr eax, 1
push eax
push ecx
call esi
push eax
call edi
call esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call edi
push str.GameBarPresenceWriter.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001758c
push str.IsGameModeEnabled
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10017585
call eax
test eax, eax
je 0x10017585
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movsd xmm0, qword [0x100ae950]
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
movsd qword [0x100bac00], xmm0
call fcn.1009b360
divsd xmm0, qword [0x100ae970]
lea eax, [ebp - 0x248]
push eax
movsd qword [0x100bac10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x248]
call fcn.1009b360
divsd xmm0, qword [0x100bac10]
push 0x98
lea eax, [ebp - 0x310]
push 0
push eax
movsd qword [0x100bac08], xmm0
call fcn.100833b0
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.10007c30
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x100af220]
movups xmmword [ebp - 0x32c], xmm0
mov dword [ebp - 0x31c], 0x1b6034
mov al, byte [ebp - 0x32c]
xor byte [ebp + ecx - 0x32b], al
inc ecx
cmp ecx, 0x12
jb 0x10017642
lea edx, [ebp - 0x32b]
mov byte [ebp - 0x319], 0
lea ecx, [ebp - 0x310]
call fcn.10005d60
mov esi, eax
lea eax, [ebp - 0x340]
push 0
push 8
push eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + esi + 0x14], ecx
call fcn.1007dcf9
add esp, 0xc
mov ecx, dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.10003590
mov dl, 0x13
mov byte [ebp - 0x316], 0
mov cl, 0x4e
mov byte [ebp - 0x318], dl
xor cl, dl
mov byte [ebp - 0x316], 0
mov byte [ebp - 0x317], cl
lea edx, [ebp - 0x317]
mov ecx, eax
call fcn.10005d60
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x310]
call fcn.10005960
cmp dword [ebp - 0x220], 0xf
lea esi, [ebp - 0x234]
push 0x10016ad0
cmova esi, dword [ebp - 0x234]
lea edx, [ebp - 0x234]
cmova edx, dword [ebp - 0x234]
push 0xfffffffffffffffc
push esi
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp - 0x220]
mov dword [0x100bac18], eax
cmp ecx, 0xf
jbe 0x1001777d
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017773
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017834
push ecx
push edx
call fcn.100812a6
add esp, 8
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x310]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x314], eax
lea ecx, [ebp - 0x30c]
call fcn.10007b60
mov eax, dword [ebp - 0x310]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x310]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x314], eax
lea eax, [ebp - 0x2c0]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1007d8ed
add esp, 4
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.10081245
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1008643f
call fcn.1008643f
int3