Function at 0x14003e960
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1401a3080]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov eax, dword [0x1401a7a6c]
cmp eax, 1
jbe 0x14003e9aa
cmp eax, 2
jne 0x14003e998
mov edi, 0x55ffff
jmp 0x14003e9af
cmp eax, 3
jne 0x14003e9a4
mov edi, 0x6a63fe
jmp 0x14003e9af
mov edi, dword [rsp + 0x60]
jmp 0x14003e9af
mov edi, 0xfe69eb
mov ecx, dword [reloc.WS2_32.dll_closesocket]
mov eax, dword [0x1401a4eb4]
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
sub ebp, ecx
lea r15d, [rax + rcx]
mov ecx, dword [reloc.WS2_32.dll_closesocket]
mov eax, dword [0x1401a4ed4]
cdq
sub eax, edx
sar eax, 1
mov r14d, eax
sub r14d, ecx
lea esi, [rax + rcx]
mov ecx, dword [reloc.WS2_32.dll_getsockname]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14003ebd4
cmp byte [0x1401a7a70], 0
je 0x14003ebd4
mov qword [rsp + 0xd0], rbx
xor ecx, ecx
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xe0], r13
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ebx, ebx
mov dword [rsp + 0x68], Ordinal_46
mov r12, rax
mov dword [rsp + 0x28], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x8c], ebx
sub esi, r14d
mov qword [rsp + 0x74], 0x200001
mov eax, esi
mov qword [rsp + 0x60], rbx
neg eax
mov qword [rsp + 0x20], rbx
sub r15d, ebp
mov dword [rsp + 0x70], eax
lea r9, [rsp + 0x60]
mov dword [rsp + 0x6c], r15d
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, r13
movdqu xmmword [rsp + 0x7c], xmm0
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14003eba8
mov rdx, rax
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r15d
mov dword [rsp + 0x38], r14d
xor r8d, r8d
mov dword [rsp + 0x30], ebp
xor edx, edx
mov qword [rsp + 0x28], r13
mov rcx, r12
mov dword [rsp + 0x20], esi
call qword [sym.imp.GDI32.dll_BitBlt]
imul esi, r15d
test esi, esi
jle 0x14003eb9d
mov rax, qword [rsp + 0x60]
inc rax
movzx r9d, dil
nop word [rax + rax]
movzx edx, byte [rax + 1]
sub edx, r9d
mov ecx, edx
neg ecx
cmovs ecx, edx
cmp ecx, 0x5a
jge 0x14003eb38
movzx edx, byte [rax]
movzx ecx, di
shr ecx, 8
sub edx, ecx
mov ecx, edx
neg ecx
cmovs ecx, edx
cmp ecx, 0x5a
jge 0x14003eb38
movzx r8d, byte [rax - 1]
mov ecx, edi
shr ecx, 0x10
movzx edx, cl
sub r8d, edx
mov ecx, r8d
neg ecx
cmovs ecx, r8d
cmp ecx, 0x5a
jl 0x14003eb44
inc ebx
add rax, 4
cmp ebx, esi
jl 0x14003eaf0
jmp 0x14003eb9d
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14003eb9d
mov r9d, 1
xor r8d, r8d
xor edx, edx
call fcn.14003dc50
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], 1
call fcn.140042f70
mov r9d, 2
xor r8d, r8d
xor edx, edx
call fcn.14003dc50
movsxd rax, dword [reloc.WS2_32.dll_accept]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
call fcn.140042f70
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r13, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400b53b0
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret