Function at 0x140041a40
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm7
mov rax, qword [0x140136080]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [0x1402985f0], 0
jne 0x140041a78
call fcn.1400253a0
mov rcx, qword [0x140298610]
lea rdx, [rsp + 0x48]
mov rdi, qword [0x1402981e0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
sub eax, dword [rsp + 0x48]
movd xmm1, eax
mov eax, dword [rsp + 0x54]
sub eax, dword [rsp + 0x4c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x60]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140298618]
cvtsi2ss xmm0, qword [0x140298620]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140298618], rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_select
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x1402981e0]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rcx + 0x3af], 0
lea rbx, [rcx + 0x118]
je 0x140041b8b
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x140298610]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140298610]
jne 0x140041be7
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140041be7
mov rcx, qword [0x140298610]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140041be7
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
je 0x140041bf7
mov eax, 0xffffffff
jmp 0x140041c04
mov rax, qword [0x1402981e0]
mov eax, dword [rax + 0x1ec0]
cmp dword [reloc.WS2_32.dll_htonl], eax
je 0x140041c17
mov dword [reloc.WS2_32.dll_htonl], eax
call fcn.140025510
call fcn.140006ab0
mov ecx, reloc.WS2_32.dll_WSASetLastError
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140041c3d
cmp byte [reloc.WS2_32.dll_accept], 0
sete cl
mov byte [reloc.WS2_32.dll_accept], cl
jmp 0x140041c44
movzx ecx, byte [reloc.WS2_32.dll_accept]
call fcn.1400389f0
mov rax, qword [0x1402981e0]
test cl, cl
je 0x140041c7f
xor edx, edx
mov byte [rax + 0xd0], 1
mov r8d, 0x122
lea rcx, str.3oGNDYHnenNmZmK
call fcn.14000a3b0
test al, al
je 0x140041c78
call fcn.140038b50
call fcn.14000d320
jmp 0x140041c86
mov byte [rax + 0xd0], 0
movss xmm1, dword [0x140297394]
xorps xmm4, xmm4
movss xmm3, dword [0x140124f34]
ucomiss xmm1, xmm3
movss xmm2, dword [0x140298a84]
jp 0x140041cc5
jne 0x140041cc5
ucomiss xmm2, xmm4
jp 0x140041cc5
jne 0x140041cc5
movss xmm0, dword [0x140298a98]
addss xmm0, xmm3
movss dword [0x140298a98], xmm0
jmp 0x140041ccd
movss xmm0, dword [0x140298a98]
movss xmm5, dword [0x140124f98]
comiss xmm0, xmm5
movss xmm6, dword [0x140124f9c]
jbe 0x140041d00
ucomiss xmm2, xmm4
jp 0x140041d00
jne 0x140041d00
addss xmm1, xmm3
movss dword [0x140298a98], xmm6
movaps xmm0, xmm6
movss dword [0x140297394], xmm1
comiss xmm1, xmm5
movss xmm7, dword [0x1401250c0]
jbe 0x140041d2b
ucomiss xmm2, xmm4
jp 0x140041d2b
jne 0x140041d2b
addss xmm0, xmm7
movss dword [0x140297394], xmm6
movaps xmm1, xmm6
movss dword [0x140298a98], xmm0
comiss xmm3, xmm0
jbe 0x140041d4e
ucomiss xmm1, xmm6
jp 0x140041d4e
jne 0x140041d4e
addss xmm2, xmm3
xorps xmm0, xmm0
movss dword [0x140298a98], xmm0
movss dword [0x140298a84], xmm2
comiss xmm2, xmm5
jbe 0x140041d71
ucomiss xmm0, xmm4
jp 0x140041d71
jne 0x140041d71
addss xmm1, xmm7
movss dword [0x140298a84], xmm6
movaps xmm2, xmm6
movss dword [0x140297394], xmm1
comiss xmm3, xmm1
jbe 0x140041d94
ucomiss xmm2, xmm6
jp 0x140041d94
jne 0x140041d94
addss xmm0, xmm3
xorps xmm1, xmm1
movss dword [0x140297394], xmm1
movss dword [0x140298a98], xmm0
comiss xmm0, xmm5
jbe 0x140041db7
ucomiss xmm1, xmm4
jp 0x140041db7
jne 0x140041db7
addss xmm2, xmm7
movss dword [0x140298a98], xmm6
movaps xmm0, xmm6
movss dword [0x140298a84], xmm2
comiss xmm3, xmm2
jbe 0x140041de8
ucomiss xmm1, xmm4
jp 0x140041de8
jne 0x140041de8
addss xmm0, xmm7
mov dword [0x140298a84], 0
comiss xmm3, xmm0
movss dword [0x140298a98], xmm0
jbe 0x140041de8
mov dword [0x140297394], 0x3c23d70a
call fcn.14003d420
mov rcx, qword [0x140298640]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x140298640]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x140298640]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140298640]
xor edi, edi
mov dword [rsp + 0x30], edi
xor r8d, r8d
movss dword [rsp + 0x28], xmm6
xor edx, edx
mov dword [rsp + 0x20], edi
mov rax, qword [rcx]
lea r9d, [rdi + 1]
call qword [rax + 0x158]
mov rcx, qword [0x140298640]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140041e9f
call fcn.1400080c0
mov rcx, qword [0x1402981e0]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140024ad0
mov rcx, qword [0x140298640]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140298640]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140041f61
mov rcx, qword [0x140298640]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x140041f61
cmp qword [0x140298600], rdi
je 0x140041f45
mov rcx, qword [0x140298608]
test rcx, rcx
je 0x140041f01
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140298608], rdi
mov rcx, qword [0x1402985f8]
test rcx, rcx
je 0x140041f1a
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1402985f8], rdi
mov rcx, qword [0x1402985f0]
mov rbx, qword [0x1402981e0]
test rcx, rcx
je 0x140041f33
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1402985f0], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x140298640]
lea rdx, [0x140298270]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
call fcn.1400253a0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a7e40
mov rbx, qword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x90
pop rdi
ret