Function at 0x180040310
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, [rsp - 0x60]
sub rsp, 0x160
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
mov rax, qword [0x1800663c0]
xor rax, rsp
mov qword [rbp], rax
xor r12d, r12d
cmp byte [0x1800670cd], r12b
je 0x180040a9b
mov ecx, dword [0x180066e28]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18006865c], ecx
jle 0x1800403b9
lea rcx, [0x18006865c]
call fcn.18004fe78
cmp dword [0x18006865c], 0xffffffff
jne 0x1800403b9
lea rcx, [0x180068668]
call fcn.180003790
lea rcx, [0x18006865c]
call fcn.18004fe0c
call fcn.1800496f0
mov rsi, rax
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov qword [0x180067370], rax
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x18005baec]
mov rdx, rax
call r10
mov rbx, rax
call fcn.1800496f0
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x180066eb0]
call fcn.18003fb90
mov rbx, rax
mov rcx, qword [0x180066eb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov qword [0x180067370], rax
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x2f0]
lea r9, str.Lcom_craftrise_client_cf_
lea r8, [0x18005c4a4]
mov rdx, rax
call r10
mov rdi, rax
mov qword [0x180067398], rax
call fcn.1800496f0
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x2f8]
mov r8, rdi
mov rdx, rax
call r9
mov qword [rbp - 0x70], rax
test rsi, rsi
je 0x180040a9b
lea rcx, [rbp - 0x70]
call fcn.1800497a0
mov r14, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x180040a9b
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0xf8]
mov rdx, rax
call r8
mov rsi, rax
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18005bb3c]
lea r8, str.size
mov rdx, rax
call r10
mov rdi, rax
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, str._I_Ljava_lang_Object_
lea r8, [0x18005bb58]
mov rdx, rsi
call r10
mov rsi, rax
mov qword [rbp - 0x70], rax
mov r8, rdi
mov rdx, r14
mov rcx, qword [0x180066eb0]
call fcn.18003fbc0
mov ecx, eax
mov dword [rsp + 0x24], eax
mov eax, r12d
mov dword [rsp + 0x20], eax
test ecx, ecx
jle 0x180040a9b
xorps xmm10, xmm10
movss xmm8, dword [0x18005c974]
movss xmm9, dword [0x18005c924]
nop dword [rax]
nop word [rax + rax]
mov r9d, eax
mov r8, rsi
mov rdx, r14
mov rcx, qword [0x180066eb0]
call fcn.18003fb90
mov r15, rax
test rax, rax
je 0x180040a87
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], send
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x28], rax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], send
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.180049ae0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.180049ae0
movups xmm0, xmmword [rax]
movsd xmm2, qword [rax + 0x10]
movsd xmm3, qword [rsp + 0x58]
subsd xmm3, xmm0
movsd xmm4, qword [rsp + 0x60]
unpckhpd xmm0, xmm0
subsd xmm4, xmm0
movsd xmm1, qword [rsp + 0x68]
movsd qword [rsp + 0x40], xmm2
subsd xmm1, xmm2
mulsd xmm4, xmm4
mulsd xmm3, xmm3
addsd xmm4, xmm3
mulsd xmm1, xmm1
addsd xmm4, xmm1
xorps xmm0, xmm0
ucomisd xmm0, xmm4
ja 0x18004063a
sqrtpd xmm6, xmm4
jmp 0x180040645
movaps xmm0, xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm6, xmm0
mov rcx, qword [0x180066eb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18005c8b4]
lea r8, [0x18005c8b0]
mov rdx, rax
call r10
mov r8, rax
mov rdx, r15
mov rcx, qword [0x180066eb0]
call fcn.18003fbf0
movaps xmm7, xmm0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.180049950
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x68]
call fcn.180040210
nop
lea rdx, [0x180067490]
mov r12, qword [0x180067490]
mov r13, qword [0x1800674a8]
lea rcx, [rbp - 0x68]
mov rdi, qword [rbp - 0x68]
mov rsi, qword [rbp - 0x50]
mov r14, qword [rbp - 0x58]
mov rax, qword [0x1800674a0]
cmp byte [0x1800671dd], 0
je 0x18004083a
cmp r13, 0xf
cmova rdx, r12
cmp rsi, 0xf
cmova rcx, rdi
cmp r14, rax
jne 0x180040718
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409c1
mov rax, qword [0x1800674a0]
comisd xmm6, xmm10
jbe 0x1800409c1
movss xmm0, dword [0x1800664a0]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm6
jbe 0x1800409c1
ucomiss xmm7, xmm8
jp 0x180040744
je 0x1800409c1
ucomiss xmm7, xmm9
jp 0x180040750
je 0x1800409c1
lea rdx, [0x180067490]
cmp r13, 0xf
cmova rdx, r12
lea rcx, [rbp - 0x68]
cmp rsi, 0xf
cmova rcx, rdi
cmp r14, rax
jne 0x180040780
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409c1
mov rcx, qword [0x180066eb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18005c8b4]
lea r8, [0x18005c8b0]
mov rdx, rax
call r10
mov r8, rax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [0x180066eb0]
call fcn.18003fbf0
movaps xmm6, xmm0
lea rcx, [rsp + 0x70]
call fcn.180003790
mov rdi, qword [rax]
sub rdi, qword [0x180068668]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800409b9
cmp rdi, 0x5f5e100
jl 0x1800409b9
movaps xmm1, xmm6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___float____ptr64]
lea rdx, [0x180007330]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r15
call fcn.18003ffa0
lea rcx, [rsp + 0x78]
jmp 0x1800409aa
cmp r13, 0xf
cmova rdx, r12
cmp rsi, 0xf
cmova rcx, rdi
cmp r14, rax
jne 0x180040866
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409c1
mov rax, qword [0x1800674a0]
comisd xmm6, xmm10
jbe 0x1800409c1
movss xmm0, dword [0x1800664a0]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm6
jbe 0x1800409c1
ucomiss xmm7, xmm8
jp 0x180040892
je 0x1800409c1
ucomiss xmm7, xmm9
jp 0x18004089e
je 0x1800409c1
lea rdx, [0x180067490]
cmp r13, 0xf
cmova rdx, r12
lea rcx, [rbp - 0x68]
cmp rsi, 0xf
cmova rcx, rdi
cmp r14, rax
jne 0x1800408ce
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409c1
mov rcx, qword [0x180066eb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x180066eb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18005c8b4]
lea r8, [0x18005c8b0]
mov rdx, rax
call r10
mov r8, rax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [0x180066eb0]
call fcn.18003fbf0
movaps xmm6, xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edi, eax
mov eax, 0x51eb851f
imul edi
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x190
sub edi, ecx
add edi, 0x191
lea rcx, [rbp - 0x80]
call fcn.180003790
mov rcx, qword [rax]
sub rcx, qword [0x180068668]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, edi
cmp rdx, rax
jl 0x1800409b9
movaps xmm1, xmm6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___float____ptr64]
lea rdx, [0x180007330]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r15
call fcn.18003ffa0
lea rcx, [rbp - 0x78]
call fcn.180003790
mov rcx, qword [rax]
mov qword [0x180068668], rcx
mov rsi, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x68]
cmp rsi, 0xf
jbe 0x1800409f8
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800409f0
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040ae1
mov rcx, rdi
call fcn.18004f77c
xor r12d, r12d
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], send
mov byte [rbp - 0x68], r12b
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x180040a47
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040a41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040ae8
call fcn.18004f77c
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x180040a7e
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040a79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040aef
call fcn.18004f77c
mov rsi, qword [rbp - 0x70]
mov r14, qword [rsp + 0x28]
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp eax, dword [rsp + 0x24]
jl 0x180040570
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.18004f720
lea r11, [rsp + 0x160]
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]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3