Function at 0x140004ec0
Capabilities:
Log keystrokes via polling
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x4a0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rcx, str.Starting...
call fcn.140004c40
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
lea rcx, str.Looking_for_cs2_n
call fcn.140004c40
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140004f7a
nop word [rax + rax]
lea rdx, str.cs2.exe
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140004f5a
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004f30
jmp 0x140004f7a
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
mov dword [0x14000a850], r8d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14000a858], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x14000a850], 0
je 0x140004ef1
lea rcx, str.cs2_found_n
call fcn.140004c40
mov edx, dword [0x14000a850]
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x438
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x14000501d
nop word [rax + rax]
lea rdx, str.client.dll
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140004ffa
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140004fd0
jmp 0x14000501d
mov rax, qword [rsp + 0x68]
mov qword [0x14000a860], rax
mov rax, qword [rsp + 0x58]
mov qword [0x14000a868], rax
mov eax, dword [rsp + 0x40]
mov qword [0x14000a870], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.client_dll_found_n
call fcn.140004c40
mov rdx, qword [0x14000a868]
lea r8, [rsp + 0x488]
mov rcx, qword [0x14000a858]
xor edi, edi
add rdx, 0x1a196e8
mov qword [rsp + 0x20], rdi
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movups xmm1, xmmword [0x14000a860]
lea rcx, [0x14000a7f8]
xorps xmm0, xmm0
movups xmmword [0x14000a818], xmm0
movups xmm0, xmmword [0x14000a850]
movups xmmword [0x14000a808], xmm1
movups xmmword [0x14000a7f8], xmm0
movsd xmm0, qword [0x14000a870]
movsd qword [0x14000a818], xmm0
call fcn.140004ca0
test al, al
jne 0x1400050c0
lea rcx, str.Handle_to_framebuffer_not_established_n
call fcn.140004c40
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.Discord_overlay_hijacked_n
call fcn.140004c40
mov ecx, 0x384000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0x384000
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
mov dword [0x14000a828], 0x500
mov dword [0x14000a82c], 0x2d0
mov qword [0x14000a830], 0x384000
mov qword [0x14000a838], rbx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov dword [0x14000a8a0], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea rcx, str.win32u
mov dword [0x14000a8a4], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x30]
call fcn.140001ac0
lea rcx, str.press_any_key...
movups xmm0, xmmword [rax]
lea rax, [0x140001fb0]
mov qword [0x14000a840], rax
movups xmmword [0x14000a878], xmm0
call fcn.140004c40
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rbx, qword [rsp + 0x488]
nop dword [rax + rax]
mov rcx, qword [0x14000a858]
lea r8, [rsp + 0x480]
mov r9d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rbx + 0xac]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rsp + 0x480], dil
je 0x14000521b
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, qword [0x14000a830]
xor edx, edx
mov rcx, qword [0x14000a838]
call sub.VCRUNTIME140.dll_memset
call fcn.1400034c0
mov rax, qword [0x14000a820]
mov r8, qword [0x14000a830]
mov rdx, qword [0x14000a838]
mov dword [rax + 0x10], 0x500
mov rax, qword [0x14000a820]
mov dword [rax + 0x14], 0x2d0
mov rcx, qword [0x14000a820]
add rcx, 0x18
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [0x14000a820]
inc qword [rax + 8]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140005180
mov rcx, qword [0x14000a880]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8, qword [0x14000a830]
xor edx, edx
mov rcx, qword [0x14000a838]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x14000a820]
mov r8, qword [0x14000a830]
mov rdx, qword [0x14000a838]
mov dword [rax + 0x10], 0x500
mov rax, qword [0x14000a820]
mov dword [rax + 0x14], 0x2d0
mov rcx, qword [0x14000a820]
add rcx, 0x18
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [0x14000a820]
inc qword [rax + 8]
mov rcx, qword [0x14000a820]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [0x14000a800]
mov qword [0x14000a820], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.discord_disconnected..._n
mov qword [0x14000a800], rdi
call fcn.140004c40
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140005630
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x4a0
pop rdi
ret