Function at 0x18003ffa0
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 - 0xb8]
sub rsp, 0x190
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
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rbp + 0x28], rax
cmp byte [0x18006c10b], 0
je 0x180040af4
mov ecx, dword [0x18006bd58]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x18006d9c4], eax
jle 0x180040084
lea rcx, [0x18006d9c4]
call fcn.18005408c
cmp dword [0x18006d9c4], 0xffffffff
jne 0x180040084
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x180040056
imul rax, rax, 0x64
jmp 0x180040071
cqo
idiv rbx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, r8
mov qword [0x18006d9d0], rax
lea rcx, [0x18006d9c4]
call fcn.18005402c
call fcn.18004d8f0
mov rsi, rax
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov qword [0x18006c2a8], rax
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800605ec]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18004d8f0
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x18006bdd8]
call fcn.18003f890
mov rdi, rax
mov qword [rbp], rax
mov rcx, qword [0x18006bdd8]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov qword [0x18006c2a8], rax
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x2f0]
lea r9, str.Lcom_craftrise_client_cf_
lea r8, [0x180061534]
mov rdx, rax
call r10
mov rbx, rax
mov qword [0x18006c2d0], rax
call fcn.18004d8f0
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x2f8]
mov r8, rbx
mov rdx, rax
call r9
mov qword [rbp - 0x30], rax
test rsi, rsi
je 0x180040af4
lea rcx, [rbp - 0x30]
call fcn.18004d9b0
mov r14, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x180040af4
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0xf8]
mov rdx, rax
call r8
mov rsi, rax
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18006063c]
lea r8, str.size
mov rdx, rax
call r10
mov rbx, rax
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, str._I_Ljava_lang_Object_
lea r8, [0x180060658]
mov rdx, rsi
call r10
mov rsi, rax
mov qword [rsp + 0x70], rax
mov r8, rbx
mov rdx, r14
mov rcx, qword [0x18006bdd8]
call fcn.18003f8c0
mov ecx, eax
mov dword [rsp + 0x60], eax
xor r12d, r12d
mov eax, r12d
mov dword [rsp + 0x34], eax
test ecx, ecx
jle 0x180040af4
lea r15, [0x18006b448]
movabs r13, 0x7fffffffffffffff
xorps xmm10, xmm10
movsd xmm11, qword [0x1800619e0]
movss xmm8, dword [0x180061994]
movss xmm9, dword [0x180061940]
nop
mov r9d, eax
mov r8, rsi
mov rdx, r14
mov rcx, qword [0x18006bdd8]
call fcn.18003f890
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
je 0x180040ae0
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov qword [rbp - 8], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.18004dd30
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x28]
call fcn.18004dd30
movups xmm0, xmmword [rax]
movsd xmm2, qword [rax + 0x10]
movsd xmm4, qword [rsp + 0x78]
subsd xmm4, xmm0
movsd xmm3, qword [rbp - 0x80]
unpckhpd xmm0, xmm0
subsd xmm3, xmm0
movsd xmm1, qword [rbp - 0x78]
movsd qword [rsp + 0x48], 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 0x180040324
sqrtpd xmm6, xmm4
jmp 0x18004032f
movaps xmm0, xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm6, xmm0
mov rcx, qword [0x18006bdd8]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x1800618c0]
lea r8, str.ktgv
mov rdx, rax
call r10
mov r8, rax
mov rdx, rbx
mov rcx, qword [0x18006bdd8]
call fcn.18003f8f0
movaps xmm7, xmm0
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x28]
call fcn.18004db60
nop
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x50]
call fcn.18003fea0
nop
comisd xmm6, xmm10
jbe 0x180040686
comisd xmm11, xmm6
jbe 0x180040686
ucomiss xmm7, xmm8
jp 0x1800403bf
je 0x180040686
ucomiss xmm7, xmm9
jp 0x1800403cb
je 0x180040686
mov ecx, 0x60
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x180040686
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, r15
call fcn.180004b30
mov r14, qword [0x18006b458]
mov rax, r13
sub rax, r14
cmp rax, 0x1d
jb 0x180040b62
cmp qword [0x18006b460], 0x10
cmovae r15, qword [0x18006b448]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
lea rsi, [r14 + 0x1d]
mov edi, 0xf
lea rbx, [rsp + 0x38]
cmp rsi, rdi
jbe 0x1800404c0
mov rdi, rsi
or rdi, 0xf
cmp rdi, r13
jbe 0x180040455
mov rdi, r13
jmp 0x180040462
cmp rdi, 0x16
mov eax, 0x16
cmovb rdi, rax
mov rcx, rdi
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x1800404a9
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180040b68
mov rcx, rax
call fcn.180053990
test rax, rax
je 0x180040b46
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1800404bb
test rcx, rcx
je 0x1800404b8
call fcn.180053990
mov rbx, rax
jmp 0x1800404bb
mov rbx, r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
movups xmm0, xmmword [0x180060688]
movups xmmword [rbx], xmm0
movsd xmm1, qword [0x180060698]
movsd qword [rbx + 0x10], xmm1
mov eax, dword [0x1800606a0]
mov dword [rbx + 0x18], eax
movzx eax, byte [0x1800606a4]
mov byte [rbx + 0x1c], al
lea rcx, [rbx + 0x1d]
mov r8, r14
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0x24
jb 0x180040558
lea rax, [rcx + 0x24]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x38]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x38]
add rbx, rcx
mov r8d, 0x24
lea rdx, [0x180060660]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x24], 0
lea rax, [rsp + 0x38]
jmp 0x180040577
mov qword [rsp + 0x20], 0x24
lea r9, [0x180060660]
mov edx, 0x24
lea rcx, [rsp + 0x38]
call fcn.180049b60
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rbp - 0x70]
lea rcx, [rbp]
call fcn.18004d680
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1800405df
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800405d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040b3f
call fcn.1800539cc
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004061c
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040617
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040b46
call fcn.1800539cc
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180049ee0
lea rdx, [0x18006048c]
mov rcx, rax
call fcn.180004cc0
lea r15, [0x18006b448]
mov rdx, r15
cmp qword [0x18006b460], 0x10
cmovae rdx, qword [0x18006b448]
mov r8, qword [0x18006b458]
mov rcx, rax
call fcn.180049ee0
lea rdx, [0x180004e90]
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 rdi, qword [rbp]
mov rdx, r15
lea rcx, [rbp - 0x50]
mov rsi, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x50]
mov r14, qword [rbp - 0x40]
mov r12, qword [0x18006b458]
mov r15, qword [0x18006b448]
cmp byte [0x18006c12d], 0
je 0x180040808
cmp qword [0x18006b460], 0x10
setae r13b
cmovae rdx, r15
cmp rsi, 0x10
setae al
mov byte [rsp + 0x30], al
cmovae rcx, rbx
cmp r14, r12
jne 0x1800406ed
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409f4
movzx eax, byte [rsp + 0x30]
comisd xmm6, xmm10
jbe 0x1800409f4
movss xmm0, dword [0x18006b3fc]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm6
jbe 0x1800409f4
ucomiss xmm7, xmm8
jp 0x180040719
je 0x1800409f4
ucomiss xmm7, xmm9
jp 0x180040725
je 0x1800409f4
lea rdx, [0x18006b448]
test r13b, r13b
cmovne rdx, r15
lea rcx, [rbp - 0x50]
test al, al
cmovne rcx, rbx
cmp r14, r12
jne 0x180040752
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409f4
mov rcx, qword [0x18006bdd8]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x1800618c0]
lea r8, str.ktgv
mov rdx, rax
call r10
mov r8, rax
mov rdx, qword [rbp - 8]
mov rcx, qword [0x18006bdd8]
call fcn.18003f8f0
movaps xmm6, xmm0
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1800407c3
imul rbx, rax, 0x64
jmp 0x1800407df
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
sub rbx, qword [0x18006d9d0]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800409ec
cmp rbx, 0x5f5e100
jmp 0x180040981
cmp qword [0x18006b460], 0x10
setae r13b
cmovae rdx, r15
cmp rsi, 0x10
setae al
mov byte [rsp + 0x30], al
cmovae rcx, rbx
cmp r14, r12
jne 0x180040841
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409f4
movzx eax, byte [rsp + 0x30]
comisd xmm6, xmm10
jbe 0x1800409f4
movss xmm0, dword [0x18006b3fc]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm6
jbe 0x1800409f4
ucomiss xmm7, xmm8
jp 0x18004086d
je 0x1800409f4
ucomiss xmm7, xmm9
jp 0x180040879
je 0x1800409f4
lea rdx, [0x18006b448]
test r13b, r13b
cmovne rdx, r15
lea rcx, [rbp - 0x50]
test al, al
cmovne rcx, rbx
cmp r14, r12
jne 0x1800408a6
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800409f4
mov rcx, qword [0x18006bdd8]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x18006bdd8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x1800618c0]
lea r8, str.ktgv
mov rdx, rax
call r10
mov r8, rax
mov rdx, qword [rbp - 8]
mov rcx, qword [0x18006bdd8]
call fcn.18003f8f0
movaps xmm6, xmm0
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, eax
mov eax, 0x51eb851f
imul esi
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x190
sub esi, ecx
add esi, 0x191
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x18004093e
imul rcx, rax, 0x64
jmp 0x180040959
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rcx, rax
sub rcx, qword [0x18006d9d0]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, esi
cmp rdx, rax
jl 0x1800409ec
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, [0x180004e90]
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, qword [rbp - 0x30]
call fcn.18003fc20
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1800409ca
imul rax, rax, 0x64
jmp 0x1800409e5
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov qword [0x18006d9d0], rax
mov rsi, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x50]
cmp rsi, 0x10
jb 0x180040a2b
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180040a23
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040b4d
mov rcx, rbx
call fcn.1800539cc
xor r12d, r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], r12b
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x180040a7a
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040a74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040b54
call fcn.1800539cc
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x180040ab5
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ab0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040b5b
call fcn.1800539cc
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
lea r15, [0x18006b448]
movabs r13, 0x7fffffffffffffff
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp eax, dword [rsp + 0x60]
jl 0x180040250
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.180053970
lea r11, [rsp + 0x190]
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]
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]
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]
nop
call fcn.180002c70
int3
call fcn.180002bd0
int3