Function at 0x1400019a0
Capabilities:
Enumerate processes
Log keystrokes via polling
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r14d, r14d
mov r12d, r14d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140001ad1
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001ac8
lea r13, str.FiveM_b2699_GTAProcess.exe
nop dword [rax]
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x68]
call fcn.140001f40
lea rdx, [rsp + 0x68]
mov rdi, qword [rbp - 0x80]
cmp rdi, 7
seta r14b
mov rbx, qword [rsp + 0x68]
cmova rdx, rbx
mov rax, 0xffffffffffffffff
nop
movzx ecx, word [r13 + rax*2 + 2]
cmp cx, word [rdx + rax*2 + 2]
jne 0x140001a77
add rax, 2
cmp rax, 0x1b
je 0x140001b4f
movzx ecx, word [r13 + rax*2]
cmp cx, word [rdx + rax*2]
je 0x140001a50
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
test r14b, r14b
je 0x140001ac0
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001ab8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b93
mov rcx, rbx
call fcn.1400026bc
test esi, esi
jne 0x140001a20
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x140001e78
lea rcx, [rsp + 0x48]
call fcn.1400011e0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov r8d, r12d
xor edx, edx
mov ecx, 0x600
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140001b9a
lea rdx, str.Failed_to_open_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002100
mov rcx, rax
lea rdx, [0x1400022d0]
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]
jmp 0x140001c07
mov r12d, dword [rbp - 0x68]
cmp rdi, 7
jbe 0x140001ac8
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140001b86
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001b93
mov rcx, rbx
call fcn.1400026bc
jmp 0x140001ac8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140001bd1
lea rdx, str.Failed_to_get_handle_to_ntdll.dll
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002100
mov rcx, rax
lea rdx, [0x1400022d0]
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]
jmp 0x140001bfe
lea rdx, str.NtSetInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001bef
lea rdx, str.Failed_to_get_address_of_NtSetInformationProcess
jmp 0x140001bb3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x32]
mov rcx, rbx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13b, 1
nop word [rax + rax]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140001c4f
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
test r13b, r13b
je 0x140001c32
xor edx, edx
jmp 0x140001c37
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
test r13b, r13b
sete r13b
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140001c74
mov rcx, r15
call fcn.140001500
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001c10
mov ecx, 0x46
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140001e13
mov rcx, r15
call fcn.140001400
mov rsi, rax
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x189
mov ecx, 8
call fcn.140002680
mov r14, rax
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
lea r12, [rax + 8]
add rsi, 0x26684d8
mov qword [rsp + 0x40], rsi
mov rdi, rax
cmp rax, r12
je 0x140001d09
movsxd rbx, dword [rdi]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rsi, rbx
add rsi, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
add rdi, 4
cmp rdi, r12
jne 0x140001cd0
test r14, r14
je 0x140001d1b
mov edx, 8
mov rcx, r14
call fcn.1400026bc
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 1]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rsp + 0x38], 1
setne byte [rsp + 0x38]
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 1]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
lea edx, [r14 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str.Byte_Address:_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002100
mov rcx, rax
lea rdx, [0x1400011c0]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, rsi
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_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1400022d0]
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]
lea edx, [r14 + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx ebx, byte [rsp + 0x38]
lea rdx, str.Byte_New_Value:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002100
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400022d0]
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]
lea edx, [r14 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001c10
mov ecx, 0x49
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140001c10
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140001e9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e71
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400026bc
jmp 0x140001e9b
lea rdx, str.Cannot_open_the_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002100
mov rcx, rax
lea rdx, [0x1400022d0]
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]
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140002660
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret