Function at 0x140051240
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 [0x140102c74], edx
jle 0x1400512b2
lea rcx, [0x140102c74]
call fcn.1400d1f08
cmp dword [0x140102c74], 0xffffffff
jne 0x1400512b2
lea rcx, [0x1400d6160]
call fcn.1400d2320
lea rcx, [0x140102c74]
call fcn.1400d1ea8
xorps xmm1, xmm1
mov ecx, reloc.WS2_32.dll_listen
call fcn.140004f10
mov rbx, qword [0x140102730]
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.140025cc0
mov dword [rbx + 0x16e8], r15d
mov dword [rbx + 0x16ec], 0x3f000000
movaps xmm6, xmmword [0x1400ecc40]
mov rbx, qword [0x140102730]
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.140025db0
movups xmmword [rbx + 0x1718], xmm6
movss xmm0, dword [0x1400ec828]
movss dword [rsp + 0x38], xmm0
movss xmm1, dword [0x1400ec818]
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.14003db90
movzx r11d, byte [0x140102c58]
mov ebx, 1
test al, al
cmovne r11d, ebx
mov byte [0x140102c58], r11b
mov r8, qword [0x140102730]
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, [0x1400e5ea0]
mov r9d, dword [rsi + r10*4 + 8]
cmp dword [rsi + r10*4], 8
jne 0x140051406
mov eax, dword [rsi + r10*4 + 4]
cmp eax, ebx
jne 0x1400513e9
mov eax, dword [rdx + rcx*4 - 8]
mov dword [r9 + r8 + 0x1650], eax
jmp 0x140051406
cmp eax, 2
jne 0x140051406
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 0x14005146e
mov eax, dword [rsi + r10*4 + 4]
cmp eax, ebx
jne 0x140051451
mov eax, dword [rdx + rcx*4 + 4]
mov dword [r9 + r8 + 0x1650], eax
jmp 0x14005146e
cmp eax, 2
jne 0x14005146e
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 0x1400514fe
nop dword [rax]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1400514d6
cmp ebx, 0xc
je 0x1400514d6
mov eax, ebx
cmp ebx, 0x1b
cmove eax, r15d
mov dword [rdi], eax
mov byte [0x140102c58], r15b
inc ebx
cmp ebx, 0x100
jl 0x1400514b0
mov r8d, 5
lea rdx, str._..._
lea rcx, str._Not_Bound_
call fcn.140060c40
jmp 0x140051720
mov edx, dword [rdi]
test edx, edx
jne 0x140051520
lea r8d, [rdx + 0xb]
lea rdx, [0x1400ea5c0]
lea rcx, str._Not_Bound_
call fcn.140060c40
jmp 0x140051720
lea rcx, [rsp + 0x58]
call fcn.1400503a0
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400515b8
lea r8, [rcx + 1]
mov qword [rdi + 0x10], r8
mov rsi, rdi
cmp rdx, 0x10
jb 0x140051555
mov rsi, qword [rdi]
lea rax, [0x1400ea2fd]
lea r14, [0x1400ea2fc]
cmp rax, rsi
jbe 0x140051583
lea rax, [rsi + rcx]
cmp r14, rax
ja 0x140051583
cmp rsi, r14
ja 0x14005157b
mov rbp, r15
jmp 0x140051586
mov rbp, rsi
sub rbp, r14
jmp 0x140051586
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 0x1400515e0
mov qword [rsp + 0x28], rbx
lea r14, [0x1400ea2fc]
mov qword [rsp + 0x20], r14
xor r9d, r9d
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140069590
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, [0x1400ea2f8]
lea rcx, [rsp + 0x38]
call fcn.140060450
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 0x14005167f
inc rdx
mov rcx, qword [str._Not_Bound_]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005167a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005167a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d2338
movups xmmword [str._Not_Bound_], xmm6
movups xmmword [0x1401010c8], xmm7
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400516cd
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400516c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400516c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d2338
movdqa xmm0, xmmword [0x1400ec910]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140051720
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005171b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005171b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d2338
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