Function at 0x140052600
Capabilities:
Create thread
Enumerate process modules
Log keystrokes via polling
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x1400e4f10]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
xor r13d, r13d
mov qword [0x14013a298], rax
mov qword [rsp + 0x38], r13
lea ecx, [r13 + 0x20]
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x14
movups xmmword [rax], xmm0
mov ecx, dword [0x1400afa28]
mov dword [rax + 0x10], ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 0x1f
mov byte [rax + 0x14], r13b
call fcn.14003a480
test al, al
je 0x1400526ae
lea r8d, [r13 + 0x14]
mov ebx, 0x247f840
lea rdx, str.FiveM_GTAProcess.exe
mov edi, 0x1efd4c8
mov esi, 0x2087780
call fcn.1400535d0
jmp 0x140052a37
mov ecx, 0x20
mov qword [rsp + 0x38], r13
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_b2060_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], 0x1f
movsd xmm1, qword [0x1400afa40]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1400afa48]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x1a], r13b
call fcn.14003a480
test al, al
je 0x14005272e
mov r8d, 0x1a
lea rdx, str.FiveM_b2060_GTAProcess.exe
mov ebx, 0x24c8858
mov edi, 0x1ec3828
mov esi, 0x1f6a7e0
call fcn.1400535d0
jmp 0x140052a37
mov ecx, 0x20
mov qword [rsp + 0x38], r13
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_b2189_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], 0x1f
movsd xmm1, qword [0x1400afa60]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1400afa68]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x1a], r13b
call fcn.14003a480
test al, al
je 0x1400527ae
mov r8d, 0x1a
lea rdx, str.FiveM_b2189_GTAProcess.exe
mov ebx, 0x24e6d90
mov edi, 0x1ee18a8
mov esi, 0x1f888c0
call fcn.1400535d0
jmp 0x140052a37
mov ecx, 0x20
mov qword [rsp + 0x38], r13
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_b2372_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], 0x1f
movsd xmm1, qword [0x1400afa80]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1400afa88]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x1a], r13b
call fcn.14003a480
test al, al
je 0x14005282e
mov r8d, 0x1a
lea rdx, str.FiveM_b2372_GTAProcess.exe
mov ebx, 0x252dcd8
mov edi, 0x1f05208
mov esi, 0x1f9e9f0
call fcn.1400535d0
jmp 0x140052a37
mov ecx, 0x20
mov qword [rsp + 0x38], r13
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_b2545_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], 0x1f
movsd xmm1, qword [0x1400afaa0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1400afaa8]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x1a], r13b
call fcn.14003a480
test al, al
je 0x1400528ae
mov r8d, 0x1a
lea rdx, str.FiveM_b2545_GTAProcess.exe
mov ebx, 0x25667e8
mov edi, 0x1f2e7a8
mov esi, 0x1fd6f70
call fcn.1400535d0
jmp 0x140052a37
mov ecx, 0x20
mov qword [rsp + 0x38], r13
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_b2612_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], 0x1f
movsd xmm1, qword [0x1400afac0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1400afac8]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x1a], r13b
call fcn.14003a480
test al, al
je 0x14005292e
mov r8d, 0x1a
lea rdx, str.FiveM_b2612_GTAProcess.exe
mov ebx, 0x2567db0
mov edi, 0x1f77ef0
mov esi, 0x1fd8570
call fcn.1400535d0
jmp 0x140052a37
mov ecx, 0x20
mov qword [rsp + 0x38], r13
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_b2699_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], 0x1f
movsd xmm1, qword [0x1400afae0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1400afae8]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x1a], r13b
call fcn.14003a480
test al, al
je 0x1400529ae
mov r8d, 0x1a
lea rdx, str.FiveM_b2699_GTAProcess.exe
mov ebx, 0x26684d8
mov edi, 0x20304c8
mov esi, 0x20d8c90
call fcn.1400535d0
jmp 0x140052a37
mov ecx, 0x20
mov qword [rsp + 0x38], r13
call fcn.140089f0c
movups xmm0, xmmword [str.FiveM_b2802_GTAProcess.exe]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x1a
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], 0x1f
movsd xmm1, qword [0x1400afb00]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1400afb08]
mov word [rax + 0x18], cx
lea rcx, [rsp + 0x30]
mov byte [rax + 0x1a], r13b
call fcn.14003a480
test al, al
je 0x140052a2b
mov r8d, 0x1a
lea rdx, str.FiveM_b2802_GTAProcess.exe
mov ebx, 0x254d448
mov edi, 0x21c6450
mov esi, 0x1fbc100
call fcn.1400535d0
jmp 0x140052a37
mov ebx, dword [rsp + 0x50]
mov edi, dword [rsp + 0x50]
mov esi, dword [rsp + 0x50]
mov rcx, qword [0x14013a298]
test rcx, rcx
jne 0x140052a64
lea r9d, [rcx + 0x10]
lea r8, str.Error
lea rdx, str.Could_not_find_FiveM_process.
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [rsp + 0x3f0], r12
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x3f8], r14
mov qword [rsp + 0x400], r15
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp qword [0x14012f8d8], 0x10
lea r15, [0x14012f8c0]
mov edx, dword [rsp + 0x50]
mov ecx, 0x18
cmovae r15, qword [0x14012f8c0]
mov r12, r13
mov qword [0x14013a2d0], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140052b12
mov r8, r15
lea rdx, str.Failed_to_get__s__invalid_handle_value
lea rcx, [rbp + 0x1b0]
call fcn.140053940
xor r9d, r9d
lea r8, str.ERROR
lea rdx, [rbp + 0x1b0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140052b79
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140052b70
nop dword [rax]
mov rdx, r15
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
je 0x140052b55
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140052b30
jmp 0x140052b70
mov rax, qword [rbp - 0x78]
mov r12, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x30]
lea r8, [rbp + 0x1a8]
mov rcx, qword [0x14013a2d0]
movsd xmm1, qword [rsp + 0x40]
mov r9d, 8
mov edx, edi
add rdx, r12
movsd qword [0x14013a280], xmm1
movups xmmword [0x14013a270], xmm0
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x1a8]
lea r8, [rbp + 0x1a0]
mov rcx, qword [0x14013a2d0]
mov r9d, 8
mov edx, ebx
add rdx, qword [0x14013a270]
mov qword [0x14013a2c0], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x1a0]
lea r8, [rbp + 0x1a8]
mov rcx, qword [0x14013a2d0]
mov r9d, 8
mov edx, esi
add rdx, qword [0x14013a270]
mov qword [0x14013a290], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x14013a290]
lea r8, [rbp + 0x1a0]
mov rax, qword [rbp + 0x1a8]
add rdx, 8
mov rcx, qword [0x14013a2d0]
mov r9d, 8
mov qword [0x140138a08], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x1a0]
mov qword [0x140139230], rax
call fcn.14004a920
cmp qword [0x1401389f0], r13
mov r15, qword [rsp + 0x400]
mov r14, qword [rsp + 0x3f8]
mov r12, qword [rsp + 0x3f0]
jne 0x140052c99
mov eax, 1
jmp 0x140052d53
mov qword [rsp + 0x28], r13
lea r8, [0x1400525a0]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.14004a4d0
mov rcx, qword [0x1401389f0]
call fcn.140073f80
test eax, eax
jne 0x140052d4e
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x14013a298]
mov rcx, qword [0x140139250]
je 0x140052cf5
cmp rax, rcx
je 0x140052cf5
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140052d39
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x14013a288]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052d39
cmp byte [0x14010abbc], r13b
mov edx, 0x2000d
mov rcx, qword [0x1401389f0]
sete al
movzx r8d, al
xor r8d, 1
mov byte [0x14010abbc], al
call fcn.140075300
call fcn.14004fd60
mov rcx, qword [0x1401389f0]
call fcn.140073f80
test eax, eax
je 0x140052cd0
call fcn.14004ace0
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.140089620
add rsp, 0x3c0
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret