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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140127840]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor edi, edi
mov edx, dword [0x14013e460]
add rdx, qword [rcx + 0x50]
mov rcx, qword [0x1401434a0]
test rcx, rcx
je 0x14008052d
cmp dword [0x1401434a8], edi
je 0x14008052d
mov qword [rsp + 0x20], rdi
mov r9d, 4
lea r8, [0x1401420cc]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14008052d
mov eax, dword [0x1401420cc]
cmp eax, 0xffffffff
je 0x14008052d
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
mov ecx, 8
call fcn.1400e76e0
mov qword [rsp + 0x40], rax
lea rcx, [rax + 8]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
add rax, 8
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x40]
mov rdx, qword [0x140143508]
call fcn.1400222f0
mov qword [0x140142100], rax
test rax, rax
je 0x14008052d
mov ecx, dword [0x1401420cc]
and ecx, 0x1ff
imul edx, ecx, 0x78
add rdx, rax
mov rcx, qword [0x1401434a0]
test rcx, rcx
je 0x14008052d
cmp dword [0x1401434a8], edi
je 0x14008052d
mov qword [rsp + 0x20], rdi
mov r9d, 8
lea r8, [0x140142110]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14008052d
lea rdx, [0x140142110]
lea rcx, [0x14013e2b0]
call fcn.1400225b0
test al, al
je 0x14008052d
cmp byte [reloc.WS2_32.dll_accept], dil
je 0x14008043b
mov eax, dword [0x14013e3d4]
cmp dword [rbx + 0x124], eax
je 0x140080428
cmp dword [0x14013e3c0], edi
jle 0x140080428
mov byte [0x1401420ca], 1
lea rcx, [rsp + 0x30]
call fcn.140007950
mov rbx, qword [rsp + 0x30]
cmp byte [0x1401420cb], dil
jne 0x14008045a
mov rax, rbx
mov qword [0x140142108], rbx
mov byte [0x1401420cb], 1
jmp 0x140080461
mov byte [0x1401420ca], dil
mov byte [0x1401420cb], dil
jmp 0x14008052d
mov eax, dword [0x14013e3c0]
test eax, eax
setg byte [0x1401420ca]
test eax, eax
jg 0x1400803fd
mov byte [0x1401420cb], dil
jmp 0x14008052d
mov rax, qword [0x140142108]
mov rcx, rbx
sub rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, dword [0x1401278f8]
cmp rdx, rax
je 0x140080494
jl 0x14008052d
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
test al, al
jne 0x140080526
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, 8
call fcn.1400e76e0
lea rcx, [0x140080260]
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, [0x140080590]
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 0x140080554
cmp dword [rsp + 0x48], 0
je 0x140080548
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 0x140080548
mov qword [0x140142108], rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e75a0
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