Function at 0x14000f560
Capabilities:
Log keystrokes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
lea rbp, [rsp + 0x20]
xor eax, eax
lea rdx, [rbp + 0x80]
xor ecx, ecx
mov dword [rbp + 0x80], eax
lea r8d, [rax + 0x18]
call qword [sym.imp.USER32.dll_GetRawInputBuffer]
mov eax, dword [rbp + 0x80]
test eax, eax
je 0x14000f80d
shl eax, 6
mov r8d, eax
add rax, 0xf
mov dword [rbp + 0x88], r8d
cmp rax, r8
ja 0x14000f5bf
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400bd490
sub rsp, rax
mov edx, 0xff
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov qword [rbp + 0x98], rsi
mov r13, rsi
call fcn.1400be550
mov r8d, 0x18
lea rdx, [rbp + 0x88]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetRawInputBuffer]
mov r12d, eax
cmp eax, 1
jl 0x14000f80d
mov edx, dword [0x1401d32c8]
mov ebx, 8
mov rcx, qword gs:[0x58]
lea edi, [rbx + 0x18]
lea rdx, [rcx + rdx*8]
mov qword [rbp + 0x90], rdx
lea r10d, [rbx - 7]
lea r9d, [rbx - 6]
lea r11d, [rbx - 4]
lea r8d, [rbx + 0x64]
nop dword [rax + rax]
mov ecx, dword [0x14012897c]
mov rax, rsi
mov r15d, dword [rbp + 0x88]
sub rax, r13
sub r15, rax
mov r14d, ecx
cmp r15, rcx
jb 0x14000f80d
mov eax, dword [rsi + 4]
cmp eax, ecx
jb 0x14000f80d
cmp rax, r15
ja 0x14000f80d
mov eax, dword [rsi]
test eax, eax
jne 0x14000f718
mov dword [rbp], r10d
lea rbx, [rbp + 4]
mov dword [rbp + 4], 0x10002
lea edi, [rax + 5]
mov dword [rbp + 8], r9d
xor r13d, r13d
mov dword [rbp + 0xc], 0x40008
mov dword [rbp + 0x10], r11d
mov dword [rbp + 0x14], 0x100020
mov dword [rbp + 0x18], 5
mov dword [rbp + 0x1c], 0x400080
mov dword [rbp + 0x20], 6
mov dword [rbp + 0x24], 0x1000200
nop word [rax + rax]
movzx eax, word [rbx + 2]
lea rcx, [0x140110018]
and ax, word [r14 + rsi + 4]
mov edx, dword [rbx - 4]
cmp r13w, ax
movzx eax, word [rbx]
setne r9b
and ax, word [r14 + rsi + 4]
cmp r13w, ax
setne r8b
call fcn.14000f390
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14000f6d0
mov r13, qword [rbp + 0x98]
jmp 0x14000f7ce
cmp eax, 1
jne 0x14000f7ee
movzx ebx, byte [rcx + rsi + 2]
not bl
mov ecx, 0x6220
and bl, al
movzx edi, bl
xor dil, al
mov rax, qword [rdx]
mov eax, dword [rcx + rax]
cmp dword [0x140128998], eax
jg 0x14000f81e
jmp 0x14000f74f
mov r8d, WSAGetLastError
movzx edx, word [r14 + rsi + 6]
mov ecx, edx
sub ecx, 0xd
je 0x14000f7ab
sub ecx, 3
je 0x14000f791
sub ecx, 1
je 0x14000f77e
cmp ecx, 1
jne 0x14000f7ba
movzx edx, word [r14 + rsi + 2]
and edx, 2
or edx, 0x148
shr edx, 1
jmp 0x14000f7ba
movzx edx, word [r14 + rsi + 2]
and edx, 2
or edx, 0x144
shr edx, 1
jmp 0x14000f7ba
movzx eax, word [r14 + rsi]
xor ecx, ecx
cmp eax, dword [0x140128994]
mov edx, ecx
setne dl
add edx, 0xa0
jmp 0x14000f7ba
test byte [r14 + rsi + 2], 2
mov edx, reloc.WS2_32.dll_listen
cmovne edx, r8d
movzx r9d, bl
lea rcx, [0x140110018]
movzx r8d, dil
call fcn.14000f390
mov rdx, qword [rbp + 0x90]
mov r11d, 4
lea edi, [r11 + 0x1c]
lea ebx, [rdi - 0x18]
lea r10d, [r11 - 3]
lea r9d, [r11 - 2]
lea r8d, [r11 + 0x68]
mov eax, dword [rsi + 4]
add rax, 7
and rax, 0xfffffffffffffff8
cmp rax, r15
ja 0x14000f80d
add rsi, rax
dec r12d
test r12d, r12d
jg 0x14000f640
lea rsp, [rbp + 0x38]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x140128998]
call fcn.1400bd364
cmp dword [0x140128998], 0xffffffff
jne 0x14000f749
xor edx, edx
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea rcx, [0x140128998]
mov dword [0x140128994], eax
call fcn.1400bd304
jmp 0x14000f749