Function at 0x140001290
Capabilities:
Create thread
Enumerate processes
Get common file path
Inject dll
Inject thread
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor r15d, r15d
lea rcx, str.Garrys_Mod_Lua_Executor___ScriptHook_Injector___Coded_by_t.me_Gaztoof
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x140009968], rax
lea edx, [r15 + 9]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.___Waiting_for_Gmod.exe...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002a90
lea rdx, [0x140002c60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop word [rax + rax]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001341
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001320
mov dword [rbp + 0xb0], 0x130
lea rdx, [rbp + 0xb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
nop dword [rax + rax]
lea rdx, str.gmod.exe
lea rcx, [rbp + 0xdc]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov rcx, rbx
test eax, eax
je 0x1400013a4
lea rdx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001360
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001320
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rbp + 0xb8]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xffffffff
je 0x140001320
mov edx, 0xa
mov rcx, qword [0x140009968]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.___Successfully_got_PID:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002a90
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140005614]
call fcn.140002a90
lea rdx, [rbp + 0x1e0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0xf
mov ecx, 0x20
call fcn.140003130
mov r14, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0x14
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [str.GmodLuaInjector.dll]
movups xmmword [rax], xmm0
mov ecx, dword [0x140005648]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], r15b
lea rax, [rbp + 0x1e0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001474
cmp rbx, 0xb
ja 0x14000151a
lea rax, [rbx + 0x14]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x1e0]
add rax, rbx
cmp rax, r14
jbe 0x1400014cf
lea rax, [r14 + 0x14]
lea rcx, [rbp + 0x1e0]
cmp rcx, rax
ja 0x1400014cf
lea rax, [rbp + 0x1e0]
cmp r14, rax
ja 0x1400014c0
mov rsi, r15
jmp 0x1400014d2
lea rax, [rbp + 0x1e0]
mov rsi, r14
sub rsi, rax
jmp 0x1400014d2
mov rsi, rbx
lea rcx, [r14 + rbx]
mov r8d, 0x15
mov rdx, r14
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
lea rdx, [rbp + 0x1e0]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [r14 + rsi]
mov r8, rbx
sub r8, rsi
lea rax, [rsi + rbx]
lea rdx, [rbp + 0x1e0]
add rdx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x40]
jmp 0x140001538
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002f30
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400015b1
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000316c
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rdx, qword [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.140002860
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::bad_void_const___ptr64]
test al, al
je 0x140001658
mov edx, 0xc
mov rcx, qword [0x140009968]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.____Please__make_sure_GmodLuaInjector.dll_is_next_to_this_.exe.
jmp 0x1400017b9
lea rcx, [rbp - 0x78]
call fcn.1400027b0
test rax, rax
jne 0x140001684
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016b9
lea edx, [rax + 0xd]
mov rcx, qword [0x140009968]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.____Couldnt_create_a_handle_to_Garrys_Mod._n
jmp 0x1400017b9
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
lea r8d, [rdx + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x1400016fa
lea edx, [rax + 0xc]
mov rcx, qword [0x140009968]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.____Couldnt_call_VirtualAllocEx.
jmp 0x1400017b9
mov qword [rsp + 0x20], r15
mov r9d, 0x28
lea r8, str.C:_GaztoofScriptHook_GmodLuaInjector.dll
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001738
lea edx, [rax + 0xc]
mov rcx, qword [0x140009968]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.____Couldnt_call_WriteProcessMemory.
jmp 0x1400017b9
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp rax, 0xffffffffffffffff
jne 0x140001794
lea edx, [rax + 0xd]
mov rcx, qword [0x140009968]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.____Couldnt_call_CreateRemoteThread.
jmp 0x1400017b9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
lea rdx, str.___Successfully_injected.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002a90
lea rdx, [0x140002c60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
nop
lea rcx, [rsp + 0x70]
call fcn.140001860
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x14000182b
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001826
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001826
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000316c
xor eax, eax
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140003110
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret