Function at 0x140056570
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x1400e6080]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
xor r14d, r14d
cmp byte [reloc.WS2_32.dll_accept], r14b
je 0x140056b0e
movaps xmmword [r11 - 0x18], xmm6
movss xmm6, dword [0x1400d3480]
movaps xmmword [r11 - 0x28], xmm7
movss xmm7, dword [0x1400d3454]
movaps xmmword [r11 - 0x38], xmm8
movss xmm8, dword [0x1400d3420]
movaps xmmword [r11 - 0x48], xmm9
movss xmm9, dword [0x1400d3468]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [0x1400f9e98]
lea rcx, [0x1400f9ef0]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140056630
lea rcx, [0x1400f9ef0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1400f9ef0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x1400f9ef8], 0x12
jne 0x140056640
mov byte [reloc.WS2_32.dll_accept], r14b
mov ecx, reloc.WLDAP32.dll_Ordinal_45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14005665d
cmp byte [reloc.WS2_32.dll_accept], r14b
sete byte [0x1400f86d0]
mov ecx, reloc.WLDAP32.dll_Ordinal_35
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140056ae5
cmp byte [reloc.WS2_32.dll_accept], r14b
je 0x140056aec
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov edx, 3
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x1400f9e98]
mov r9d, 1
mov dword [rsp + 0x30], 3
mov r8d, r9d
mov dword [rsp + 0x28], r14d
mov rdx, rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400f9e98]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rdi, qword [0x1400f9b40]
lea rcx, [rbp - 1]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rbp - 1]
mov ecx, 1
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0xe00], xmm0
movd xmm0, dword [rbp + 3]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0xe04], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0xe08], al
mov rax, qword [0x1400f9b40]
test rax, rax
je 0x140056725
mov rcx, qword [rax + 0x98]
jmp 0x140056728
mov rcx, r14
cmp qword [rcx + 0x18], r14
jne 0x140056749
test rax, rax
je 0x140056749
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x140056749
cmp qword [rcx], r14
je 0x140056749
call fcn.14002f9b0
call fcn.140030570
call fcn.14000b7d0
call fcn.140004120
cmp byte [reloc.WS2_32.dll_accept], r14b
je 0x14005688d
mov rax, qword [0x1400f9b40]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x48c8]
mov rcx, qword [rcx]
call fcn.14000aee0
movss xmm3, dword [0x1400f9f28]
lea rcx, [rbp - 0x11]
movaps xmm0, xmmword [0x1400d3700]
mov r10, rax
movss xmm1, dword [0x1400f9f2c]
mulss xmm3, xmm8
movups xmmword [rbp - 0x11], xmm0
movaps xmm0, xmm3
mulss xmm1, xmm8
addss xmm0, dword [0x1400e613c]
subss xmm3, dword [0x1400e613c]
movss dword [rbp - 0x35], xmm1
movss dword [rbp - 0x2d], xmm1
movss dword [rbp - 0x39], xmm0
movss dword [rbp - 0x31], xmm3
call fcn.140006e00
mov r9d, eax
movss dword [rsp + 0x20], xmm9
lea rdx, [rbp - 0x31]
mov rcx, r10
lea r8, [rbp - 0x39]
call fcn.140029a90
mov rax, qword [0x1400f9b40]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x48c8]
mov rcx, qword [rcx]
call fcn.14000aee0
movss xmm2, dword [0x1400f9f2c]
lea rcx, [rbp - 0x11]
movaps xmm0, xmmword [0x1400d3700]
mov r10, rax
movss xmm3, dword [0x1400f9f28]
mulss xmm2, xmm8
movups xmmword [rbp - 0x11], xmm0
movaps xmm0, xmm2
mulss xmm3, xmm8
addss xmm0, dword [0x1400e613c]
subss xmm2, dword [0x1400e613c]
movss dword [rbp - 0x29], xmm3
movss dword [rbp - 0x21], xmm3
movss dword [rbp - 0x25], xmm0
movss dword [rbp - 0x1d], xmm2
call fcn.140006e00
mov r9d, eax
movss dword [rsp + 0x20], xmm9
lea rdx, [rbp - 0x21]
mov rcx, r10
lea r8, [rbp - 0x29]
call fcn.140029a90
cmp byte [reloc.WS2_32.dll_accept], r14b
je 0x140056936
mov rax, qword [0x1400f9b40]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x48c8]
mov rcx, qword [rcx]
call fcn.14000aee0
movaps xmm0, xmmword [0x1400d3700]
lea rcx, [rbp - 0x11]
movups xmmword [rbp - 0x11], xmm0
mov rbx, rax
call fcn.140006e00
movss xmm0, dword [rdi + 0xe00]
mov esi, eax
movss xmm1, dword [rdi + 0xe04]
movss dword [rbp - 0x19], xmm0
movss dword [rbp - 0x15], xmm1
test eax, 0xff000000
je 0x140056931
xor r9d, r9d
mov dword [rsp + 0x20], Ordinal_50
movaps xmm2, xmm6
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140028c10
mov r8d, dword [rbx + 0x78]
mov r9d, esi
mov rdx, qword [rbx + 0x80]
dec r8d
mov rcx, rbx
mov dword [rbx + 0x78], r8d
call fcn.140028630
mov dword [rbx + 0x78], r14d
call fcn.140055d60
call fcn.14000d460
mov rcx, qword [0x1400f9ea8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400f9ea8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400f9ea8]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400f9ea8]
mov r9d, 1
mov dword [rsp + 0x30], r14d
xor r8d, r8d
movss dword [rsp + 0x28], xmm7
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x1400f9ea8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400569f8
call fcn.14000d870
mov rax, qword [0x1400f9b40]
mov rcx, qword [rax + 0x48c8]
mov rax, qword [rcx]
mov rcx, r14
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.14002f3f0
mov rcx, qword [0x1400f9ea8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400f9ea8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140056ad6
mov rcx, qword [0x1400f9ea8]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x140056ad6
mov rbx, qword [0x1400f9b40]
test rbx, rbx
je 0x140056a9d
mov rbx, qword [rbx + 0x98]
test rbx, rbx
je 0x140056a9d
cmp qword [rbx], r14
je 0x140056a9d
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140056a68
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 8], r14
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140056a7b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x10], r14
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140056a9d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1400f9b40]
mov qword [rbx + 0x18], r14
mov rcx, qword [rax + 0x38]
mov qword [rcx + 8], r14
mov rcx, qword [0x1400f9ea8]
lea rdx, [0x1400f9eb0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rbx, qword [0x1400f9b40]
test rbx, rbx
je 0x140056ad6
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x140056ad6
cmp qword [rax], r14
je 0x140056ad6
call fcn.14002f9b0
cmp byte [reloc.WS2_32.dll_accept], r14b
jne 0x1400565f0
jmp 0x140056aec
mov byte [reloc.WS2_32.dll_accept], r14b
movaps xmm8, xmmword [rsp + 0xa0]
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0xc0]
movaps xmm9, xmmword [rsp + 0x90]
mov rbx, qword [0x1400f9b40]
test rbx, rbx
je 0x140056b23
mov rsi, qword [rbx + 0x98]
jmp 0x140056b26
mov rsi, r14
mov rbx, qword [0x1400f9b40]
test rbx, rbx
je 0x140056b8b
mov rdi, qword [rbx + 0x98]
test rdi, rdi
je 0x140056b8b
cmp qword [rdi], r14
je 0x140056b8b
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140056b56
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 8], r14
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140056b69
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x10], r14
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140056b8b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1400f9b40]
mov qword [rdi + 0x18], r14
mov rcx, qword [rax + 0x38]
mov qword [rcx + 8], r14
mov rcx, qword [rsi]
test rcx, rcx
je 0x140056b99
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x1400f9b40]
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x98], r14
test rax, rax
je 0x140056bbd
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400f9b40]
mov rsi, qword [rsp + 0xe8]
test rax, rax
je 0x140056be3
mov rdi, qword [rax + 0x90]
jmp 0x140056be6
mov rdi, r14
mov rcx, qword [rdi + 0x30]
lea rbx, [rax + 8]
test rcx, rcx
je 0x140056c00
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1400f9b40]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x88], r14
test rax, rax
je 0x140056c1a
dec dword [rax + 0xf0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400f9b40]
mov qword [0x1400f9b40], rbx
call fcn.140009670
mov rdi, qword [rsp + 0xf0]
mov qword [0x1400f9b40], r14
mov r14, qword [rsp + 0xf8]
test rbx, rbx
je 0x140056c75
mov rcx, rbx
call fcn.14001ef90
mov rax, qword [0x1400f9b40]
test rax, rax
je 0x140056c6c
dec dword [rax + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400f9ea8]
mov rbx, qword [rsp + 0xe0]
test rcx, rcx
je 0x140056c9f
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400f9ea8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1400f9ea0]
test rcx, rcx
je 0x140056cb1
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1400f9e98]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov al, 1
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400b83a0
add rsp, 0xd0
pop rbp
ret