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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x14015ef80]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
lea rdx, str.FiveM_GTAProcess.exe
mov qword [0x140187368], rax
lea rcx, [rsp + 0x30]
call fcn.140053e50
mov rcx, rax
call fcn.14003a8e0
lea rdi, [0x140187408]
test al, al
je 0x140052775
mov rax, qword [0x140187420]
mov esi, 0x247f840
mov r14d, 0x1efd4c8
mov r15d, 0x2087780
cmp rax, 0x14
jb 0x14005275c
cmp rax, 0x10
mov qword [0x140187418], 0x14
mov rbx, rdi
lea rdx, str.FiveM_GTAProcess.exe
cmovae rbx, qword [0x140187408]
mov r8d, reloc.WS2_32.dll_sendto
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x14], 0
jmp 0x140052abe
lea r9, str.FiveM_GTAProcess.exe
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rdi
call fcn.1400550f0
jmp 0x140052abe
lea rdx, str.FiveM_b2060_GTAProcess.exe
lea rcx, [rsp + 0x50]
call fcn.140053e50
mov rcx, rax
call fcn.14003a8e0
test al, al
je 0x140052801
mov rax, qword [0x140187420]
mov esi, 0x24c8858
mov r14d, 0x1ec3828
mov r15d, 0x1f6a7e0
cmp rax, 0x1a
jb 0x1400527e8
cmp rax, 0x10
mov qword [0x140187418], 0x1a
mov rbx, rdi
lea rdx, str.FiveM_b2060_GTAProcess.exe
cmovae rbx, qword [0x140187408]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
jmp 0x140052abe
lea r9, str.FiveM_b2060_GTAProcess.exe
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rdi
call fcn.1400550f0
jmp 0x140052abe
lea rdx, str.FiveM_b2189_GTAProcess.exe
lea rcx, [rsp + 0x70]
call fcn.140053e50
mov rcx, rax
call fcn.14003a8e0
test al, al
je 0x14005288d
mov rax, qword [0x140187420]
mov esi, 0x24e6d90
mov r14d, 0x1ee18a8
mov r15d, 0x1f888c0
cmp rax, 0x1a
jb 0x140052874
cmp rax, 0x10
mov qword [0x140187418], 0x1a
mov rbx, rdi
lea rdx, str.FiveM_b2189_GTAProcess.exe
cmovae rbx, qword [0x140187408]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
jmp 0x140052abe
lea r9, str.FiveM_b2189_GTAProcess.exe
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rdi
call fcn.1400550f0
jmp 0x140052abe
lea rdx, str.FiveM_b2372_GTAProcess.exe
lea rcx, [rbp - 0x70]
call fcn.140053e50
mov rcx, rax
call fcn.14003a8e0
test al, al
je 0x140052918
mov rax, qword [0x140187420]
mov esi, 0x252dcd8
mov r14d, 0x1f05208
mov r15d, 0x1f9e9f0
cmp rax, 0x1a
jb 0x1400528ff
cmp rax, 0x10
mov qword [0x140187418], 0x1a
mov rbx, rdi
lea rdx, str.FiveM_b2372_GTAProcess.exe
cmovae rbx, qword [0x140187408]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
jmp 0x140052abe
lea r9, str.FiveM_b2372_GTAProcess.exe
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rdi
call fcn.1400550f0
jmp 0x140052abe
lea rdx, str.FiveM_b2545_GTAProcess.exe
lea rcx, [rbp - 0x50]
call fcn.140053e50
mov rcx, rax
call fcn.14003a8e0
test al, al
je 0x1400529a3
mov rax, qword [0x140187420]
mov esi, 0x25667e8
mov r14d, 0x1f2e7a8
mov r15d, 0x1fd6f70
cmp rax, 0x1a
jb 0x14005298a
cmp rax, 0x10
mov qword [0x140187418], 0x1a
mov rbx, rdi
lea rdx, str.FiveM_b2545_GTAProcess.exe
cmovae rbx, qword [0x140187408]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
jmp 0x140052abe
lea r9, str.FiveM_b2545_GTAProcess.exe
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rdi
call fcn.1400550f0
jmp 0x140052abe
lea rdx, str.FiveM_b2612_GTAProcess.exe
lea rcx, [rbp - 0x30]
call fcn.140053e50
mov rcx, rax
call fcn.14003a8e0
test al, al
je 0x140052a2e
mov rax, qword [0x140187420]
mov esi, 0x2567db0
mov r14d, 0x1f77ef0
mov r15d, 0x1fd8570
cmp rax, 0x1a
jb 0x140052a15
cmp rax, 0x10
mov qword [0x140187418], 0x1a
mov rbx, rdi
lea rdx, str.FiveM_b2612_GTAProcess.exe
cmovae rbx, qword [0x140187408]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
jmp 0x140052abe
lea r9, str.FiveM_b2612_GTAProcess.exe
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rdi
call fcn.1400550f0
jmp 0x140052abe
lea rdx, str.FiveM_b2699_GTAProcess.exe
lea rcx, [rbp - 0x10]
call fcn.140053e50
mov rcx, rax
call fcn.14003a8e0
test al, al
je 0x140052ab3
mov rax, qword [0x140187420]
mov esi, 0x26684d8
mov r14d, 0x20304c8
mov r15d, 0x20d8c90
cmp rax, 0x1a
jb 0x140052a9d
cmp rax, 0x10
mov qword [0x140187418], 0x1a
mov rbx, rdi
lea rdx, str.FiveM_b2699_GTAProcess.exe
cmovae rbx, qword [0x140187408]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x1a], 0
jmp 0x140052abe
lea r9, str.FiveM_b2699_GTAProcess.exe
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rdi
call fcn.1400550f0
jmp 0x140052abe
mov esi, dword [rbp + 0x10]
mov r14d, dword [rbp + 0x10]
mov r15d, dword [rbp + 0x10]
mov rcx, qword [0x140187368]
test rcx, rcx
jne 0x140052aeb
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 + 0x4b0], r12
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x4b8], r13
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rbp + 0x10]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp qword [0x140187420], 0x10
mov edx, dword [rbp + 0x10]
cmovae rdi, qword [0x140187408]
xor r13d, r13d
mov qword [0x140187398], rax
mov r12d, r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
lea ecx, [r13 + 0x18]
mov qword [rsp + 0x40], r13
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140052b89
mov r8, rdi
lea rdx, str.Failed_to_get__s__invalid_handle_value
lea rcx, [rbp + 0x270]
call fcn.1400545a0
xor r9d, r9d
lea r8, str.ERROR
lea rdx, [rbp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140052be8
lea rdx, [rbp + 0x20]
mov dword [rbp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140052bdf
mov rdx, rdi
lea rcx, [rbp + 0x50]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
je 0x140052bc5
lea rdx, [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140052ba1
jmp 0x140052bdf
mov rax, qword [rbp + 0x48]
mov r12, qword [rbp + 0x38]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x30]
lea r8, [rbp + 0x268]
mov rcx, qword [0x140187398]
movsd xmm1, qword [rsp + 0x40]
mov r9d, 8
mov edx, r14d
add rdx, r12
movsd qword [0x140187350], xmm1
movups xmmword [0x140187340], xmm0
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x268]
lea r8, [rbp + 0x260]
mov rcx, qword [0x140187398]
mov r9d, 8
mov edx, esi
add rdx, qword [0x140187340]
mov qword [0x140187388], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x260]
lea r8, [rbp + 0x268]
mov rcx, qword [0x140187398]
mov r9d, 8
mov edx, r15d
add rdx, qword [0x140187340]
mov qword [0x140187360], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x140187360]
lea r8, [rbp + 0x260]
mov rax, qword [rbp + 0x268]
add rdx, 8
mov rcx, qword [0x140187398]
mov r9d, 8
mov qword [0x1401862d0], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x260]
mov qword [0x1401862f8], rax
call fcn.14004b470
cmp qword [0x140185ac0], r13
mov r12, qword [rsp + 0x4b0]
jne 0x140052cfa
mov eax, 1
jmp 0x140052db4
mov qword [rsp + 0x28], r13
lea r8, [0x140052640]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.14004ab90
mov rcx, qword [0x140185ac0]
call fcn.140075dd0
test eax, eax
jne 0x140052daf
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x140187368]
mov rcx, qword [0x140186318]
je 0x140052d56
cmp rax, rcx
je 0x140052d56
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140052d9a
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x140187358]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140052d9a
cmp byte [reloc.WS2_32.dll_accept], r13b
mov edx, 0x2000d
mov rcx, qword [0x140185ac0]
sete al
movzx r8d, al
xor r8d, 1
mov byte [reloc.WS2_32.dll_accept], al
call fcn.140077150
call fcn.140050300
mov rcx, qword [0x140185ac0]
call fcn.140075dd0
test eax, eax
je 0x140052d31
call fcn.14004b830
mov r13, qword [rsp + 0x4b8]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400eb760
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret