Function at 0x180008f70
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x5a8]
sub rsp, 0x680
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1800c86c0]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov rdi, rcx
mov rbx, r8
mov ecx, dword [rcx]
mov rsi, rdx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
xor r14d, r14d
and al, 1
mov byte [rdi + 5], r14b
cmp al, byte [rdi + 4]
je 0x180008fd5
test al, al
je 0x180008fd5
mov byte [rdi + 4], al
mov byte [rdi + 5], 1
cmp byte [rdi + 8], r14b
sete al
mov byte [rdi + 8], al
jmp 0x180008fd8
mov byte [rdi + 4], al
test rbx, rbx
je 0x180009476
call fcn.18001f998
mov rdx, rax
mov rcx, rbx
call fcn.180020938
test al, al
je 0x180009476
cmp byte [rsi + 0xcf0], r14b
jne 0x180009476
mov ecx, 0xbf800000
mov qword [rsp + 0x30], rbx
cmp byte [rdi + 0x42], r14b
je 0x180009022
mov dword [rbx + 0x8c4], ecx
mov dword [rbx + 0x8cc], ecx
cmp byte [rdi + 0x54], r14b
je 0x18000903a
mov eax, dword [rdi + 0x58]
mov dword [rbx + 0x8c4], eax
mov eax, dword [rdi + 0x5c]
mov dword [rbx + 0x8cc], eax
cmp byte [rdi + 0x43], r14b
je 0x180009057
mov eax, 0x42b40000
mov dword [rbx + 0x8a0], eax
mov dword [rbx + 0x8a4], eax
mov dword [rbx + 0x8a8], ecx
cmp byte [rdi + 0x44], r14b
je 0x18000909f
mov rax, qword [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov rbx, qword [rax + 0x288]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov cl, byte [rbx + 0xd18]
test ax, ax
jns 0x180009090
cmp cl, 7
je 0x18000909f
mov rcx, qword [rsp + 0x30]
call fcn.180021fc4
jmp 0x18000909f
cmp cl, 7
jne 0x18000909f
mov rcx, qword [rsp + 0x30]
call fcn.180021ec4
cmp byte [rdi + 0x45], r14b
je 0x1800090e7
mov ecx, dword [0x1800c89b0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
mov cl, r14b
and al, 1
mov byte [0x1800c89b5], cl
cmp al, byte [0x1800c89b4]
je 0x1800090d3
test al, al
je 0x1800090d3
mov cl, 1
mov byte [0x1800c89b5], cl
mov byte [0x1800c89b4], al
test cl, cl
je 0x1800090e7
mov rcx, qword [rsp + 0x30]
call fcn.180022700
cmp byte [rdi + 0x46], r14b
je 0x1800090f9
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xde8], r14d
cmp byte [rdi + 0x47], r14b
je 0x180009109
mov rcx, qword [rsp + 0x30]
call fcn.180022600
cmp byte [rdi + 0x41], r14b
je 0x180009123
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
call fcn.1800097ac
mov ecx, dword [reloc.WS2_32.dll_connect]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
mov cl, r14b
and al, 1
mov byte [0x1800c89bd], cl
cmp al, byte [0x1800c89bc]
je 0x180009151
test al, al
je 0x180009151
mov cl, 1
mov byte [0x1800c89bd], cl
mov byte [0x1800c89bc], al
cmp byte [rdi + 0x49], r14b
je 0x180009178
test cl, cl
je 0x180009178
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], r14b
xor edx, edx
call fcn.180022a20
mov ecx, dword [0x1800c89c8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
mov cl, r14b
and al, 1
mov byte [0x1800c89cd], cl
cmp al, byte [0x1800c89cc]
je 0x1800091a6
test al, al
je 0x1800091a6
mov cl, 1
mov byte [0x1800c89cd], cl
mov byte [0x1800c89cc], al
cmp byte [rdi + 0x4b], r14b
je 0x1800091c0
test cl, cl
je 0x1800091c0
mov rcx, qword [rsp + 0x30]
call fcn.1800218a4
mov ecx, dword [0x1800c89c0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
mov cl, r14b
and al, 1
mov byte [0x1800c89c5], cl
cmp al, byte [0x1800c89c4]
je 0x1800091ee
test al, al
je 0x1800091ee
mov cl, 1
mov byte [0x1800c89c5], cl
mov byte [0x1800c89c4], al
cmp byte [rdi + 0x4c], r14b
je 0x18000920b
test cl, cl
je 0x18000920b
mov rcx, qword [rsp + 0x30]
xorps xmm2, xmm2
call fcn.180022908
cmp byte [rdi + 0x4d], r14b
je 0x180009275
mov rbx, qword [rsp + 0x30]
cmp qword [rbx + 0x11f8], r14
je 0x180009275
mov rbx, qword [rbx + 0xb08]
test rbx, rbx
je 0x180009275
call fcn.1800219a4
mov rdx, rax
mov rcx, rbx
call fcn.180020938
test al, al
je 0x18000924a
cmp byte [rbx + 0x10e9], 2
jne 0x180009275
jmp 0x18000925e
call fcn.180021a54
mov rdx, rax
mov rcx, rbx
call fcn.180020938
test al, al
je 0x180009275
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], r14b
xor edx, edx
call fcn.180022a20
cmp byte [rdi + 0x4a], r14b
je 0x1800093f2
mov rbx, qword [rsi + 0x2b8]
test rbx, rbx
je 0x180009476
mov ecx, 0x54
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx edx, byte [0x1800cb686]
and eax, 0x8000
test edx, edx
je 0x1800093ce
sub edx, 1
je 0x1800092d8
cmp edx, 1
jne 0x1800093f2
lea rax, [rsp + 0x30]
lea ecx, [rdx + 0x7c]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
call fcn.1800098d0
jmp 0x1800093f2
lea rcx, [rbp - 0x80]
mov byte [0x1800cb686], 2
lea rdx, [rbx + 0xe80]
mov r8d, 0x5e0
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x228]
lea rdx, [rsp + 0x38]
call fcn.180020a10
mov rcx, qword [rbx + 0x228]
lea rdx, [rsp + 0x48]
call fcn.180020c38
movzx eax, byte [0x1800cb687]
movd xmm6, eax
cvtdq2ps xmm6, xmm6
mulss xmm6, dword [0x1800baccc]
mulss xmm6, dword [0x1800bade8]
movaps xmm0, xmm6
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_cosf]
movaps xmm2, xmm0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.18001febc
movaps xmm0, xmm6
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_sinf]
movaps xmm2, xmm0
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x48]
call fcn.18001febc
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.18001fe40
movss xmm2, dword [0x1800badf0]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.18001febc
mov dl, byte [0x1800cb687]
lea r8, [rsp + 0x48]
inc dl
lea rcx, [rbp - 0x80]
and dl, 7
mov byte [0x1800cb687], dl
lea rdx, [rsp + 0x38]
call fcn.18001fe40
mov rcx, qword [rsp + 0x30]
lea r8, [rbp - 0x74]
lea rdx, [rsp + 0x38]
call fcn.1800224cc
mov dl, reloc.WS2_32.dll_setsockopt
jmp 0x1800093dd
test eax, eax
setne byte [0x1800cb686]
test eax, eax
je 0x1800093f2
mov dl, setsockopt
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], r14b
call fcn.180022a20
mov rcx, qword [rdi + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x180009422
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
shl rcx, 4
add r8, rcx
lea rcx, [r8 + 0x10]
call fcn.180009bf4
add qword [rdi + 0x18], 0xfffffffffffffff0
or qword [rdi + 0x30], 0xffffffffffffffff
mov qword [rdi + 0x28], r14
cmp byte [rdi + 0x38], r14b
je 0x180009476
mov rax, qword [rdi + 0x10]
cmp rax, qword [rdi + 0x18]
je 0x180009476
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsp + 0x30]
shl rdx, 4
add rdx, rax
mov al, byte [rdx + 0xc]
mov r9b, byte [rdx + 8]
mov r8b, byte [rdx + 4]
mov dl, byte [rdx]
mov byte [rsp + 0x20], al
call fcn.180022a20
inc qword [rdi + 0x28]
mov rax, qword [rdi + 0x18]
sub rax, qword [rdi + 0x10]
sar rax, 4
cmp qword [rdi + 0x28], rax
jb 0x180009472
mov qword [rdi + 0x28], r14
mov byte [rdi + 0x38], r14b
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.1800a21a0
movaps xmm6, xmmword [rsp + 0x670]
add rsp, 0x680
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret