Function at 0x180041610
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 - 0xc8]
sub rsp, 0x1a0
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 [0x18006c3c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r12d, r12d
cmp byte [0x18006d0da], r12b
je 0x1800420c8
mov ecx, dword [0x18006cd2c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18006e9d4], ecx
jle 0x1800416c3
lea rcx, [0x18006e9d4]
call fcn.180055ae0
cmp dword [0x18006e9d4], 0xffffffff
jne 0x1800416c3
lea rcx, [0x18006e9e0]
call fcn.180040b00
lea rcx, [0x18006e9d4]
call fcn.180055a74
call fcn.18004f600
mov rsi, rax
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov qword [0x18006d278], rax
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800614dc]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18004f600
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x18006cdb0]
call fcn.180040d70
mov rbx, rax
mov qword [rbp - 0x20], rax
mov rcx, qword [0x18006cdb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov qword [0x18006d278], rax
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x2f0]
lea r9, str.Lcom_craftrise_client_cf_
lea r8, [0x180062414]
mov rdx, rax
call r10
mov rdi, rax
mov qword [0x18006d2a0], rax
call fcn.18004f600
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x2f8]
mov r8, rdi
mov rdx, rax
call r9
mov qword [rbp - 0x28], rax
test rsi, rsi
je 0x1800420c8
lea rcx, [rbp - 0x28]
call fcn.18004f6b0
mov r14, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1800420c8
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r8, qword [rdx + 0xf8]
mov rdx, rax
call r8
mov rsi, rax
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18006152c]
lea r8, str.size
mov rdx, rax
call r10
mov rdi, rax
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, str._I_Ljava_lang_Object_
lea r8, [0x180061548]
mov rdx, rsi
call r10
mov rsi, rax
mov qword [rbp - 0x28], rax
mov r8, rdi
mov rdx, r14
mov rcx, qword [0x18006cdb0]
call fcn.180040da0
mov ecx, eax
mov dword [rsp + 0x38], eax
mov eax, r12d
mov dword [rsp + 0x34], eax
test ecx, ecx
jle 0x1800420c8
movabs r13, 0x7fffffffffffffff
lea r15, [0x18006d320]
xorps xmm10, xmm10
movsd xmm11, qword [0x180062898]
movss xmm8, dword [0x180062850]
movss xmm9, dword [0x180062814]
nop dword [rax]
mov r9d, eax
mov r8, rsi
mov rdx, r14
mov rcx, qword [0x18006cdb0]
call fcn.180040d70
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1800420b4
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r12
mov qword [rbp], 0xf
mov byte [rbp - 0x18], 0
mov qword [rbp + 8], rax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.18004f9f0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.18004f9f0
movups xmm0, xmmword [rax]
movsd xmm2, qword [rax + 0x10]
movsd xmm3, qword [rsp + 0x78]
subsd xmm3, xmm0
movsd xmm4, qword [rbp - 0x80]
unpckhpd xmm0, xmm0
subsd xmm4, xmm0
movsd xmm1, qword [rbp - 0x78]
movsd qword [rsp + 0x50], 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 0x18004195d
sqrtpd xmm6, xmm4
jmp 0x180041968
movaps xmm0, xmm4
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm6, xmm0
mov rcx, qword [0x18006cdb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18006279c]
lea r8, str.ktgv
mov rdx, rax
call r10
mov r8, rax
mov rdx, rdi
mov rcx, qword [0x18006cdb0]
call fcn.180040dd0
movaps xmm7, xmm0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.18004f860
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x48]
call fcn.180041510
nop
comisd xmm6, xmm10
jbe 0x180041cc0
comisd xmm11, xmm6
jbe 0x180041cc0
ucomiss xmm7, xmm8
jp 0x1800419f8
je 0x180041cc0
ucomiss xmm7, xmm9
jp 0x180041a04
je 0x180041cc0
mov ecx, 0x60
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180041cc0
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
call fcn.18004b0e0
mov r14, qword [0x18006d330]
mov rax, r13
sub rax, r14
cmp rax, 0x1d
jb 0x180042136
cmp qword [0x18006d338], 0xf
cmova r15, qword [0x18006d320]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea rsi, [r14 + 0x1d]
mov ebx, 0xf
lea rdi, [rsp + 0x40]
cmp rsi, rbx
jbe 0x180041af7
mov rbx, rsi
or rbx, 0xf
cmp rbx, r13
jbe 0x180041a9a
mov rbx, r13
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x180041ac1
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180041ae0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18004213c
mov rcx, rax
call fcn.180055650
test rax, rax
je 0x18004211a
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x180041af2
test rcx, rcx
je 0x180041aef
call fcn.180055650
mov rdi, rax
jmp 0x180041af2
mov rdi, r12
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
movups xmm0, xmmword [0x180061578]
movups xmmword [rdi], xmm0
movsd xmm0, qword [0x180061588]
movsd qword [rdi + 0x10], xmm0
mov eax, dword [0x180061590]
mov dword [rdi + 0x18], eax
movzx eax, byte [0x180061594]
mov byte [rdi + 0x1c], al
lea rcx, [rdi + 0x1d]
mov r8, r14
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rsi], 0
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x24
jb 0x180041b8f
lea rax, [rcx + 0x24]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x24
lea rdx, [0x180061550]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x24], 0
lea rax, [rsp + 0x40]
jmp 0x180041bae
mov qword [rsp + 0x20], 0x24
lea r9, [0x180061550]
mov edx, 0x24
lea rcx, [rsp + 0x40]
call fcn.18004b9a0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x20]
call fcn.18004f390
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x180041c19
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041c13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180042113
call fcn.18005568c
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x180041c56
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180041c51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004211a
call fcn.18005568c
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18004bd20
lea rdx, [0x180061374]
mov rcx, rax
call fcn.18004b4d0
lea r15, [0x18006d320]
mov rdx, r15
cmp qword [0x18006d338], 0xf
cmova rdx, qword [0x18006d320]
mov r8, qword [0x18006d330]
mov rcx, rax
call fcn.18004bd20
lea rdx, [0x18004b6a0]
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 rbx, qword [rbp - 0x20]
mov rdx, r15
lea rcx, [rbp - 0x48]
mov rsi, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x48]
mov r14, qword [rbp - 0x38]
mov r12, qword [0x18006d330]
mov r15, qword [0x18006d320]
cmp byte [0x18006d0fc], 0
je 0x180041e46
cmp qword [0x18006d338], 0xf
seta r13b
cmova rdx, r15
cmp rsi, 0xf
seta al
mov byte [rsp + 0x30], al
cmova rcx, rdi
cmp r14, r12
jne 0x180041d27
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180041fd9
movzx eax, byte [rsp + 0x30]
comisd xmm6, xmm10
jbe 0x180041fd9
movss xmm0, dword [0x18006c44c]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm6
jbe 0x180041fd9
ucomiss xmm7, xmm8
jp 0x180041d53
je 0x180041fd9
ucomiss xmm7, xmm9
jp 0x180041d5f
je 0x180041fd9
lea rdx, [0x18006d320]
test r13b, r13b
cmovne rdx, r15
lea rcx, [rbp - 0x48]
test al, al
cmovne rcx, rdi
cmp r14, r12
jne 0x180041d8c
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180041fd9
mov rcx, qword [0x18006cdb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18006279c]
lea r8, str.ktgv
mov rdx, rax
call r10
mov r8, rax
mov rdx, qword [rbp + 8]
mov rcx, qword [0x18006cdb0]
call fcn.180040dd0
movaps xmm6, xmm0
lea rcx, [rbp - 0x68]
call fcn.180040b00
mov rdi, qword [rax]
sub rdi, qword [0x18006e9e0]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180041fd1
cmp rdi, 0x5f5e100
jl 0x180041fd1
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, [0x18004b6a0]
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 [rsp + 0x68]
call fcn.1800412a0
lea rcx, [rbp - 0x60]
jmp 0x180041fc2
cmp qword [0x18006d338], 0xf
seta r13b
cmova rdx, r15
cmp rsi, 0xf
seta al
mov byte [rsp + 0x30], al
cmova rcx, rdi
cmp r14, r12
jne 0x180041e7f
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180041fd9
movzx eax, byte [rsp + 0x30]
comisd xmm6, xmm10
jbe 0x180041fd9
movss xmm0, dword [0x18006c44c]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm6
jbe 0x180041fd9
ucomiss xmm7, xmm8
jp 0x180041eab
je 0x180041fd9
ucomiss xmm7, xmm9
jp 0x180041eb7
je 0x180041fd9
lea rdx, [0x18006d320]
test r13b, r13b
cmovne rdx, r15
lea rcx, [rbp - 0x48]
test al, al
cmovne rcx, rdi
cmp r14, r12
jne 0x180041ee4
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180041fd9
mov rcx, qword [0x18006cdb0]
mov rax, qword [rcx]
mov r8, qword [rax + 0x30]
lea rdx, str.com_craftrise_mj
call r8
mov rcx, qword [0x18006cdb0]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
lea r9, [0x18006279c]
lea r8, str.ktgv
mov rdx, rax
call r10
mov r8, rax
mov rdx, qword [rbp + 8]
mov rcx, qword [0x18006cdb0]
call fcn.180040dd0
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 - 0x58]
call fcn.180040b00
mov rcx, qword [rax]
sub rcx, qword [0x18006e9e0]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, edi
cmp rdx, rax
jl 0x180041fd1
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, [0x18004b6a0]
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 [rsp + 0x68]
call fcn.1800412a0
lea rcx, [rbp - 0x50]
call fcn.180040b00
mov rcx, qword [rax]
mov qword [0x18006e9e0], rcx
mov rsi, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x48]
cmp rsi, 0xf
jbe 0x180042010
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180042008
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180042121
mov rcx, rdi
call fcn.18005568c
xor r12d, r12d
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], r12b
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x18004205f
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180042059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180042128
call fcn.18005568c
nop
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x18004209a
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180042095
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004212f
call fcn.18005568c
movabs r13, 0x7fffffffffffffff
lea r15, [0x18006d320]
mov rsi, qword [rbp - 0x28]
mov r14, qword [rsp + 0x70]
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp eax, dword [rsp + 0x38]
jl 0x180041890
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.180055630
lea r11, [rsp + 0x1a0]
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.180002ea0
int3
call fcn.180002e00
int3