Function at 0x1800dbe20
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
mov rax, qword [0x180249a80]
xor rax, rsp
mov qword [rbp - 0x11], rax
cmp byte [0x180249135], 0
mov rbx, rcx
je 0x1800dbe76
mov ecx, dword [reloc.WS2_32.dll_bind]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800dbe76
mov rcx, rbx
call fcn.1800b0b40
test rax, rax
je 0x1800dc342
mov rdx, rax
mov rcx, rbx
call fcn.180073870
cmp byte [0x180249170], 0
je 0x1800dc342
mov ecx, dword [reloc.WS2_32.dll_bind]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800dc358
cmp byte [0x18024db8c], 0
mov qword [rsp + 0x120], r14
jne 0x1800dbec0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov byte [0x18024db8c], 1
mov rcx, rbx
call fcn.1800b0f60
mov r14, rax
test rax, rax
je 0x1800dc33a
mov rcx, qword [0x1802492c0]
mov r8, rax
mov edx, dword [0x1802494e8]
movaps xmmword [rsp + 0xc0], xmm8
movaps xmmword [rsp + 0xb0], xmm9
movss xmm1, dword [rcx + 4]
movss xmm0, dword [rcx]
lea rcx, [0x18024b4e0]
movss xmm9, dword [0x1801ad7b8]
mulss xmm0, xmm9
mulss xmm1, xmm9
movss dword [rbp - 0x31], xmm0
movss dword [rbp - 0x2d], xmm1
test edx, edx
je 0x1800dbf49
sub edx, 1
je 0x1800dbf3d
cmp edx, 1
lea rdx, [rbp - 0x69]
jne 0x1800dbf4d
mov r9d, 8
jmp 0x1800dbf50
mov r9d, 7
lea rdx, [rbp - 0x69]
jmp 0x1800dbf50
lea rdx, [rbp - 0x69]
xor r9d, r9d
call fcn.1800af570
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x79]
lea rcx, [0x18024b4e0]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x49], xmm0
mov dword [rbp - 0x41], eax
call fcn.1800eaec0
movsd xmm0, qword [rbp - 0x79]
movsd qword [rbp - 0x39], xmm0
xorps xmm0, xmm0
movss xmm8, dword [rbp - 0x39]
comiss xmm0, xmm8
ja 0x1800dc328
mov rax, qword [0x1802492c0]
comiss xmm8, dword [rax]
ja 0x1800dc328
movss xmm1, dword [rbp - 0x35]
comiss xmm0, xmm1
ja 0x1800dc328
comiss xmm1, dword [rax + 4]
ja 0x1800dc328
movss xmm0, dword [rbp - 0x2d]
subss xmm0, xmm1
movaps xmmword [rsp + 0xe0], xmm6
movsd xmm1, qword [0x1801c6d38]
movaps xmmword [rsp + 0xd0], xmm7
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movss xmm2, dword [rbp - 0x31]
movaps xmm7, xmm0
movsd xmm1, qword [0x1801c6d38]
subss xmm2, xmm8
cvtps2pd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm7
ucomiss xmm1, xmm0
ja 0x1800dc01d
sqrtss xmm0, xmm0
jmp 0x1800dc022
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movss xmm1, dword [0x180249180]
mulss xmm1, dword [0x1801ad7f0]
comiss xmm1, xmm0
jb 0x1800dc318
cmp byte [0x180249175], 0
mov ebx, dword [0x180249178]
je 0x1800dc074
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
sub r8d, ecx
cmp r8d, ebx
jge 0x1800dc318
cmp byte [0x18024917c], 0
je 0x1800dc2ed
cmp byte [0x1802494ec], 0
je 0x1800dc2af
mov qword [rsp + 0x110], rsi
xor eax, eax
mov qword [rsp + 0x118], rdi
xorps xmm0, xmm0
mov qword [rsp + 0xf0], r15
lea rdi, [rbp - 0x79]
mov ecx, ntohs
movaps xmmword [rsp + 0xa0], xmm10
mov dword [rbp - 0x79], eax
mov dword [rbp - 0x75], 7
mov dword [rbp - 0x71], 8
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rax
call fcn.1801a8d04
mov r8d, ntohs
mov qword [rbp - 0x29], rax
mov rdx, rdi
mov qword [rbp - 0x21], rax
mov rbx, rax
lea rcx, [rax + 0xc]
mov qword [rbp - 0x19], rcx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [0x1802492c0]
lea r15, [rbx + 0xc]
mov rdi, qword [rbp - 0x29]
mov esi, 0xffffffff
movss xmm6, dword [0x1801ad894]
mov qword [rbp - 0x21], r15
movss xmm8, dword [rax]
movss xmm10, dword [rax + 4]
mulss xmm8, xmm9
mulss xmm10, xmm9
cmp rdi, r15
je 0x1800dc1d4
nop
mov ebx, dword [rdi]
lea rdx, [rbp - 0x59]
mov r9d, ebx
lea rcx, [0x18024b4e0]
mov r8, r14
movaps xmm7, xmm6
call fcn.1800af570
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x79]
lea rcx, [0x18024b4e0]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x69], xmm0
mov dword [rbp - 0x61], eax
call fcn.1800eaec0
movss xmm0, dword [rbp - 0x79]
movss xmm1, dword [rbp - 0x75]
subss xmm0, xmm8
subss xmm1, xmm10
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm0, xmm1
ja 0x1800dc1af
xorps xmm0, xmm0
sqrtss xmm0, xmm1
jmp 0x1800dc1b7
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
comiss xmm6, xmm0
jbe 0x1800dc1bf
movaps xmm6, xmm0
comiss xmm7, xmm0
cmovbe ebx, esi
add rdi, 4
mov esi, ebx
cmp rdi, r15
jne 0x1800dc140
mov r9d, esi
lea rdx, [rbp - 0x59]
mov r8, r14
lea rcx, [0x18024b4e0]
call fcn.1800af570
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
lea rcx, [0x18024b4e0]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x69], xmm0
mov dword [rbp - 0x61], eax
call fcn.1800eaec0
call fcn.1800165b0
movdqa xmm0, xmmword [0x1801c71c0]
lea rcx, [rbp - 0x59]
movups xmmword [rbp - 0x59], xmm0
mov rbx, rax
call fcn.180012650
movss xmm0, dword [0x1801ad7bc]
lea r8, [rbp - 0x49]
mov r9d, eax
movss dword [rsp + 0x20], xmm0
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.18002d4e0
mov rcx, qword [rbp - 0x29]
movaps xmm10, xmmword [rsp + 0xa0]
mov r15, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x110]
test rcx, rcx
je 0x1800dc2ed
mov rdx, qword [rbp - 0x19]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x1800dc2a8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800dc2a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801a8d40
jmp 0x1800dc2ed
call fcn.1800165b0
movdqa xmm0, xmmword [0x1801c71c0]
lea rcx, [rbp - 0x59]
movups xmmword [rbp - 0x59], xmm0
mov rbx, rax
call fcn.180012650
movss xmm0, dword [0x1801ad7bc]
lea r8, [rbp - 0x39]
mov r9d, eax
movss dword [rsp + 0x20], xmm0
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.18002d4e0
movss xmm0, dword [0x180249180]
movzx eax, byte [0x180249174]
movss dword [0x180249508], xmm0
mov byte [0x1802494ee], al
mov qword [0x1802494e0], r14
mov byte [0x1802494ed], 1
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm8, xmmword [rsp + 0xc0]
movaps xmm9, xmmword [rsp + 0xb0]
mov r14, qword [rsp + 0x120]
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1801a9230
add rsp, 0xf8
pop rbx
pop rbp
ret
xor eax, eax
mov qword [0x1802494e0], rax
jmp 0x1800dc342