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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xb0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1400e9060]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [0x1401389e0]
test rax, rax
je 0x1400511d3
inc dword [rax + 0x3b0]
mov rdx, qword [0x1401389d0]
mov ecx, 0x3e50
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
xor r15d, r15d
test rax, rax
je 0x14005120f
xor edx, edx
mov rcx, rax
call fcn.1400028b0
mov rcx, rax
jmp 0x140051212
mov rcx, r15
mov rax, qword [0x1401389e0]
test rax, rax
cmove rax, rcx
mov qword [0x1401389e0], rax
call fcn.140008f40
mov r14, qword [0x1401389e0]
lea rbx, [0x1400d3db8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
movss xmm3, dword [0x1400d63b8]
mov r8d, 0x4d33c
lea rdx, [0x1400e90c0]
mov rcx, qword [r14 + 0xa8]
call fcn.14002ecb0
mov qword [0x140138a40], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
movss xmm3, dword [0x1400d63ac]
mov r8d, 0x4d33c
lea rdx, [0x1400e90c0]
mov rcx, qword [r14 + 0xa8]
call fcn.14002ecb0
mov qword [0x140138ab0], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
movss xmm3, dword [0x1400d63cc]
mov r8d, 0xfa0
lea rdx, [0x1401364e0]
mov rcx, qword [r14 + 0xa8]
call fcn.14002ecb0
mov qword [0x1401389e8], rax
mov qword [r14 + 0x20], r15
or dword [r14 + 8], 0x400
xor ecx, ecx
call fcn.14002ae10
call fcn.1400344d0
mov rcx, qword [0x140138a30]
mov rbx, qword [0x1401389e0]
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0xe8], rax
or dword [rbx + 0xc], 0x1008
mov qword [0x140138b98], rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test dword [rbx + 8], 0x400
je 0x14005136e
mov rax, qword [0x1401389e0]
lea rcx, [fcn.140034190]
mov qword [rax + 0x15f0], rcx
lea rcx, [0x140034260]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x1400342f0]
mov qword [rax + 0x1600], rcx
lea rcx, [0x140034350]
mov qword [rax + 0x1608], rcx
lea rcx, [0x1400344a0]
mov qword [rax + 0x1610], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movss xmm6, dword [0x1400d631c]
nop dword [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400513ca
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14005176e
mov ecx, dword [reloc.WLDAP32.dll_Ordinal_45]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400513e8
cmp byte [reloc.WS2_32.dll_accept], 0
sete byte [0x1401364d8]
mov ecx, dword [0x140138a5c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x14005183f
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140051421
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140051421
call fcn.140048460
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140051446
mov ecx, Ordinal_79
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140051446
call fcn.14004a200
cmp qword [0x140138b88], 0
jne 0x140051455
call fcn.140033e80
mov rbx, qword [0x1401389e0]
lea rdx, [rsp + 0x50]
mov rcx, qword [0x140138bb0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x58]
sub eax, dword [rsp + 0x50]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rsp + 0x5c]
sub eax, dword [rsp + 0x54]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400514ef
mov rdi, qword [0x1401389e0]
mov ecx, dword [rdi + 0x161c]
test ecx, ecx
jns 0x1400514cd
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov edx, r15d
test eax, eax
cmovg edx, eax
lea rcx, [rdi + 0x1618]
call fcn.140023420
mov dword [rdi + 0x1618], r15d
xor r9d, r9d
lea r8, [0x140034e70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [reloc.WS2_32.dll_accept], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, qword [0x140138bb8]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140138bc0]
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [0x140138bb8], rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13c], al
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13d], al
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13e], al
mov byte [rbx + 0x13f], 0
call fcn.1400349c0
cmp byte [rbx + 0xd0], 0
je 0x14005158b
mov eax, 0xffffffff
jmp 0x140051598
mov rax, qword [0x1401389e0]
mov eax, dword [rax + 0x1ef8]
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x1400515ab
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.140034840
call fcn.140034bc0
call fcn.140008080
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400515c3
call fcn.140050710
call fcn.14000a2a0
mov rcx, qword [0x140138a30]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r15d
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], r15d
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x140138a30]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140051641
call fcn.14000a820
mov rax, qword [0x1401389e0]
mov rcx, qword [rax + 0x1d48]
mov rax, qword [rcx]
add rax, 0xb0
mov rcx, r15
cmp byte [rax], cl
cmovne rcx, rax
call fcn.1400338a0
mov rcx, qword [0x140138a30]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r14 + 8], 0x400
je 0x140051715
call fcn.14001a8e0
mov rbx, qword [0x1401389e0]
mov ebp, 1
mov eax, dword [rbx + 0x1630]
cmp eax, ebp
jle 0x1400516b7
mov esi, 8
nop
mov rax, qword [rbx + 0x1638]
mov rdi, qword [rsi + rax]
test byte [rdi + 4], 0x80
jne 0x1400516a7
mov rax, qword [rbx + 0x15c0]
test rax, rax
je 0x140051694
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1608]
test rax, rax
je 0x1400516a7
xor edx, edx
mov rcx, rdi
call rax
inc ebp
add rsi, 8
mov eax, dword [rbx + 0x1630]
cmp ebp, eax
jl 0x140051670
mov ebp, 1
cmp eax, ebp
jle 0x140051715
mov esi, 8
nop word [rax + rax]
mov rax, qword [rbx + 0x1638]
mov rdi, qword [rsi + rax]
test byte [rdi + 4], 0x80
jne 0x140051707
mov rax, qword [rbx + 0x15c8]
test rax, rax
je 0x1400516f4
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1610]
test rax, rax
je 0x140051707
xor edx, edx
mov rcx, rdi
call rax
inc ebp
add rsi, 8
cmp ebp, dword [rbx + 0x1630]
jl 0x1400516d0
mov rcx, qword [0x140138a30]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14005176e
mov rcx, qword [0x140138a30]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x14005176e
call fcn.140034050
mov rcx, qword [0x140138a30]
mov rax, qword [rcx]
lea rdx, [0x1401389f0]
call qword [rax + 0x80]
call fcn.140033e80
cmp dword [rsp + 0x70], 0x12
jne 0x140051390
call fcn.14001aea0
call fcn.140034050
mov rcx, qword [0x140138b98]
test rcx, rcx
je 0x14005179c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140138b98], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rax
lea rcx, str.ImGui_Platform
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov qword [0x140138bb0], r15
mov rbx, qword [0x1401389e0]
mov rcx, rbx
call fcn.1400091d0
mov rax, qword [0x1401389e0]
cmp rax, rbx
cmove rax, r15
mov qword [0x1401389e0], rax
test rbx, rbx
je 0x14005180d
mov rcx, rbx
call fcn.140023b50
mov rax, qword [0x1401389e0]
test rax, rax
je 0x1400517fe
dec dword [rax + 0x3b0]
mov rdx, qword [0x1401389d0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400bb890
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3