Function at 0x140040480
Capabilities:
Log keystrokes via polling
Terminate process

Disassembly:
push rbx
push rbp
sub rsp, 0x58
xorps xmm0, xmm0
xor ebp, ebp
movups xmmword [0x140050a90], xmm0
movups xmmword [0x140050aa0], xmm0
movups xmmword [0x140050ab0], xmm0
mov rdx, qword [0x140050ac0]
lea rcx, [0x140050a90]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400404e1
lea rcx, [0x140050a90]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x140050a90]
call qword [sym.imp.USER32.dll_DispatchMessageW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, 0x23
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140040873
mov rcx, qword [0x140050a40]
cmp rbx, rcx
jne 0x140040544
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x140050ac0]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140050a40]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rbp
lea rdx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x140050a40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov rbx, qword [0x140050a30]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x44], eax
mov rax, qword [0x140050a40]
mov qword [rbx + 0xc8], rax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x78]
mov ecx, 1
sub eax, dword [rsp + 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xd94], xmm0
mov eax, dword [rsp + 0x7c]
sub eax, dword [rsp + 0x74]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xd98], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400405ff
mov byte [rbx + 0xd9c], 1
mov eax, dword [rbx + 0xd98]
mov dword [rbx + 0x3660], eax
mov byte [rbx + 0x36b0], 1
jmp 0x140040606
mov byte [rbx + 0xd9c], bpl
mov eax, dword [0x140050c30]
mov ecx, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jne 0x140040636
cmp edx, dword [0x140050c38]
jne 0x140040636
mov eax, dword [0x140050c34]
cmp dword [rsp + 0x44], eax
jne 0x140040636
cmp ecx, dword [0x140050c3c]
je 0x14004069a
movups xmm0, xmmword [rsp + 0x40]
mov r9d, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [0x140050b84], edx
mov dword [0x140050b80], ecx
mov dword [0x140050b10], edx
xor edx, edx
mov dword [0x140050b14], ecx
mov rcx, qword [0x140050ac0]
movups xmmword [0x140050c30], xmm0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x140050b78]
lea rdx, [0x140050b10]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.140040270
cmp dword [0x140050a98], 0x12
jne 0x1400404a1
mov rcx, qword [0x140050a30]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x50], rdi
test rcx, rcx
je 0x1400406ce
mov rdi, qword [rcx + 0x98]
jmp 0x1400406d1
mov rdi, rbp
lea rsi, [rcx + 8]
test rcx, rcx
je 0x14004074a
mov rbx, qword [rcx + 0x98]
test rbx, rbx
je 0x14004074a
cmp qword [rbx], rbp
je 0x14004074a
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140040708
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140050a30]
mov qword [rbx + 8], rbp
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140040725
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140050a30]
mov qword [rbx + 0x10], rbp
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14004074a
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140050a30]
mov qword [rbx + 0x18], rbp
mov rax, qword [rcx + 0x50]
mov qword [rax + 8], rbp
mov rdx, qword [rdi]
test rdx, rdx
je 0x140040762
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x140050a30]
mov qword [rsi + 0x80], rbp
mov qword [rsi + 0x90], rbp
mov rsi, qword [rsp + 0x80]
test rcx, rcx
je 0x140040783
dec dword [rcx + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140050a30]
test rax, rax
je 0x1400407a1
mov rbx, qword [rax + 0x90]
jmp 0x1400407a4
mov rbx, rbp
mov rcx, qword [rbx + 0x30]
lea rdi, [rax + 8]
test rcx, rcx
je 0x1400407be
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140050a30]
mov qword [rdi + 0x78], rbp
mov qword [rdi + 0x88], rbp
mov rdi, qword [rsp + 0x50]
test rax, rax
je 0x1400407d9
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140050a30]
mov qword [0x140050a30], rbx
call fcn.140007ce0
mov qword [0x140050a30], rbp
test rbx, rbx
je 0x140040824
mov rcx, rbx
call fcn.140018360
mov rax, qword [0x140050a30]
test rax, rax
je 0x14004081b
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140050b78]
test rcx, rcx
je 0x140040846
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140050b78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140050ac8]
test rcx, rcx
je 0x140040858
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140050ac0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [0x140050aa0]
add rsp, 0x58
pop rbp
pop rbx
ret
mov ecx, 8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3