Function at 0x140066760
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14008d010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor edi, edi
mov edx, dword [0x1400a3a6c]
add rdx, qword [rcx + 0x38]
mov rcx, qword [0x1400a3a98]
test rcx, rcx
je 0x140066a57
cmp dword [0x1400a3aa0], edi
je 0x140066a57
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 4]
lea r8, [0x1400a4d28]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140066a57
mov eax, dword [0x1400a4d28]
cmp eax, 0xffffffff
je 0x140066a57
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
lea ecx, [rdi + 8]
call fcn.140070670
mov qword [rsp + 0x30], rax
lea rdx, [rax + 8]
mov qword [rsp + 0x40], rdx
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov qword [rsp + 0x38], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [0x1400a5938]
call fcn.14000ec40
mov qword [0x1400a4d20], rax
test rax, rax
je 0x140066a57
mov ecx, dword [0x1400a4d28]
and ecx, 0x1ff
imul edx, ecx, 0x78
add rdx, rax
mov rcx, qword [0x1400a3a98]
test rcx, rcx
je 0x140066a57
cmp dword [0x1400a3aa0], edi
je 0x140066a57
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 8]
lea r8, [0x1400a4d30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140066a57
lea rdx, [0x1400a4d30]
lea rcx, [0x1400a3950]
call fcn.14000ee90
test al, al
je 0x140066a57
cmp byte [0x14008d098], dil
je 0x1400668d0
mov eax, dword [0x1400a3a1c]
cmp dword [rbx + 0xcc], eax
je 0x1400668c4
cmp dword [0x1400a3a18], edi
jle 0x1400668c4
mov byte [0x1400a4d02], 1
jmp 0x1400668e7
mov byte [0x1400a4d02], dil
jmp 0x140066a57
mov eax, dword [0x1400a3a18]
test eax, eax
setg byte [0x1400a4d02]
test eax, eax
jle 0x140066a57
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x1400a5a88], eax
jle 0x140066964
lea rcx, [0x1400a5a88]
call fcn.1400705f8
cmp dword [0x1400a5a88], 0xffffffff
jne 0x140066964
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140066936
imul rax, rax, 0x64
jmp 0x140066951
cqo
idiv rbx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, r8
mov qword [0x1400a5a90], rax
lea rcx, [0x1400a5a88]
call fcn.14007058c
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140066982
imul rbx, rax, 0x64
jmp 0x14006699e
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
movsxd rax, dword [0x14008d044]
mov rcx, rbx
sub rcx, qword [0x1400a5a90]
imul rdx, rax, 0xf4240
cmp rcx, rdx
je 0x1400669c1
jl 0x140066a57
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
test al, al
jne 0x140066a50
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 8
call fcn.140070670
lea rcx, [0x140066720]
mov qword [rax], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140066ab0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140066a7e
cmp dword [rsp + 0x38], 0
je 0x140066a72
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140066a72
mov qword [0x1400a5a90], rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140070530
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3