Function at 0x100171c0
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 0x1009c8bb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x330
mov eax, dword [0x100b7040]
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 [0x100b8f48], 0
jne 0x1001734f
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.100894ce
add esp, 0x24
test eax, eax
jne 0x1001734f
mov ch, 0x73
mov byte [ebp - 0x313], 0
xor ah, ah
mov byte [ebp - 0x318], ch
mov al, 0x56
xor ah, ch
mov dl, al
mov byte [ebp - 0x314], ah
xor al, ch
xor cl, cl
mov byte [ebp - 0x317], al
xor cl, ch
lea eax, [ebp - 0x218]
mov byte [ebp - 0x316], cl
push eax
lea eax, [ebp - 0x21c]
xor dl, ch
push eax
lea eax, [ebp - 0x317]
mov byte [ebp - 0x315], dl
push eax
lea eax, [ebp - 0x118]
push 0x100
push eax
call fcn.100179a0
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
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100172e0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10002580
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0
call fcn.10016860
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24c]
cmp ecx, 0xf
jbe 0x1001734f
mov edx, dword [ebp - 0x260]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017345
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001774d
push ecx
push edx
call fcn.100810d6
add esp, 8
mov ecx, 0xd79978
call fcn.10018420
mov esi, eax
test esi, esi
je 0x100173d9
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x100173d9
mov eax, dword [esi]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x100173d9
push 4
push esi
call edi
test eax, eax
jne 0x100173d9
call fcn.1007fcc0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10080190
push 0x100171a0
push 0x100baa1c
call fcn.1007f9d0
call fcn.1007fd20
push 4
push esi
mov dword [0x100baa1c], esi
call edi
test eax, eax
jne 0x100173d9
call fcn.1007fcc0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10080190
push 0x100171a0
push 0x100baa1c
call fcn.1007f540
call fcn.1007fd20
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 0x10017427
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 0x10017459
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 0x100174a8
push str.IsGameModeEnabled
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100174a1
call eax
test eax, eax
je 0x100174a1
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 [0x100ae900]
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
movsd qword [0x100baa20], xmm0
call fcn.1009aeb0
divsd xmm0, qword [0x100ae920]
lea eax, [ebp - 0x248]
push eax
movsd qword [0x100baa30], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x248]
call fcn.1009aeb0
divsd xmm0, qword [0x100baa30]
push 0x98
lea eax, [ebp - 0x310]
push 0
push eax
movsd qword [0x100baa28], xmm0
call fcn.100831e0
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.10007ba0
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x100afc70]
movups xmmword [ebp - 0x32c], xmm0
mov dword [ebp - 0x31c], 0x4a3165
nop
mov al, byte [ebp - 0x32c]
xor byte [ebp + ecx - 0x32b], al
inc ecx
cmp ecx, 0x12
jb 0x10017560
lea edx, [ebp - 0x32b]
mov byte [ebp - 0x319], 0
lea ecx, [ebp - 0x310]
call fcn.10005cd0
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.1007dbf9
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.10003580
mov dl, 0x5b
mov byte [ebp - 0x316], 0
mov cl, 6
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.10005cd0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x310]
call fcn.100058d0
cmp dword [ebp - 0x220], 0xf
lea esi, [ebp - 0x234]
push 0x100169f0
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 [0x100baa38], eax
cmp ecx, 0xf
jbe 0x1001769b
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017691
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017752
push ecx
push edx
call fcn.100810d6
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.10007ad0
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.1007d7ed
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.10081075
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1008626f
call fcn.1008626f
int3