Function at 0x140056310
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rdi
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x100
movaps xmmword [r11 - 0x28], xmm6
movaps xmmword [r11 - 0x38], xmm7
movaps xmmword [r11 - 0x48], xmm8
movaps xmmword [r11 - 0x58], xmm9
mov rax, qword [0x1401860c0]
xor rax, rsp
mov qword [rbp - 9], rax
movss xmm9, dword [0x14016ad78]
lea rax, [0x14016942c]
mov qword [rbp - 0x29], rax
xorps xmm0, xmm0
lea rax, str.Private
mov qword [rbp - 0x21], 2
movaps xmm6, xmmword [rbp - 0x29]
xor r15d, r15d
mov qword [rbp - 0x79], rax
lea rax, str.Sylas
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x71], 7
movaps xmm7, xmmword [rbp - 0x79]
mov qword [rbp - 0x11], 5
movaps xmm8, xmmword [rbp - 0x19]
mov qword [r11 + 8], rsi
movups xmmword [0x1401e0518], xmm0
mov qword [r11 + 0x10], r14
movups xmmword [0x1401e0528], xmm0
movups xmmword [0x1401e0538], xmm0
nop word [rax + rax]
mov rdx, qword [0x1401e0548]
lea rcx, [0x1401e0518]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140056400
lea rcx, [0x1401e0518]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1401e0518]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x1401e0500]
cmp rax, rcx
jne 0x14005644f
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x1401e0548]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1401e0500]
xorps xmm0, xmm0
mov qword [rbp - 0x39], r15
lea rdx, [rbp - 0x29]
movups xmmword [rbp - 0x29], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1401e0500]
lea rdx, [rbp - 0x39]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp - 0x39]
lea rcx, [rbp - 0x19]
mov rbx, qword [0x1401e04c0]
mov dword [rbp - 0x29], eax
mov eax, dword [rbp - 0x35]
mov dword [rbp - 0x25], eax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp - 0x19]
mov ecx, 1
sub eax, dword [rbp - 0x39]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe40], xmm0
mov eax, dword [rbp - 0x15]
sub eax, dword [rbp - 0x35]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe44], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400564ef
mov byte [rbx + 0xe48], 1
mov eax, dword [rbx + 0xe44]
mov dword [rbx + 0x3810], eax
mov byte [rbx + 0x3860], 1
jmp 0x1400564f6
mov byte [rbx + 0xe48], r15b
mov eax, dword [0x1401e0cd8]
mov ecx, dword [rbp - 0x1d]
mov edx, dword [rbp - 0x21]
cmp dword [rbp - 0x29], eax
jne 0x140056522
cmp edx, dword [0x1401e0ce0]
jne 0x140056522
mov eax, dword [0x1401e0cdc]
cmp dword [rbp - 0x25], eax
jne 0x140056522
cmp ecx, dword [0x1401e0ce4]
je 0x140056583
movups xmm0, xmmword [rbp - 0x29]
mov r9d, dword [rbp - 0x35]
mov r8d, dword [rbp - 0x39]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [0x1401e0ae0], edx
mov dword [0x1401e0a64], ecx
mov dword [0x1401e05a0], edx
xor edx, edx
mov dword [0x1401e05a4], ecx
mov rcx, qword [0x1401e0548]
movups xmmword [0x1401e0cd8], xmm0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1401e0598]
lea rdx, [0x1401e05a0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x1401e04c0]
test rax, rax
je 0x140056598
mov rcx, qword [rax + 0x98]
jmp 0x14005659b
mov rcx, r15
cmp qword [rcx + 0x18], r15
jne 0x1400565bc
test rax, rax
je 0x1400565bc
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x1400565bc
cmp qword [rcx], r15
je 0x1400565bc
call fcn.140043d30
call fcn.140044a80
call fcn.140022100
mov rcx, qword [0x1401e0cb0]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x69]
movdqa xmmword [rbp - 0x79], xmm6
lea rdx, [rbp - 0x59]
movdqa xmmword [rbp - 0x69], xmm7
movdqa xmmword [rbp - 0x59], xmm8
call fcn.140005010
call fcn.140050a30
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14005664a
cmp byte [0x1401e0d7a], r15b
je 0x14005664a
mov eax, dword [0x1401e0b6c]
test eax, eax
jne 0x140056626
mov ecx, WSAGetLastError
call fcn.140050270
mov eax, dword [0x1401e0b6c]
cmp eax, 1
jne 0x14005663b
mov ecx, 0x43
call fcn.140050270
mov eax, dword [0x1401e0b6c]
cmp eax, 2
jne 0x14005664a
mov ecx, Ordinal_41
call fcn.140050270
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14005678a
cmp byte [0x1401e0d75], r15b
je 0x14005678a
mov r8, qword [0x1401e0580]
lea rdx, [rbp - 0x59]
mov r14, qword [0x1401e0568]
call fcn.14004afa0
mov rbx, rax
mov rsi, rbx
mov rax, qword [rax + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140056696
mov rsi, qword [rbx]
cmp rax, 7
jb 0x140056741
lea rdi, [rax + rsi]
mov edx, 0x53
lea r8, [rdi - 6]
mov rcx, rsi
sub r8, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140056741
cmp dword [rax], 0x746f6853
jne 0x1400566d7
cmp word [rax + 4], 0x7567
jne 0x1400566d7
cmp byte [rax + 6], 0x6e
je 0x1400566f5
inc rax
lea r8, [rdi - 6]
sub r8, rax
mov rcx, rax
mov edx, 0x53
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x1400566c1
jmp 0x140056741
sub rax, rsi
cmp rax, 0xffffffffffffffff
je 0x140056741
lea rcx, [r14 + 0x1898]
call fcn.14005be10
test rax, rax
je 0x140056741
mov r9d, 2
mov qword [rsp + 0x20], r15
mov ecx, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_mouse_event]
mov r9d, 4
mov qword [rsp + 0x20], r15
mov ecx, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_mouse_event]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14005677b
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140056776
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140056955
mov rcx, r8
call fcn.14012f6a4
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r15b
call fcn.14004e010
call fcn.140023c50
mov rcx, qword [0x1401e0598]
xor r8d, r8d
mov edx, 7
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1401e0598]
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_27
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1401e0598]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1401e0598]
mov r9d, 1
mov dword [rsp + 0x30], r15d
xor r8d, r8d
movss dword [rsp + 0x28], xmm9
xor edx, edx
mov dword [rsp + 0x20], r15d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x1401e0598]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140056855
call fcn.140024040
mov rax, qword [0x1401e04c0]
mov rcx, qword [rax + 0x4b40]
mov rax, qword [rcx]
mov rcx, r15
add rax, 0x48
cmp byte [rax], r15b
cmovne rcx, rax
call fcn.140043770
mov rcx, qword [0x1401e0598]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1401e0598]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140056933
mov rcx, qword [0x1401e0598]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x140056933
mov rbx, qword [0x1401e04c0]
test rbx, rbx
je 0x1400568fa
mov rbx, qword [rbx + 0x98]
test rbx, rbx
je 0x1400568fa
cmp qword [rbx], r15
je 0x1400568fa
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400568c5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 8], r15
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400568d8
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x10], r15
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400568fa
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1401e04c0]
mov qword [rbx + 0x18], r15
mov rcx, qword [rax + 0x38]
mov qword [rcx + 8], r15
mov rcx, qword [0x1401e0598]
lea rdx, [0x1401e05a0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov r8, qword [0x1401e04c0]
test r8, r8
je 0x14005693a
mov rax, qword [r8 + 0x98]
test rax, rax
je 0x14005693a
cmp qword [rax], r15
je 0x14005693a
call fcn.140043d30
mov r8, qword [0x1401e04c0]
cmp dword [0x1401e0520], 0x12
jne 0x1400563c0
test r8, r8
je 0x14005695c
mov rsi, qword [r8 + 0x98]
jmp 0x14005695f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rsi, r15
lea rdi, [r8 + 8]
test r8, r8
je 0x1400569cf
mov rbx, qword [r8 + 0x98]
test rbx, rbx
je 0x1400569cf
cmp qword [rbx], r15
je 0x1400569cf
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140056993
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [0x1401e04c0]
mov qword [rbx + 8], r15
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400569ad
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [0x1401e04c0]
mov qword [rbx + 0x10], r15
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400569cf
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [0x1401e04c0]
mov qword [rbx + 0x18], r15
mov rax, qword [r8 + 0x38]
mov qword [rax + 8], r15
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400569e4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov r8, qword [0x1401e04c0]
and dword [rdi + 4], 0xfffffff7
mov qword [rdi + 0x80], r15
mov qword [rdi + 0x90], r15
test r8, r8
je 0x140056a5b
movsx rdx, word [r8 + 0x6120]
mov r9d, dword [r8 + 0x3f88]
lea rcx, [rdx*8 + 0x6124]
add rcx, r8
cmp dword [rcx], r9d
je 0x140056a50
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6120], cx
movsx rax, cx
lea rcx, [rax*8 + 0x6124]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], r15d
inc word [rcx + 6]
inc dword [r8 + 0x611c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x1401e04c0]
test r8, r8
je 0x140056a79
mov rdi, qword [r8 + 0x90]
jmp 0x140056a7c
mov rdi, r15
mov rcx, qword [rdi + 0x38]
lea rbx, [r8 + 8]
test rcx, rcx
je 0x140056a96
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, qword [0x1401e04c0]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x78], r15
mov qword [rbx + 0x88], r15
test r8, r8
je 0x140056b0a
movsx rdx, word [r8 + 0x6120]
mov r9d, dword [r8 + 0x3f88]
lea rcx, [rdx*8 + 0x6124]
add rcx, r8
cmp dword [rcx], r9d
je 0x140056aff
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6120], cx
movsx rax, cx
lea rcx, [rax*8 + 0x6124]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], r15d
inc word [rcx + 6]
inc dword [r8 + 0x611c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1401e04c0]
mov qword [0x1401e04c0], rbx
call fcn.14001fd40
mov qword [0x1401e04c0], r15
test rbx, rbx
je 0x140056bb0
mov rcx, rbx
call fcn.140035b20
mov r8, qword [0x1401e04c0]
test r8, r8
je 0x140056ba7
movsx r10, word [r8 + 0x6120]
lea rdx, [r8 + 0x6124]
mov r9d, dword [r8 + 0x3f88]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140056b9c
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
lea rdx, [r8 + 0x6124]
sub ecx, eax
mov word [r8 + 0x6120], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r15d
inc word [rdx + 6]
inc dword [r8 + 0x611c]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1401e0598]
test rcx, rcx
je 0x140056bd2
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1401e0598]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1401e0550]
test rcx, rcx
je 0x140056be4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1401e0548]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [0x1401e0528]
mov r14, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x120]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14012f570
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret