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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140084040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor edi, edi
mov edx, dword [0x14008c71c]
add rdx, qword [rcx + 0x38]
mov rcx, qword [0x14008c750]
test rcx, rcx
je 0x14005f7aa
cmp dword [0x14008c758], edi
je 0x14005f7aa
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 4]
lea r8, [0x14008da38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14005f7aa
mov eax, dword [0x14008da38]
cmp eax, 0xffffffff
je 0x14005f7aa
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], edi
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
lea ecx, [rdi + 8]
call fcn.1400653a0
mov qword [rsp + 0x40], rax
lea rdx, [rax + 8]
mov qword [rsp + 0x50], rdx
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov qword [rsp + 0x48], rdx
lea r8, [rsp + 0x40]
mov rdx, qword [0x14008f018]
call fcn.14000efa0
mov qword [0x14008da30], rax
test rax, rax
je 0x14005f7aa
mov ecx, dword [0x14008da38]
and ecx, 0x1ff
imul edx, ecx, 0x78
add rdx, rax
mov rcx, qword [0x14008c750]
test rcx, rcx
je 0x14005f7aa
cmp dword [0x14008c758], edi
je 0x14005f7aa
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 8]
lea r8, [0x14008da40]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14005f7aa
lea rdx, [0x14008da40]
lea rcx, [0x14008c5e0]
call fcn.14000f1f0
test al, al
je 0x14005f7aa
cmp byte [0x1400840cd], dil
je 0x14005f681
mov eax, dword [0x14008c6ac]
cmp dword [rbx + 0xcc], eax
je 0x14005f675
cmp dword [0x14008c6a8], edi
jle 0x14005f675
mov byte [0x14008da15], 1
jmp 0x14005f698
mov byte [0x14008da15], dil
jmp 0x14005f7aa
mov eax, dword [0x14008c6a8]
test eax, eax
setg byte [0x14008da15]
test eax, eax
jle 0x14005f7aa
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14008f190], eax
jle 0x14005f6e1
lea rcx, [0x14008f190]
call fcn.140065328
cmp dword [0x14008f190], 0xffffffff
jne 0x14005f6e1
lea rcx, [0x14008f198]
call fcn.1400056f0
lea rcx, [0x14008f190]
call fcn.1400652bc
lea rcx, [rsp + 0x30]
call fcn.1400056f0
movsxd rax, dword [0x1400840b4]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
sub rcx, qword [0x14008f198]
imul rdx, rax, 0xf4240
cmp rcx, rdx
je 0x14005f713
jl 0x14005f7aa
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
test al, al
jne 0x14005f7a3
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.1400653a0
lea rcx, [0x14005f3c0]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14005f810]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14005f7d1
cmp dword [rsp + 0x48], 0
je 0x14005f7c5
vmovups xmm0, xmmword [rsp + 0x40]
vmovdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005f7c5
mov qword [0x14008f198], rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140065260
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 + 0x48], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3