Function at 0x140087050
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x200
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r15, r9
mov rbx, rdx
mov r14, qword [rbp + 0x178]
mov rax, qword [rbp + 0x180]
mov qword [rsp + 0x78], rax
xor edi, edi
test edx, edx
jne 0x14008714a
mov rax, rdx
shr rax, 0x20
test eax, eax
jne 0x14008714a
mov rdx, qword [r9 + 0x18]
cmp rdx, 0xf
jbe 0x1400870f9
inc rdx
mov rcx, qword [r9]
cmp rdx, 0x1000
jb 0x1400870f4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140087bb6
mov rcx, r8
call fcn.140134770
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], dil
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140087142
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14008713d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140087bb6
mov rcx, r8
call fcn.140134770
xorps xmm0, xmm0
jmp 0x140087b73
mov eax, dword [rbp + 0x14c]
add eax, 0x5a
mov dword [rsp + 0x50], eax
lea r13d, [rax + 6]
lea r12d, [rdx + 0x37]
mov edx, dword [0x140163d08]
mov eax, dword [0x140163d10]
cmp edx, eax
jl 0x1400871b9
cmp edx, dword [0x140163d18]
jg 0x1400871b9
mov ecx, dword [0x140163d0c]
mov r8d, dword [0x140163d14]
cmp ecx, r8d
jl 0x1400871b9
cmp ecx, dword [0x140163d1c]
jg 0x1400871b9
sub edx, eax
cmp edx, r12d
jl 0x1400871b9
lea eax, [r12 + 0xe6]
cmp edx, eax
jg 0x1400871b9
sub ecx, r8d
cmp ecx, r13d
jl 0x1400871b9
lea eax, [r13 + 5]
cmp ecx, eax
mov esi, 1
jle 0x1400871bb
mov esi, edi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
movss xmm7, dword [rbp + 0x168]
movss xmm6, dword [rbp + 0x160]
cmp rax, qword [0x140163ce8]
jne 0x140087309
test esi, esi
je 0x140087260
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x14008721c
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov cl, 0x25
call qword [sym.imp.USER32.dll_keybd_event]
movss xmm0, dword [0x140163b58]
cvtps2pd xmm0, xmm0
subsd xmm0, qword [0x14014cb80]
jmp 0x140087254
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140087260
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov cl, 0x27
call qword [sym.imp.USER32.dll_keybd_event]
movss xmm0, dword [0x140163b58]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x14014cb80]
cvtpd2ps xmm0, xmm0
movss dword [0x140163b58], xmm0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140087288
test esi, esi
je 0x140087288
cmp dword [0x140164250], edi
jne 0x140087290
mov dword [0x140164250], 1
jmp 0x140087290
cmp dword [0x140164250], edi
je 0x1400872ed
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400872ed
mov eax, dword [0x140163d08]
sub eax, dword [0x140163d10]
sub eax, ebx
sub eax, 0x36
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movaps xmm0, xmm7
subss xmm0, xmm6
mulss xmm1, xmm0
divss xmm1, dword [0x14014d418]
addss xmm1, xmm6
movss dword [0x140163b58], xmm1
mov dword [0x140163d24], 1
mov dword [0x140163d28], 1
jmp 0x140087309
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140087309
mov dword [0x140164250], edi
mov dword [0x140163d28], edi
movss xmm2, dword [0x140163b58]
movaps xmm1, xmm2
subss xmm1, xmm6
movaps xmm0, xmm7
subss xmm0, xmm6
divss xmm1, xmm0
mulss xmm1, dword [0x14014d418]
cvttss2si ecx, xmm1
mov eax, 0xe6
mov dword [rsp + 0x54], eax
cmp ecx, eax
jge 0x140087347
mov eax, ecx
test ecx, ecx
cmovle eax, edi
mov dword [rsp + 0x54], eax
comiss xmm6, xmm2
jb 0x140087356
movss dword [0x140163b58], xmm6
jmp 0x140087363
comiss xmm2, xmm7
jb 0x140087363
movss dword [0x140163b58], xmm7
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x14014cac0]
mov qword [rbp - 0x70], rax
lea rax, [0x14014c798]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], rdi
mov dword [rbp + 0x18], edi
lea rdx, [0x1400090c0]
lea rcx, [rbp - 0x60]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdi, rax
mov edx, 4
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setprecision_long_long___int64__]
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, qword [rax + 8]
call qword [rax]
movss xmm1, dword [0x140163b58]
mov rcx, rdi
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, [0x140163b58]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___float____ptr64____ptr64]
xor edi, edi
mov qword [rsp + 0x58], rdi
mov edx, dword [rsp + 0x50]
add edx, 5
lea ecx, [rbx + 0x36]
mov dword [rbp + 0xbc], edi
mov dword [rbp + 0xcc], edi
mov dword [rbp - 0x80], edi
mov dword [rbp - 0x7c], 1
mov eax, edi
shr rax, 0x20
movzx r8d, al
shl r8d, 8
mov dword [rbp + 0xb0], ecx
mov dword [rbp + 0xb4], edx
lea eax, [rcx + 0xe8]
mov dword [rbp + 0xc0], eax
lea eax, [rdx + 7]
mov dword [rbp + 0xc4], eax
movzx eax, r8b
shl ax, 8
mov word [rbp + 0xb8], ax
mov word [rbp + 0xba], r8w
mov word [rbp + 0xc8], ax
mov word [rbp + 0xca], r8w
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x80]
mov r8d, 2
lea rdx, [rbp + 0xb0]
mov rcx, qword [0x140163d00]
call qword [sym.imp.MSIMG32.dll_GradientFill]
test esi, esi
jne 0x1400875e0
cmp dword [0x140164250], edi
jne 0x1400875e0
mov eax, 0x66666667
imul dword [0x140163cd4]
mov r10d, edx
sar r10d, 1
mov eax, r10d
shr eax, 0x1f
add r10d, eax
mov dword [rbp + 0xb0], r10d
mov eax, 0x66666667
imul dword [0x140163cd8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0xb4], edx
mov dword [rsp + 0x58], reloc.WS2_32.dll_sendto
mov dword [rsp + 0x5c], reloc.WS2_32.dll_sendto
mov dword [rbp + 0x9c], 0x1400
mov word [rbp + 0xae], di
mov dword [rbp - 0x80], edi
mov rax, qword [rsp + 0x58]
shr rax, 0x20
movzx r9d, al
shl r9d, 8
or r9d, 0x140014
mov eax, 0x66666667
imul dword [0x140163cdc]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r8d, dl
mov rax, qword [rbp + 0xb0]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
mov eax, r8d
shl eax, 0x10
or ecx, eax
movzx eax, r10b
or ecx, eax
lea eax, [r12 + 0xe6]
mov dword [rbp + 0xa0], eax
movzx eax, r9b
mov edi, 0xff00
and r9w, di
mov word [rbp + 0x9a], r9w
shl r8w, 8
mov word [rbp + 0xac], r8w
jmp 0x1400876a8
mov eax, dword [0x140163cd4]
cdq
and edx, 3
lea r9d, [rdx + rax]
sar r9d, 2
mov dword [rsp + 0x58], r9d
mov eax, dword [0x140163cd8]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x5c], eax
mov dword [rbp + 0xb0], reloc.WLDAP32.dll_Ordinal_30
mov dword [rbp + 0xb4], reloc.WLDAP32.dll_Ordinal_30
mov dword [rbp + 0x9c], 0x1e00
mov word [rbp + 0xae], di
mov dword [rbp - 0x80], edi
mov rax, qword [rbp + 0xb0]
shr rax, 0x20
movzx r8d, al
shl r8d, 8
or r8d, 0x1e001e
mov eax, dword [0x140163cdc]
cdq
and edx, 3
add eax, edx
sar eax, 2
movzx edx, al
mov rax, qword [rsp + 0x58]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
mov eax, edx
shl eax, 0x10
or ecx, eax
movzx eax, r9b
or ecx, eax
lea eax, [r12 + 0xe6]
mov dword [rbp + 0xa0], eax
movzx eax, r8b
mov edi, 0xff00
and r8w, di
mov word [rbp + 0x9a], r8w
shl dx, 8
mov word [rbp + 0xac], dx
mov dword [rbp - 0x7c], 1
shl ax, 8
mov word [rbp + 0x98], ax
movzx eax, cl
and cx, di
mov dword [rsp + 0x28], 1
lea esi, [r13 + 5]
shl ax, 8
mov word [rbp + 0xaa], cx
mov dword [rsp + 0x20], 1
mov dword [rbp + 0x90], r12d
mov dword [rbp + 0x94], r13d
mov dword [rbp + 0xa4], esi
mov word [rbp + 0xa8], ax
lea r9, [rbp - 0x80]
mov r8d, 2
lea rdx, [rbp + 0x90]
mov rcx, qword [0x140163d00]
call qword [sym.imp.MSIMG32.dll_GradientFill]
mov eax, 0x66666667
imul dword [0x140163cd4]
mov r8d, edx
sar r8d, 1
mov eax, r8d
shr eax, 0x1f
add r8d, eax
mov dword [rbp + 0xb0], r8d
mov eax, 0x66666667
imul dword [0x140163cd8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0xb4], edx
xor eax, eax
mov word [rbp + 0x9e], ax
mov word [rbp + 0xae], ax
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], 1
mov rdx, qword [0x140163cd4]
mov rcx, rdx
shr rcx, 0x20
movzx r10d, cl
shl r10d, 8
movzx ecx, byte [0x140163cdc]
shl ecx, 0x10
or r10d, ecx
movzx ecx, dl
or r10d, ecx
mov eax, 0x66666667
imul dword [0x140163cdc]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx r9d, dl
mov rax, qword [rbp + 0xb0]
shr rax, 0x20
movzx ecx, al
shl ecx, 8
mov eax, r9d
shl eax, 0x10
or ecx, eax
movzx eax, r8b
or ecx, eax
mov dword [rbp + 0x90], r12d
mov dword [rbp + 0x94], r13d
mov eax, dword [rsp + 0x54]
add eax, r12d
mov dword [rbp + 0xa0], eax
mov dword [rbp + 0xa4], esi
movzx eax, r10b
shl ax, 8
mov word [rbp + 0x98], ax
movzx eax, r10w
and ax, di
mov word [rbp + 0x9a], ax
shr r10d, 0x10
shl r10w, 8
mov word [rbp + 0x9c], r10w
movzx eax, cl
shl ax, 8
mov word [rbp + 0xa8], ax
and cx, di
mov word [rbp + 0xaa], cx
shl r9w, 8
mov word [rbp + 0xac], r9w
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x80]
mov r8d, 2
lea rdx, [rbp + 0x90]
mov rcx, qword [0x140163d00]
call qword [sym.imp.MSIMG32.dll_GradientFill]
movzx esi, word [0x140163cd0]
lea rdx, [0x140163cb0]
lea rcx, [rbp + 0x90]
call fcn.140029420
mov rdi, rax
movdqa xmm6, xmmword [0x14014fe40]
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140029420
movdqa xmmword [rbp + 0xb0], xmm6
mov r13d, dword [rsp + 0x50]
lea r8d, [r13 - 9]
lea edx, [rbx + 0x38]
mov word [rsp + 0x38], 0x190
mov word [rsp + 0x30], si
mov qword [rsp + 0x28], rdi
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x20], rcx
mov r9, rax
call fcn.14000ef50
movzx esi, word [0x140163cd0]
lea rdx, [0x140163cb0]
lea rcx, [rbp + 0x90]
call fcn.140029420
mov rdi, rax
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140029420
mov rcx, qword [rsp + 0x78]
movaps xmm0, xmmword [rcx]
movdqa xmmword [rbp + 0xb0], xmm0
lea r8d, [r13 - 0xa]
mov word [rsp + 0x38], 0x190
mov word [rsp + 0x30], si
mov qword [rsp + 0x28], rdi
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov edx, r12d
call fcn.14000ef50
movdqa xmm6, xmmword [0x14014fed0]
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
movdqa xmm1, xmmword [0x14014fd50]
movdqu xmmword [rbp + 0xa0], xmm1
mov byte [rbp + 0x90], 0
xor eax, eax
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rax
mov ecx, dword [rbp + 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400879a5
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x1400879a5
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
jmp 0x1400879da
test cl, 4
jne 0x1400879cc
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400879cc
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400879da
mov r8, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xb0]
test rdx, rdx
je 0x1400879eb
lea rcx, [rbp + 0x90]
call fcn.140054f70
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1400879f8
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rcx, [rbp + 0x90]
call fcn.1400550d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
movaps xmmword [rbp + 0xb0], xmm6
lea r8d, [r13 + 2]
lea edx, [rbx + 0x127]
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
call fcn.14000f330
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0xf
jbe 0x140087aa6
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140087aa1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140087aa1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140134770
movss xmm6, dword [0x140163b58]
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x58]
call fcn.140052d60
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140087b2b
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140087b26
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140087bb6
mov rcx, r8
call fcn.140134770
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], dil
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x140087b70
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140087b6b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140087bb6
mov rcx, r8
call fcn.140134770
movaps xmm0, xmm6
mov byte [r14], dil
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], rdi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140134750
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3