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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140129840]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor edi, edi
mov edx, dword [0x140154c70]
add rdx, qword [rcx + 0x50]
mov rcx, qword [0x140158548]
test rcx, rcx
je 0x14008182d
cmp dword [0x140158550], edi
je 0x14008182d
mov qword [rsp + 0x20], rdi
mov r9d, 4
lea r8, [0x140157140]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14008182d
mov eax, dword [0x140157140]
cmp eax, 0xffffffff
je 0x14008182d
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.1400e8b30
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 [0x1401585b8]
call fcn.140021df0
mov qword [0x140157130], rax
test rax, rax
je 0x14008182d
mov ecx, dword [0x140157140]
and ecx, 0x1ff
imul edx, ecx, 0x78
add rdx, rax
mov rcx, qword [0x140158548]
test rcx, rcx
je 0x14008182d
cmp dword [0x140158550], edi
je 0x14008182d
mov qword [rsp + 0x20], rdi
mov r9d, 8
lea r8, [0x140157148]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14008182d
lea rdx, [0x140157148]
lea rcx, [0x140154ac0]
call fcn.1400220b0
test al, al
je 0x14008182d
cmp byte [reloc.WS2_32.dll_accept], dil
je 0x14008173b
mov eax, dword [0x140154be4]
cmp dword [rbx + 0x124], eax
je 0x140081728
cmp dword [0x140154bd0], edi
jle 0x140081728
mov byte [0x1401570fa], 1
lea rcx, [rsp + 0x30]
call fcn.140007930
mov rbx, qword [rsp + 0x30]
cmp byte [0x1401570fb], dil
jne 0x14008175a
mov rax, rbx
mov qword [0x140157138], rbx
mov byte [0x1401570fb], 1
jmp 0x140081761
mov byte [0x1401570fa], dil
mov byte [0x1401570fb], dil
jmp 0x14008182d
mov eax, dword [0x140154bd0]
test eax, eax
setg byte [0x1401570fa]
test eax, eax
jg 0x1400816fd
mov byte [0x1401570fb], dil
jmp 0x14008182d
mov rax, qword [0x140157138]
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 [0x1401298f8]
cmp rdx, rax
je 0x140081794
jl 0x14008182d
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xf
test al, al
jne 0x140081826
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.1400e8b30
lea rcx, [0x140081560]
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, [0x140081870]
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 0x140081854
cmp dword [rsp + 0x48], 0
je 0x140081848
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 0x140081848
mov qword [0x140157138], rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e89f0
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