Function at 0x140050590
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rdi, rcx
xor r15d, r15d
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
mov edx, dword [rcx + rax]
cmp dword [0x1400e3794], edx
jle 0x140050602
lea rcx, [0x1400e3794]
call fcn.1400b8cd8
cmp dword [0x1400e3794], 0xffffffff
jne 0x140050602
lea rcx, [0x1400bb810]
call fcn.1400b90f0
lea rcx, [0x1400e3794]
call fcn.1400b8c78
xorps xmm1, xmm1
mov ecx, reloc.WS2_32.dll_listen
call fcn.140004500
mov rbx, qword [0x1400e31f0]
lea rcx, [rbx + 0x1ec8]
movss xmm1, dword [rbx + 0x16e8]
movss xmm0, dword [rbx + 0x16ec]
mov dword [rsp + 0x38], reloc.WS2_32.dll_socket
movss dword [rsp + 0x3c], xmm1
movss dword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x38]
call fcn.140025250
mov dword [rbx + 0x16e8], r15d
mov dword [rbx + 0x16ec], 0x3f000000
movaps xmm6, xmmword [0x1400d19d0]
mov rbx, qword [0x1400e31f0]
mov dword [rsp + 0x38], r15d
movups xmm0, xmmword [rbx + 0x1718]
movups xmmword [rsp + 0x3c], xmm0
lea rcx, [rbx + 0x1eb8]
lea rdx, [rsp + 0x38]
call fcn.140025340
movups xmmword [rbx + 0x1718], xmm6
movss xmm0, dword [0x1400d1564]
movss dword [rsp + 0x38], xmm0
movss xmm1, dword [0x1400d1554]
movss dword [rsp + 0x3c], xmm1
lea rcx, str._Not_Bound_
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [str._Not_Bound_]
xor r8d, r8d
lea rdx, [rsp + 0x38]
call fcn.14003cfa0
movzx r11d, byte [0x1400e377c]
mov ebx, 1
test al, al
cmovne r11d, ebx
mov byte [0x1400e377c], r11b
mov r8, qword [0x1400e31f0]
movsxd rax, dword [r8 + 0x1ec8]
lea rcx, [rax + rax*2]
mov rdx, qword [r8 + 0x1ed0]
movsxd rax, dword [rdx + rcx*4 - 0xc]
lea r10, [rax + rax*2]
lea rsi, [0x1400cc8e0]
mov r9d, dword [rsi + r10*4 + 8]
cmp dword [rsi + r10*4], 8
jne 0x140050756
mov eax, dword [rsi + r10*4 + 4]
cmp eax, ebx
jne 0x140050739
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1650], eax
jmp 0x140050756
cmp eax, 2
jne 0x140050756
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1650], eax
mov eax, dword [rdx + rcx*4 - 4]
mov dword [r9 + r8 + 0x1654], eax
movsxd rcx, dword [r8 + 0x1ec8]
lea eax, [rcx - 1]
mov dword [r8 + 0x1ec8], eax
lea rax, [rcx - 2]
lea rcx, [rax + rax*2]
mov rdx, qword [r8 + 0x1ed0]
movsxd rax, dword [rdx + rcx*4]
lea r10, [rax + rax*2]
mov r9d, dword [rsi + r10*4 + 8]
cmp dword [rsi + r10*4], 8
jne 0x1400507be
mov eax, dword [rsi + r10*4 + 4]
cmp eax, ebx
jne 0x1400507a1
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1650], eax
jmp 0x1400507be
cmp eax, 2
jne 0x1400507be
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1650], eax
mov eax, dword [rdx + rcx*4 + 8]
mov dword [r9 + r8 + 0x1654], eax
dec dword [r8 + 0x1ec8]
movsxd rax, dword [r8 + 0x1eb8]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1ec0]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1718], xmm0
dec dword [r8 + 0x1eb8]
test r11b, r11b
je 0x14005084e
nop dword [rax]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140050826
cmp ebx, 0xc
je 0x140050826
mov eax, ebx
cmp ebx, 0x1b
cmove eax, r15d
mov dword [rdi], eax
mov byte [0x1400e377c], r15b
inc ebx
cmp ebx, 0x100
jl 0x140050800
mov r8d, 5
lea rdx, str._..._
lea rcx, str._Not_Bound_
call fcn.140056a60
jmp 0x140050a70
mov edx, dword [rdi]
test edx, edx
jne 0x140050870
lea r8d, [rdx + 0xb]
lea rdx, [0x1400d1000]
lea rcx, str._Not_Bound_
call fcn.140056a60
jmp 0x140050a70
lea rcx, [rsp + 0x58]
call fcn.14004f6d0
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140050908
lea r8, [rcx + 1]
mov qword [rdi + 0x10], r8
mov rsi, rdi
cmp rdx, 0x10
jb 0x1400508a5
mov rsi, qword [rdi]
lea rax, [0x1400d0d3d]
lea r14, [0x1400d0d3c]
cmp rax, rsi
jbe 0x1400508d3
lea rax, [rsi + rcx]
cmp r14, rax
ja 0x1400508d3
cmp rsi, r14
ja 0x1400508cb
mov rbp, r15
jmp 0x1400508d6
mov rbp, rsi
sub rbp, r14
jmp 0x1400508d6
mov rbp, rbx
lea rcx, [rsi + 1]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, rbx
sub r8, rbp
lea rdx, [r14 + 1]
add rdx, rbp
lea rcx, [rsi + rbp]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140050930
mov qword [rsp + 0x28], rbx
lea r14, [0x1400d0d3c]
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140057fc0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov r8, rbx
lea rdx, [0x1400d0d38]
lea rcx, [rsp + 0x38]
call fcn.140056800
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0x10
jb 0x1400509cf
inc rdx
mov rcx, qword [str._Not_Bound_]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400509ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400509ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9108
movups xmmword [str._Not_Bound_], xmm6
movups xmmword [0x1400e20c8], xmm7
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140050a1d
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050a18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050a18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9108
movdqa xmm0, xmmword [0x1400d1640]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140050a70
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050a6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050a6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9108
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret