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

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x140057b80]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [0x1400581a8]
call sub.VCRUNTIME140.dll_memset
cmp dword [0x1400581b0], 0x12
je 0x1400463aa
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1400589c0]
lea rcx, [0x1400581a8]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400460ba
lea rcx, [0x1400581a8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1400581a8]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x50], rax
mov rax, qword [0x140058350]
cmp qword [rsp + 0x50], rax
jne 0x140046118
mov edx, 3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetWindow]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400589c0]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x140046136
mov ecx, 8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov rcx, qword [0x140058350]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140058350]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x74], eax
call fcn.1400090fc
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [0x140058350]
mov qword [rax + 0x100], rcx
mov rax, qword [rsp + 0x40]
movss xmm0, dword [0x14004fe64]
movss dword [rax + 0x10], xmm0
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov rax, qword [rsp + 0x40]
movss dword [rax + 0x110], xmm0
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov rax, qword [rsp + 0x40]
movss dword [rax + 0x114], xmm0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140046295
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0x118], 1
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0x428], 1
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
movss xmm0, dword [rdx + 0x110]
movss dword [rcx + rax + 0x3d4], xmm0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
movss xmm0, dword [rdx + 0x114]
movss dword [rcx + rax + 0x3d4], xmm0
jmp 0x1400462ab
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0x118], 0
mov eax, dword [0x140058a28]
cmp dword [rsp + 0x70], eax
jne 0x1400462df
mov eax, dword [0x140058a30]
cmp dword [rsp + 0x78], eax
jne 0x1400462df
mov eax, dword [0x140058a2c]
cmp dword [rsp + 0x74], eax
jne 0x1400462df
mov eax, dword [0x140058a34]
cmp dword [rsp + 0x7c], eax
je 0x140046375
movups xmm0, xmmword [rsp + 0x70]
movdqu xmmword [0x140058a28], xmm0
mov eax, dword [rsp + 0x78]
mov dword [0x14005835c], eax
mov eax, dword [rsp + 0x7c]
mov dword [0x140058360], eax
mov eax, dword [0x14005835c]
mov dword [0x1400582f0], eax
mov eax, dword [0x140058360]
mov dword [0x1400582f4], eax
mov dword [rsp + 0x30], 8
mov eax, dword [0x140058360]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14005835c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, qword [0x1400589c0]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rax, qword [0x1400589c8]
mov rax, qword [rax]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rdx, [0x1400582f0]
mov rcx, qword [0x1400589c8]
call qword [rsp + 0x68]
call fcn.1400413ec
cmp dword [0x1400581d8], 0
jne 0x140046397
lea rdx, str.Process_base_address:__p._n
lea rcx, [rsp + 0x80]
call fcn.140034460
mov eax, dword [0x1400581d8]
inc eax
mov dword [0x1400581d8], eax
jmp 0x14004606d
call fcn.1400201c0
call fcn.140020498
xor ecx, ecx
call fcn.140007468
mov rcx, qword [0x1400589c0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140047140
add rsp, 0xb8
ret