Function at 0x140001040
Capabilities:
Enumerate processes
Execute command
Log keystrokes via polling
Set console window title

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x278], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010a1
lea rdx, str.__debug___handle_returned_INVALID_HANDLE_VALUE_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400013d0
lea rcx, str.Rays_Awesome_Hack___STATUS_:_ERROR
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140001345
test rbx, rbx
je 0x1400010d1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__debug___handle_created..._n__awaiting_thread_creation..._n
call fcn.1400013d0
lea rcx, str.Rays_Awesome_Hack___STATUS_:_AWAITING_THREAD
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001100
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.__debug___process_entry_returned_a_bad_value_n
jmp 0x140001076
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__debug___thread_created__attaching..._n
mov qword [rsp + 0x290], rdi
call fcn.1400013d0
lea rcx, str.Rays_Awesome_Hack___STATUS_:_ATTACHING
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rdi, str.peggle.exe
nop
lea rdx, [rsp + 0x5c]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x140001160
add rax, 2
cmp rax, 0xb
je 0x1400011b8
movzx ecx, word [rdx + rax*2]
cmp cx, word [rdi + rax*2]
je 0x140001140
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.__debug___attached_thread_and_snatched_pid_
call fcn.1400013d0
mov edx, dword [rsp + 0x38]
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, [0x140003508]
call fcn.1400013d0
mov edx, dword [rsp + 0x50]
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
call fcn.1400015a0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001130
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, str.Rays_Awesome_Hack___STATUS_:_ATTACHED
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor edi, edi
mov dword [rsp + 0x270], 0x64
lea r8, [rsp + 0x274]
mov qword [rsp + 0x20], rdi
mov edx, 0x4ade244
mov rcx, rbx
lea r9d, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x140001245
lea rdx, str.__debug___invalid_offset_n
call fcn.1400013d0
lea rcx, str.Rays_Awesome_Hack___STATUS_:_INVALID_OFFSET
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
jmp 0x14000133d
lea rdx, str.__ready___press_f5_to_change_balls_n
call fcn.1400013d0
lea rcx, str.Rays_Awesome_Hack___STATUS_:_WAITING
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, 0x74
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14000128b
nop
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x74
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001270
mov r9d, 4
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x270]
mov edx, 0x4ade244
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
je 0x1400012e0
lea rdx, str.__done___aloha__ah_yes_yes_n
call fcn.1400013d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
je 0x140001324
lea rdx, str.__debug___cleaned_up_n
jmp 0x14000132b
lea rdx, str.__debug___failed_to_write_to
call fcn.1400013d0
mov rcx, rax
lea rdx, [0x140001020]
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 edx, 0x4ade244
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, section..text
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
call fcn.1400015a0
jmp 0x1400012c3
lea rdx, str.__debug___your_fucked_n
call fcn.1400013d0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdi, qword [rsp + 0x290]
xor eax, eax
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140001770
add rsp, 0x280
pop rbx
ret