Function at 0x14005c360
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x14012f0c0]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rbx, qword [0x1401fe910]
mov r15, r9
mov qword [rbp - 0x20], r8
mov r12, rcx
test rbx, rbx
je case.0x14005c9d2.527
mov r14, qword [rbx + 0x90]
lea rdi, [rbx + 8]
cmp edx, 0x200
ja 0x14005c9a6
je 0x14005c94d
lea eax, [rdx - 7]
cmp eax, 0xfe
ja case.0x14005c9d2.527
lea r9, [0x140000000]
movzx eax, byte [r9 + rax + 0x5cb7c]
mov ecx, dword [r9 + rax*4 + 0x5cb68]
add rcx, r9
jmp rcx
lea eax, [rdx - 0x100]
mov esi, 0x100
test eax, 0xfffffffb
sete bl
cmp r8, rsi
jae case.0x14005c9d2.527
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x14011ac54]
shr eax, 0xf
and al, 1
cmp byte [rdi + 0x37b9], 0
je 0x14005c448
test al, al
je 0x14005c434
movaps xmm3, xmm6
jmp 0x14005c437
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x281
mov rcx, rdi
call fcn.140032fc0
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rdi + 0x37b9], 0
je 0x14005c47e
test al, al
je 0x14005c46a
movaps xmm3, xmm6
jmp 0x14005c46d
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x282
mov rcx, rdi
call fcn.140032fc0
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rdi + 0x37b9], 0
je 0x14005c4b4
test al, al
je 0x14005c4a0
movaps xmm3, xmm6
jmp 0x14005c4a3
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x283
mov rcx, rdi
call fcn.140032fc0
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rdi + 0x37b9], 0
je 0x14005c4ea
test al, al
je 0x14005c4d6
movaps xmm3, xmm6
jmp 0x14005c4d9
xorps xmm3, xmm3
movzx r8d, al
mov edx, 0x284
mov rcx, rdi
call fcn.140032fc0
mov rdi, qword [rbp - 0x20]
cmp rdi, 0xd
jne 0x14005c504
shr r15, 0x10
mov eax, 0x10d
test si, r15w
cmovne edi, eax
movsxd r15, edi
mov rcx, r15
call fcn.14005be10
movsxd r14, eax
test eax, eax
je 0x14005c55a
mov rsi, qword [0x1401fe910]
cmp byte [rsi + 0x37c1], 0
je 0x14005c542
test bl, bl
je 0x14005c52f
movaps xmm3, xmm6
jmp 0x14005c532
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rsi + 8]
mov edx, r14d
call fcn.140032fc0
cmp edi, 0x1ff
ja 0x14005c55a
mov dword [rsi + r15*4 + 0xf8], r14d
mov dword [rsi + r14*4 + 0xf8], edi
cmp edi, 0x10
jne 0x14005c616
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x14005c5b9
mov rdi, qword [0x1401fe910]
cmp byte [rdi + 0x37c1], 0
je 0x14005c5a5
test bl, bl
je 0x14005c590
movaps xmm3, xmm6
jmp 0x14005c593
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rdi + 8]
mov edx, 0x210
call fcn.140032fc0
mov dword [rdi + 0x378], 0x210
mov dword [rdi + 0x938], 0xa0
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x14005c9d2.527
mov rdi, qword [0x1401fe910]
cmp byte [rdi + 0x37c1], 0
je 0x14005c5fd
test bl, bl
jne 0x14005c5e8
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rdi + 8]
movzx r8d, bl
mov edx, 0x214
call fcn.140032fc0
mov dword [rdi + 0x37c], 0x214
mov dword [rdi + 0x948], 0xa1
jmp case.0x14005c9d2.527
cmp edi, 0x11
jne 0x14005c6d2
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x14005c675
mov rdi, qword [0x1401fe910]
cmp byte [rdi + 0x37c1], 0
je 0x14005c661
test bl, bl
je 0x14005c64c
movaps xmm3, xmm6
jmp 0x14005c64f
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rdi + 8]
mov edx, 0x20f
call fcn.140032fc0
mov dword [rdi + 0x380], 0x20f
mov dword [rdi + 0x934], 0xa2
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x14005c9d2.527
mov rdi, qword [0x1401fe910]
cmp byte [rdi + 0x37c1], 0
je 0x14005c6b9
test bl, bl
jne 0x14005c6a4
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rdi + 8]
movzx r8d, bl
mov edx, 0x213
call fcn.140032fc0
mov dword [rdi + 0x384], 0x213
mov dword [rdi + 0x944], 0xa3
jmp case.0x14005c9d2.527
cmp edi, 0x12
jne case.0x14005c9d2.527
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x14005c731
mov rdi, qword [0x1401fe910]
cmp byte [rdi + 0x37c1], 0
je 0x14005c71d
test bl, bl
je 0x14005c708
movaps xmm3, xmm6
jmp 0x14005c70b
xorps xmm3, xmm3
movzx r8d, bl
lea rcx, [rdi + 8]
mov edx, 0x211
call fcn.140032fc0
mov dword [rdi + 0x388], 0x211
mov dword [rdi + 0x93c], 0xa4
mov ecx, 0xa5
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x14005c9d2.527
mov rdi, qword [0x1401fe910]
cmp byte [rdi + 0x37c1], 0
je 0x14005c775
test bl, bl
jne 0x14005c760
xorps xmm6, xmm6
movaps xmm3, xmm6
lea rcx, [rdi + 8]
movzx r8d, bl
mov edx, 0x215
call fcn.140032fc0
mov dword [rdi + 0x38c], 0x215
mov dword [rdi + 0x94c], 0xa5
jmp case.0x14005c9d2.527
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
cmp edx, 7
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x40], 6
sete byte [rbp - 0x38]
jmp 0x14005c8cc
mov rcx, r12
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x14005c868
mov rsi, qword [rbp - 0x20]
lea rax, [rsi - 1]
cmp rax, 0xfffe
ja case.0x14005c9d2.527
test si, si
jne 0x14005c7e5
cmp word [rdi + 0x37bc], si
je case.0x14005c9d2.527
cmp byte [rdi + 0x37b9], 0
je case.0x14005c9d2.527
mov ecx, 0xfc00
movzx eax, si
and ax, cx
mov edx, 0xd800
movzx ecx, word [rdi + 0x37bc]
cmp ax, dx
jne 0x14005c82c
test cx, cx
je 0x14005c820
mov edx, 0xfffd
mov rcx, rdi
call fcn.140032f10
mov word [rdi + 0x37bc], si
jmp case.0x14005c9d2.527
test cx, cx
je 0x14005c858
mov ecx, 0xdc00
cmp ax, cx
je 0x14005c84a
mov edx, 0xfffd
mov rcx, rdi
call fcn.140032f10
jmp 0x14005c84f
mov esi, 0xfffd
xor ebx, ebx
mov word [rdi + 0x37bc], bx
movzx edx, si
mov rcx, rdi
call fcn.140032f10
jmp case.0x14005c9d2.527
mov r15d, 1
lea rax, [rbp - 0x28]
xor ebx, ebx
mov dword [rsp + 0x28], r15d
mov r9d, r15d
mov qword [rsp + 0x20], rax
mov edx, r15d
mov word [rbp - 0x28], bx
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [rbp - 0x28]
test eax, eax
je case.0x14005c9d2.527
cmp byte [rdi + 0x37b9], bl
je case.0x14005c9d2.527
mov esi, 2
mov qword [rbp - 0x34], rbx
mov dword [rbp - 0x2c], ebx
mov rbx, qword [0x1401fe910]
mov dword [rbp - 0x3c], esi
mov dword [rbp - 0x40], 5
mov dword [rbp - 0x38], eax
add rbx, 0x37d8
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
cmp ecx, r8d
jne 0x14005c906
inc ecx
test r8d, r8d
je 0x14005c8f2
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14005c8f7
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140049f20
movsxd rax, dword [rbx]
movups xmm0, xmmword [rbp - 0x40]
movsd xmm1, qword [rbp - 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm0
movsd qword [rax + rcx*8 + 0x10], xmm1
inc dword [rbx]
jmp case.0x14005c9d2.527
cmp r15w, 1
jne case.0x14005c9d2.527
call fcn.14005b300
test al, al
je case.0x14005c9d2.527
mov eax, 1
jmp 0x14005cb3c
cmp byte [r14 + 0x10], 0
mov qword [r14 + 8], r12
jne 0x14005c97f
xor ebx, ebx
mov dword [rbp - 0x40], Ordinal_26
mov esi, 2
mov dword [rbp - 0x30], ebx
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x3c], esi
mov qword [rbp - 0x38], r12
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [r14 + 0x10], 1
mov rax, r15
mov rcx, rdi
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, r15w
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.140033140
jmp case.0x14005c9d2.527
lea eax, [rdx - 0x201]
cmp eax, 0xa2
ja case.0x14005c9d2.527
lea r9, [0x140000000]
movzx eax, byte [r9 + rax + 0x5cc98]
mov ecx, dword [r9 + rax*4 + 0x5cc7c]
add rcx, r9
jmp rcx
cmp qword [r14 + 8], r12
jne 0x14005c9e0
xor ebx, ebx
mov qword [r14 + 8], rbx
movss xmm1, dword [0x14011ae7c]
mov rcx, rdi
movaps xmm2, xmm1
mov byte [r14 + 0x10], 0
call fcn.140033140
jmp case.0x14005c9d2.527
xor ebx, ebx
cmp edx, 0x204
je 0x14005ca12
mov r15d, ebx
cmp edx, 0x206
jne 0x14005ca18
mov r15d, 1
lea eax, [rdx - 0x207]
mov esi, 2
test eax, 0xfffffffd
lea eax, [rdx - 0x20b]
cmove r15d, esi
test eax, 0xfffffffd
jne 0x14005ca49
shr r8, 0x10
cmp r8w, 1
setne bl
lea r15d, [rbx + 3]
cmp dword [r14 + 0x14], 0
jne 0x14005ca64
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x14005ca64
mov rcx, r12
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [r14 + 0x14]
mov r8b, 1
bts eax, r15d
mov edx, r15d
mov rcx, rdi
mov dword [r14 + 0x14], eax
call fcn.1400331f0
jmp case.0x14005c9d2.527
xor ebx, ebx
cmp edx, 0x205
mov esi, ebx
sete sil
cmp edx, 0x208
jne 0x14005ca9e
lea esi, [rbx + 2]
jmp 0x14005cab8
cmp edx, 0x20c
jne 0x14005cab8
shr r8, 0x10
mov esi, ebx
cmp r8w, 1
setne sil
add esi, 3
mov eax, dword [r14 + 0x14]
btr eax, esi
mov dword [r14 + 0x14], eax
test eax, eax
jne 0x14005cad8
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r12
jne 0x14005cad8
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call fcn.1400331f0
jmp case.0x14005c9d2.527
shr r8, 0x10
xorps xmm1, xmm1
movsx eax, r8w
mov rcx, rdi
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x14011ad70]
call fcn.1400332a0
jmp case.0x14005c9d2.527
shr r8, 0x10
xorps xmm2, xmm2
movsx eax, r8w
mov rcx, rdi
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x14011ad70]
call fcn.1400332a0
jmp case.0x14005c9d2.527
cmp r8d, 7
jne case.0x14005c9d2.527
mov byte [r14 + 0x2d], 1
xor eax, eax
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1400d4e20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [rsp + 0x60]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret