Function at 0x140001140
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x410
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x198], xmm0
xor r13d, r13d
mov esi, r13d
mov qword [rbp + 0x198], r13
mov r14d, r13d
mov qword [rbp + 0x1a0], r13
xor edx, edx
mov r8d, 0x12c
lea rcx, [rbp + 0x1c4]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x1c0], 0x130
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
lea rdx, [rbp + 0x1c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140001260
lea rax, [rbp + 0x1ec]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400011f0
mov r8d, 7
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp + 0x1ec]
lea rcx, str.cs2.exe
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001223
cmp rbx, 7
je 0x140001239
lea rdx, [rbp + 0x1c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400011e0
jmp 0x140001260
mov esi, dword [rbp + 0x1c8]
mov qword [rbp + 0x198], rsi
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov qword [rbp + 0x1a0], rax
test rdi, rdi
je 0x14000126f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, str.cs2_found_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001660
lea rdx, [0x140001830]
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___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 edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x238
mov edx, esi
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov rsi, r13
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
je 0x140001329
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], sil
jne 0x1400012e0
mov r8d, 0xa
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, str.client.dll
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001310
cmp rbx, 0xa
je 0x140001324
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x1400012d1
jmp 0x140001329
mov rsi, qword [rsp + 0x68]
test rdi, rdi
je 0x140001337
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.client.dll___
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001660
mov rcx, rax
lea rdx, [0x140003364]
call fcn.140001660
lea rdx, [0x140001120]
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___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, rsi
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_long_unsigned___int64_____ptr64]
lea rdx, [0x140001100]
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___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x140001830]
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___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 r15, [rsi + 0x17262e8]
add rsi, 0x171f670
mov qword [rsp + 0x38], rsi
movabs rdi, 0x7ffffffffff0bdbe
movabs rbx, 0x7fffffffffffffff
movabs r12, 0x311cdad160000
movsd xmm6, qword [0x140003378]
nop
lea rcx, [rsp + 0x30]
call fcn.140001020
mov rax, qword [rsp + 0x30]
cmp rax, rdi
lea rdi, [rax + 0xf4240]
jle 0x1400013ee
mov rdi, rbx
movabs rsi, 0xb2f4fc0794908cf3
movabs r13, 0x112e0be826d694b3
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov rcx, rax
cmp rbx, 0x989680
jne 0x140001423
imul rbx, rcx, 0x64
jmp 0x140001497
cmp rbx, 0x16e3600
jne 0x140001476
mov rax, rsi
imul rcx
lea r8, [rcx + rdx]
sar r8, 0x18
mov rax, r8
shr rax, 0x3f
add r8, rax
imul rax, r8, 0x16e3600
sub rcx, rax
imul rcx, rcx, 0x3b9aca00
mov rax, rsi
imul rcx
lea rbx, [rcx + rdx]
sar rbx, 0x18
mov rax, rbx
shr rax, 0x3f
add rbx, rax
imul rax, r8, 0x3b9aca00
jmp 0x140001494
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
cmp rdi, rbx
je 0x140001510
jl 0x140001510
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rcx, rax, 0x64
mov rax, rdi
sub rax, rbx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
comisd xmm0, xmm6
jbe 0x1400014c5
lea r8, [rcx + r12]
mov rax, r12
jmp 0x1400014c9
lea r8, [rcx + rax]
mov qword [rbp + 0x190], r8
add rcx, rax
mov rax, r13
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp + 0x1b0], rdx
imul eax, edx, 0x3b9aca00
sub r8d, eax
mov dword [rbp + 0x1b8], r8d
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x140001402
xor r13d, r13d
mov qword [rbp + 0x1a8], r13
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 8]
lea r8, [rbp + 0x1a8]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x1a8]
test rdx, rdx
mov rsi, qword [rsp + 0x38]
movabs rbx, 0x7fffffffffffffff
movabs rdi, 0x7ffffffffff0bdbe
je 0x1400013d0
mov qword [rbp + 0x190], r13
add rdx, 0x30
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 8]
lea r8, [rbp + 0x190]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [r13 + 0x20]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400013d0
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 8]
mov rdx, rsi
mov rcx, r14
test byte [rbp + 0x190], 1
je 0x1400015c7
mov qword [rsp + 0x40], 6
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1400013d0
mov qword [rbp + 0x198], 4
lea r8, [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x1400013d0