Function at 0x140059040
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push r15
lea rbp, [r11 - 0x68]
sub rsp, 0x158
mov rax, qword [0x14011a0b8]
xor rax, rsp
mov qword [rbp + 0x30], rax
movzx eax, byte [0x140179940]
mov r15, qword [0x140179650]
test al, al
je 0x140059840
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x18], r12
xor r12d, r12d
mov qword [r11 - 0x20], r13
mov qword [r11 - 0x28], r14
cmp byte [0x1401799b9], 0
je 0x140059808
mov rdx, qword [0x140179618]
lea r8, [rsp + 0x68]
add rdx, qword [0x1401795d0]
mov r9d, 8
mov rcx, qword [0x1401507c8]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x58]
mov rcx, qword [0x1401507c8]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rsp + 0x58]
lea r8, [rbp - 0x48]
mov rcx, qword [0x1401507c8]
mov r9d, 8
mov qword [rbp - 0x48], r12
mov qword [rsp + 0x20], r12
lea rdx, [rbx + 0x180]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdi, qword [rbp - 0x48]
lea rdx, [rbx + 0x188]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x60]
mov r9d, 4
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x140179638]
lea r8, [rsp + 0x70]
add rdx, qword [r15 + 0x50]
mov r9d, 8
mov rcx, qword [0x1401507c8]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [0x140179a9c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400591a2
cmp byte [0x140179a7a], 0
sete byte [0x140179a7a]
mov ecx, dword [0x140179aa0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400591c1
cmp byte [0x140179a7b], 0
sete byte [0x140179a7b]
mov ebx, dword [rsp + 0x60]
mov esi, r12d
test ebx, ebx
jle 0x1400597f6
mov r14, rdi
test rdi, rdi
je 0x1400597e8
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x70]
mov r9d, 8
mov qword [rsp + 0x70], r12
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1400597e3
mov rcx, qword [0x1401507c8]
lea r8, [rbp - 0x78]
xor r13d, r13d
mov qword [rbp - 0x78], 0
lea rdx, [rdi + 0x90]
mov dword [rbp - 0x70], 0
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 0xc]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [r15 + 0x50]
lea r9d, [r13 + 0xc]
mov rcx, qword [0x1401507c8]
lea r8, [rbp - 0x40]
add rdx, 0x90
mov qword [rbp - 0x40], r13
mov dword [rbp - 0x38], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movaps xmm0, xmmword [0x140106710]
lea r9d, [r13 + 0x40]
movaps xmm1, xmmword [0x140106730]
lea r8, [rbp - 0x10]
mov rdx, qword [r15 + 0x158]
mov rcx, qword [0x1401507c8]
add rdx, 0x24c
movups xmmword [rbp - 0x10], xmm0
movaps xmm0, xmmword [0x140106780]
movups xmmword [rbp], xmm1
movaps xmm1, xmmword [0x1401069e0]
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1401507c8]
lea r9d, [r13 + 0xc]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x40], r13
lea rdx, [rdi + 0x90]
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [r15 + 0x50]
lea r9d, [r13 + 8]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x68]
add rdx, 0x30
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x140179630]
lea r9d, [r13 + 8]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x68]
add rdx, rdi
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x280]
lea r9d, [r13 + 4]
mov dword [rsp + 0x58], r13d
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1401507c8]
lea r9d, [r13 + 4]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x58], r13d
lea rdx, [rdi + 0xc8c]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movss xmm0, dword [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x78]
movss dword [0x140179a84], xmm0
lea rcx, [rbp - 0x10]
call fcn.140003e70
test al, al
je 0x1400597e0
cmp byte [0x140179a66], r13b
je 0x14005949f
cmp esi, dword [0x1401799c0]
jne 0x1400597e0
mov rdx, qword [r15 + 0x50]
lea r9d, [r13 + 0xc]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x78]
add rdx, 0x90
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1401507c8]
lea r9d, [r13 + 8]
xor eax, eax
lea r8, [rsp + 0x58]
lea rdx, [rdi + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1401507c8]
lea r9d, [r13 + 0xc]
lea r8, [rbp - 0x20]
mov qword [rbp - 0x20], r13
lea rdx, [rdi + 0x30]
mov dword [rbp - 0x18], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1401507c8]
lea r9d, [r13 + 0xc]
xor ebx, ebx
lea r8, [rsp + 0x78]
lea rdx, [rdi + 0x90]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsp + 0x58]
lea r9d, [r13 + 0xc]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x78]
add rdx, 0x50
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x140179a66], bl
mov ebx, dword [rsp + 0x60]
cmp byte [0x140179a67], r13b
je 0x1400595df
cmp esi, dword [0x1401799c0]
jne 0x1400597e0
mov rcx, qword [0x1401507c8]
lea r8, [rbp - 0x68]
mov r9d, recvfrom
mov qword [rbp - 0x68], r13
lea rdx, [rdi + 0x90]
mov dword [rbp - 0x60], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x50]
xor r12d, r12d
mov qword [rbp - 0x58], r13
lea r8, [rbp - 0x58]
mov dword [rbp - 0x50], r13d
mov qword [rsp + 0x20], r12
lea r9d, [r12 + 0xc]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [r15 + 0x50]
lea r9d, [r12 + 8]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x58]
add rdx, 0x30
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [r15 + 0x50]
lea r9d, [r12 + 0xc]
mov rcx, qword [0x1401507c8]
lea r8, [rbp - 0x68]
mov rbx, qword [rsp + 0x58]
add rdx, 0x90
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rbx + 0x30]
lea r9d, [r12 + 0xc]
mov qword [rsp + 0x48], r12
lea r8, [rsp + 0x48]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rbx + 0x50]
lea r9d, [r12 + 0xc]
mov qword [rsp + 0x20], r12
lea r8, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [r15 + 0x50]
lea r9d, [r12 + 4]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x58]
add rdx, 0x15d8
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [0x140179a67], r12b
jmp 0x1400595e2
xor r12d, r12d
cmp byte [0x140179a77], r13b
je 0x1400596f4
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x910]
mov r9d, 4
mov dword [rsp + 0x58], 0x447a0000
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x834]
mov r9d, 4
mov dword [rsp + 0x58], 0x447a0000
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x830]
mov r9d, 4
mov dword [rsp + 0x58], 0x447a0000
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x284]
mov r9d, 4
mov dword [rsp + 0x58], 0x447a0000
lea r8, [rsp + 0x58]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea r8, [rsp + 0x58]
mov r9d, 4
mov dword [rsp + 0x58], 0x447a0000
lea rdx, [rdi + 0x280]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x944]
mov r9d, 1
mov byte [rsp + 0x30], 1
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ecx, byte [0x140179a78]
test ecx, ecx
je 0x14005970d
cmp ecx, 1
jne 0x14005973b
lea r8, [0x140179a7c]
jmp 0x14005971a
mov dword [rsp + 0x58], 0x3f800000
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov r9d, 4
mov rcx, qword [0x1401507c8]
add rdx, 0x4c
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [0x140179a79], r13b
je 0x14005976a
mov rcx, qword [0x1401507c8]
lea r8, [0x140179a80]
mov r9d, 4
mov qword [rsp + 0x20], r12
lea rdx, [rdi + 0xc8c]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [0x140179a7a], r13b
je 0x1400597a2
mov rdx, qword [0x140179640]
lea r8, [rsp + 0x58]
mov rcx, qword [0x1401507c8]
add rdx, rdi
mov r9d, 4
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [0x140179a7b], r13b
je 0x1400597da
mov rdx, qword [0x140179640]
lea r8, [rsp + 0x58]
mov rcx, qword [0x1401507c8]
add rdx, rdi
mov r9d, 4
mov dword [rsp + 0x58], 2
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [rsp + 0x60]
jmp 0x1400597e3
xor r12d, r12d
mov rdi, qword [rsp + 0x38]
inc esi
add r14, 0x10
cmp esi, ebx
jl 0x1400591d3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [0x140179940]
test al, al
jne 0x140059090
mov r14, qword [rsp + 0x140]
mov r13, qword [rsp + 0x148]
mov r12, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400cbe90
add rsp, 0x158
pop r15
pop rbp
ret