Function at 0x1400772a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140279c48]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140044b00
mov rsi, rax
mov rcx, qword [0x140288b08]
lea rdx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtsi2ss xmm0, eax
mov eax, dword [rsp + 0x30]
sub eax, dword [rsp + 0x28]
cvtsi2ss xmm1, eax
movss dword [rsi + 8], xmm1
movss dword [rsi + 0xc], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov rcx, rax
sub rcx, qword [0x140288b00]
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
xorps xmm1, xmm1
cvtsi2ss xmm1, qword [0x140288af8]
divss xmm0, xmm1
movss dword [rsi + 0x10], xmm0
mov qword [0x140288b00], rax
mov rdi, qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.WS2_32.dll_recvfrom
call rdi
movzx eax, ax
shr eax, 0xf
mov byte [rsi + 0x140], al
mov ecx, reloc.WS2_32.dll_recv
call rdi
movzx eax, ax
shr eax, 0xf
mov byte [rsi + 0x141], al
mov ecx, reloc.WS2_32.dll_select
call rdi
movzx eax, ax
shr eax, 0xf
mov byte [rsi + 0x142], al
mov byte [rsi + 0x143], 0
call fcn.140044b00
mov rdi, rax
cmp byte [rax + 0x39b], 0
je 0x1400773bf
cvttss2si eax, dword [rdi + 0x128]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rdi + 0x12c]
mov dword [rsp + 0x3c], eax
mov rcx, qword [0x140288b08]
lea rdx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
call qword [sym.imp.USER32.dll_SetCursorPos]
movabs rax, 0xff7fffffff7fffff
mov qword [rdi + 0x128], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14007743b
mov rdx, qword [0x140288b08]
cmp rax, rdx
je 0x1400773f4
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x14007743b
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14007743b
mov rcx, qword [0x140288b08]
lea rdx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14007743b
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [rsp + 0x38]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [rsp + 0x3c]
movss dword [rdi + 0x128], xmm0
movss dword [rdi + 0x12c], xmm1
mov eax, 0xffffffff
cmp byte [rsi + 0xc0], 0
je 0x140077502
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x140077460
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.140077770
call fcn.140044b00
xorps xmm0, xmm0
movups xmmword [rax + 0x344], xmm0
movups xmmword [rax + 0x354], xmm0
movups xmmword [rax + 0x364], xmm0
movups xmmword [rax + 0x374], xmm0
movups xmmword [rax + 0x384], xmm0
mov dword [rax + 0x394], 0
test byte [rax], 2
jne 0x1400774af
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c4bd0
nop
add rsp, 0x58
pop rdi
pop rsi
ret
mov rsi, rax
cmp byte [0x140288b10], 0
jne 0x1400774dc
lea r8, [rsp + 0x38]
xor ecx, ecx
mov edx, 1
call sub.XINPUT1_3.dll_Ordinal_4
test eax, eax
sete byte [0x140288b4c]
mov byte [0x140288b10], 1
cmp dword [0x14027cf1c], 0xa
jl 0x140077518
mov eax, dword [0x14027cf18]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140077518
nop word cs:[rax + rax]
jmp 0x140077500
call fcn.1400539f0
cmp dword [reloc.WS2_32.dll_htons], eax
jne 0x140077455
jmp 0x140077460
and byte [rsi + 4], 0xfe
cmp byte [0x140288b4c], 0
je 0x14007749a
lea rdx, [rsp + 0x38]
xor ecx, ecx
call sub.XINPUT1_3.dll_Ordinal_2
test eax, eax
jne 0x14007749a
mov eax, dword [0x14027cf18]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete al
cmp dword [0x14027cf1c], 0xa
setl r8b
or r8b, al
mov edx, dword [rsi + 4]
movzx ecx, word [rsp + 0x3c]
jne 0x1400775aa
mov eax, ecx
and eax, 0x1000
mov edi, ecx
and edi, 0x2000
or edx, 1
mov dword [rsi + 4], edx
xorps xmm0, xmm0
movss xmm1, dword [0x140117160]
xorps xmm2, xmm2
test ax, ax
je 0x140077592
movaps xmm2, xmm1
movss dword [rsi + 0x344], xmm2
test di, di
je 0x1400775a2
movaps xmm0, xmm1
movss dword [rsi + 0x348], xmm0
or edx, 1
mov dword [rsi + 4], edx
mov eax, ecx
xorps xmm0, xmm0
movss xmm1, dword [0x140117160]
xorps xmm2, xmm2
and ax, 0x1000
je 0x1400775c9
movaps xmm2, xmm1
movss dword [rsi + 0x344], xmm2
mov edi, ecx
and di, 0x2000
je 0x1400775dd
movaps xmm0, xmm1
movss dword [rsi + 0x348], xmm0
test r8b, r8b
je 0x140077576
xorps xmm1, xmm1
movss xmm0, dword [0x140117160]
xorps xmm4, xmm4
test cx, cx
jns 0x140077600
movaps xmm4, xmm0
movd xmm2, ecx
pshuflw xmm2, xmm2, 0
movdqa xmm5, xmmword [0x1401d1c30]
pand xmm5, xmm2
pxor xmm3, xmm3
pcmpeqw xmm5, xmm3
punpcklwd xmm5, xmm5
psrad xmm5, 0x10
pandn xmm5, xmmword [0x1401ca5c0]
movss dword [rsi + 0x34c], xmm4
movdqu xmmword [rsi + 0x350], xmm5
xorps xmm4, xmm4
test cl, 2
je 0x140077649
movaps xmm4, xmm0
pand xmm2, xmmword [0x1401d1c40]
pcmpeqw xmm2, xmm3
punpcklwd xmm2, xmm2
psrad xmm2, 0x10
pandn xmm2, xmmword [0x1401d1c50]
movss dword [rsi + 0x360], xmm4
pshufd xmm2, xmm2, 0x44
movdqu xmmword [rsi + 0x374], xmm2
movsx eax, word [rsp + 0x40]
lea ecx, [rax + 0x1ea9]
xorps xmm2, xmm2
cvtsi2ss xmm2, ecx
divss xmm2, dword [0x1401d1c60]
minss xmm0, xmm2
ucomiss xmm0, xmm1
jbe 0x1400776af
ucomiss xmm0, dword [rsi + 0x364]
jbe 0x1400776af
movss dword [rsi + 0x364], xmm0
add eax, 0xffffe157
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
divss xmm2, dword [0x1401d1c64]
movss xmm0, dword [0x140117160]
movaps xmm1, xmm0
minss xmm1, xmm2
xorps xmm2, xmm2
ucomiss xmm1, xmm2
jbe 0x1400776eb
ucomiss xmm1, dword [rsi + 0x368]
jbe 0x1400776eb
movss dword [rsi + 0x368], xmm1
movsx eax, word [rsp + 0x42]
lea ecx, [rax - 0x1ea9]
xorps xmm1, xmm1
cvtsi2ss xmm1, ecx
divss xmm1, dword [0x1401d1c64]
ucomiss xmm1, xmm0
ja 0x140077715
xorps xmm0, xmm0
ucomiss xmm1, xmm0
movaps xmm0, xmm1
jbe 0x140077726
ucomiss xmm0, dword [rsi + 0x36c]
jbe 0x140077726
movss dword [rsi + 0x36c], xmm0
add eax, 0x1ea9
xorps xmm1, xmm1
cvtsi2ss xmm1, eax
divss xmm1, dword [0x1401d1c68]
movss xmm0, dword [0x140117160]
minss xmm0, xmm1
xorps xmm1, xmm1
ucomiss xmm0, xmm1
jbe 0x14007749a
ucomiss xmm0, dword [rsi + 0x370]
jbe 0x14007749a
movss dword [rsi + 0x370], xmm0
jmp 0x14007749a