Function at 0x140040fb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov rax, qword [0x14016c0c0]
xor rax, rsp
mov qword [rbp - 0x58], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
lea r13, [rbp + 0x78]
movabs rsi, 0xff00ff00ff00ff00
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], r13
mov r14, qword [r13]
xor r14, rsi
mov qword [rbp - 0x70], r14
xor r12d, r12d
mov qword [r13], r12
movss xmm15, dword [0x140153150]
movss xmm12, dword [0x14015311c]
cmp byte [0x14051a043], r12b
je 0x14004153a
cmp byte [0x14051a042], r12b
je 0x14004108d
mov ecx, dword [0x140519970]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004108d
call fcn.14003c1f0
cmp byte [0x14051a045], 0
je 0x140041220
mov rax, qword [0x140519520]
mov rax, qword [rax + 0x48a8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.140007620
mov rdi, rax
lea rcx, [0x1405181a0]
call fcn.140004040
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
movd xmm6, eax
cvtdq2ps xmm6, xmm6
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
add eax, 8
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x34], xmm6
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
movd xmm6, eax
cvtdq2ps xmm6, xmm6
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
sub eax, 8
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x38], xmm0
movss dword [rsp + 0x3c], xmm6
movss dword [rsp + 0x20], xmm15
mov r9d, ebx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001f4b0
mov rax, qword [0x140519520]
mov rax, qword [rax + 0x48a8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.140007620
mov rdi, rax
lea rcx, [0x1405181a0]
call fcn.140004040
mov ebx, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
add eax, 8
movd xmm6, eax
cvtdq2ps xmm6, xmm6
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x34], xmm6
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
sub eax, 8
movd xmm6, eax
cvtdq2ps xmm6, xmm6
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x38], xmm0
movss dword [rsp + 0x3c], xmm6
movss dword [rsp + 0x20], xmm15
mov r9d, ebx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001f4b0
cmp byte [0x14051a041], 0
je 0x14004146a
mov rax, qword [0x140519520]
movss xmm10, dword [rax + 0x14]
mulss xmm10, xmm12
movss xmm11, dword [rax + 0x10]
mulss xmm11, xmm12
movss dword [rsp + 0x30], xmm11
movss dword [rsp + 0x34], xmm10
movss xmm9, dword [0x1401f3044]
xorps xmm0, xmm0
movdqa xmm1, xmmword [0x140153560]
movups xmmword [rsp + 0x58], xmm1
lea rdi, [rsp + 0x58]
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov ecx, reloc.WS2_32.dll_recv
call fcn.14011b940
mov rbx, rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
lea rcx, [rax + 0x10]
mov qword [rbp - 0x78], rcx
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rsi, [rbx + 0x10]
mov qword [rbp - 0x80], rsi
sub rsi, qword [rsp + 0x78]
sar rsi, 4
mov rax, qword [0x140519520]
mov rax, qword [rax + 0x48a8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.140007620
mov r15, rax
mov edi, r12d
movss xmm13, dword [0x140153214]
movss xmm14, dword [0x140153294]
nop word [rax + rax]
movd xmm7, edi
cvtdq2ps xmm7, xmm7
mulss xmm7, xmm13
divss xmm7, xmm14
lea ebx, [rdi + 1]
movd xmm8, ebx
cvtdq2ps xmm8, xmm8
mulss xmm8, xmm13
divss xmm8, xmm14
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm6, xmm0
mulss xmm6, xmm9
addss xmm6, xmm10
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
mulss xmm0, xmm9
addss xmm0, xmm11
movss dword [rsp + 0x38], xmm0
movss dword [rsp + 0x3c], xmm6
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm6, xmm0
mulss xmm6, xmm9
addss xmm6, xmm10
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
mulss xmm0, xmm9
addss xmm0, xmm11
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm6
mov eax, edi
cdq
idiv esi
movsxd rax, edx
add rax, rax
mov rcx, qword [rsp + 0x78]
movups xmm0, xmmword [rcx + rax*8]
movups xmmword [rsp + 0x68], xmm0
mov eax, ebx
cdq
idiv esi
movsxd rax, edx
add rax, rax
movups xmm0, xmmword [rcx + rax*8]
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x68]
call fcn.140004040
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14001f8d0
lea rcx, [rsp + 0x48]
call fcn.140004040
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14001f8d0
mov edi, ebx
cmp ebx, 0x64
jl 0x140041300
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140041460
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004144e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004144e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011ba54
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
movabs rsi, 0xff00ff00ff00ff00
cmp byte [0x14051a040], 0
je 0x14004153a
mov rax, qword [0x140519520]
mov rax, qword [rax + 0x48a8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.140007620
mov rbx, rax
lea rcx, [0x140518160]
call fcn.140004040
mov edi, eax
mov rcx, qword [0x140519520]
movss xmm1, dword [rcx + 0x14]
mulss xmm1, xmm12
movss xmm0, dword [rcx + 0x10]
mulss xmm0, xmm12
movss dword [rsp + 0x30], xmm0
movss dword [rsp + 0x34], xmm1
test eax, 0xff000000
je 0x14004153a
movss xmm2, dword [0x1401f3044]
comiss xmm12, xmm2
ja 0x14004153a
subss xmm2, xmm12
mov dword [rsp + 0x28], 0x63
movss xmm0, dword [0x14015320c]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001ec50
movss dword [rsp + 0x28], xmm15
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.14001d1f0
mov dword [rbx + 0x78], r12d
call fcn.14003dba0
cmp byte [0x14051a051], 0
je 0x14004179a
mov eax, Ordinal_50
mov r8d, Ordinal_46
cmp byte [reloc.WS2_32.dll_accept], 0
cmove r8d, eax
mov rax, qword [0x140519520]
or dword [rax + 0x47a8], 2
mov dword [rax + 0x47c8], 0x43480000
mov dword [rax + 0x47cc], 0x43480000
mov dword [rax + 0x47b0], 1
xor edx, edx
lea rcx, str.Radar
call fcn.14000d510
test al, al
je 0x14004179a
mov rcx, qword [0x140519520]
mov rax, qword [rcx + 0x3ed0]
movss xmm10, dword [rax + 0x18]
movss xmm11, dword [rax + 0x1c]
movss xmm9, dword [rax + 0x20]
movss xmm7, dword [rax + 0x24]
mov byte [rax + 0xb0], 1
mov rax, qword [rcx + 0x3ed0]
mov rbx, qword [rax + 0x290]
movaps xmm8, xmm7
mulss xmm8, xmm12
addss xmm8, xmm11
movaps xmm6, xmm9
mulss xmm6, xmm12
addss xmm6, xmm10
movss dword [rsp + 0x40], xmm6
movss dword [rsp + 0x44], xmm8
movdqa xmm0, xmmword [0x1401535a0]
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x48]
call fcn.140004040
movaps xmm0, xmm11
addss xmm0, xmm7
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x34], xmm0
movss dword [rsp + 0x38], xmm6
movss dword [rsp + 0x3c], xmm11
movss dword [rsp + 0x20], xmm12
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001f4b0
movdqa xmm0, xmmword [0x1401535a0]
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x48]
call fcn.140004040
movaps xmm6, xmm10
addss xmm6, xmm9
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x34], xmm8
movss dword [rsp + 0x38], xmm10
movss dword [rsp + 0x3c], xmm8
movss dword [rsp + 0x20], xmm12
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14001f4b0
movdqa xmm0, xmmword [0x1401535a0]
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x48]
call fcn.140004040
movss dword [rsp + 0x30], xmm10
movss dword [rsp + 0x34], xmm11
movss dword [rsp + 0x20], xmm15
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001f4b0
movdqa xmm0, xmmword [0x1401535a0]
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x48]
call fcn.140004040
movss dword [rsp + 0x30], xmm6
movss dword [rsp + 0x34], xmm11
movss dword [rsp + 0x20], xmm12
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001f4b0
movdqa xmm0, xmmword [0x1401537b0]
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x48]
call fcn.140004040
mov edi, eax
test eax, 0xff000000
je 0x140041794
mov dword [rsp + 0x20], Ordinal_50
xor r9d, r9d
movss xmm2, dword [0x1401531f8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001e710
mov r8d, dword [rbx + 0x78]
dec r8d
mov dword [rbx + 0x78], r8d
mov r9d, edi
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.14001e150
mov dword [rbx + 0x78], r12d
call fcn.14000fb50
nop
xor r14, rsi
mov qword [r13], r14
mov rcx, qword [rbp - 0x58]
xor rcx, rsp
call fcn.14011b320
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret