Function at 0x140058bb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x5f]
sub rsp, 0x88
mov rax, qword [0x14011a0b8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp byte [0x140179940], 0
mov rsi, qword [0x140179650]
je 0x140059029
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x18], r12
mov qword [r11 + 0x20], r14
xor r14d, r14d
mov qword [r11 - 0x18], r15
mov qword [r11 + 8], rbx
movaps xmmword [rsp + 0x70], xmm6
lea r12d, [r14 + 1]
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [rsi + 0x50]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1401507c8]
mov r9d, 8
mov qword [rbp + 0x17], r14
mov qword [rsp + 0x20], r14
lea rdx, [rdi + 0xd10]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rsi + 0x50]
lea r8, [rbp + 0x17]
mov rcx, qword [0x1401507c8]
add rdx, 0x15d8
mov r9d, 4
mov dword [rbp + 0x17], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [rbp + 0x17]
cmp ecx, 0xffffffff
jne 0x140058c77
mov byte [0x140179a65], r14b
jmp 0x140058c8a
movzx eax, byte [0x140179a65]
test ecx, ecx
cmove eax, r12d
mov byte [0x140179a65], al
cmp byte [0x140179a71], r14b
je 0x140058f23
test rdi, rdi
je 0x140058f69
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x2e]
mov r9, r12
mov byte [rbp - 9], 2
lea r8, [rbp - 9]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x2c]
mov r9, r12
mov byte [rbp - 9], gethostname
lea r8, [rbp - 9]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea r8, [rbp + 7]
mov r9d, recvfrom
mov qword [rbp + 7], r14
lea rdx, [rdi + 0x90]
mov dword [rbp + 0xf], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [0x140179628]
lea r8, [rbp + 0x17]
add rdx, qword [0x1401795d0]
mov r9d, 8
mov rcx, qword [0x1401507c8]
mov qword [rbp + 0x17], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp + 0x17]
lea r8, [rbp + 0x1f]
mov rcx, qword [0x1401507c8]
add rdx, 0x3d0
mov r9d, recvfrom
mov qword [rbp + 0x1f], r14
mov dword [rbp + 0x27], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movss xmm6, dword [0x1401799a4]
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140058dc9
movss xmm1, dword [rbp + 7]
movss xmm0, dword [rbp + 0x1f]
mulss xmm0, xmm6
addss xmm1, xmm0
movss xmm0, dword [rbp + 0x23]
mulss xmm0, xmm6
movss dword [rbp + 7], xmm1
movss xmm1, dword [rbp + 0xb]
addss xmm1, xmm0
movss xmm0, dword [rbp + 0x27]
mulss xmm0, xmm6
movss dword [rbp + 0xb], xmm1
movss xmm1, dword [rbp + 0xf]
addss xmm1, xmm0
movss dword [rbp + 0xf], xmm1
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140058e20
movss xmm1, dword [rbp + 7]
movss xmm0, dword [rbp + 0x1f]
mulss xmm0, xmm6
subss xmm1, xmm0
movss xmm0, dword [rbp + 0x23]
mulss xmm0, xmm6
movss dword [rbp + 7], xmm1
movss xmm1, dword [rbp + 0xb]
subss xmm1, xmm0
movss xmm0, dword [rbp + 0x27]
mulss xmm0, xmm6
movss dword [rbp + 0xb], xmm1
movss xmm1, dword [rbp + 0xf]
subss xmm1, xmm0
movss dword [rbp + 0xf], xmm1
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140058e40
movss xmm0, dword [rbp + 0xf]
addss xmm0, xmm6
movss dword [rbp + 0xf], xmm0
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140058e60
movss xmm0, dword [rbp + 0xf]
subss xmm0, xmm6
movss dword [rbp + 0xf], xmm0
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140058e80
movss xmm0, dword [rbp + 7]
subss xmm0, xmm6
movss dword [rbp + 7], xmm0
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140058ea0
movss xmm0, dword [rbp + 7]
addss xmm0, xmm6
movss dword [rbp + 7], xmm0
mov rcx, qword [0x1401507c8]
lea r8, [rbp + 7]
mov r9d, recvfrom
mov qword [rsp + 0x20], r14
lea rdx, [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x30]
mov r9d, 8
mov qword [rbp + 0x17], r14
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp + 0x17]
lea r8, [rbp - 5]
mov rcx, qword [0x1401507c8]
mov r9d, recvfrom
mov qword [rbp - 5], r14
mov dword [rbp + 3], r14d
lea rdx, [rbx + 0x30]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rbx + 0x50]
mov r9d, recvfrom
lea r8, [rbp + 7]
jmp 0x140058f57
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x2e]
mov r9, r12
mov byte [rbp - 9], r12b
lea r8, [rbp - 9]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsi + 0x50]
lea r8, [rbp - 9]
add rdx, 0x2c
mov byte [rbp - 9], gethostname
mov r9, r12
mov rcx, qword [0x1401507c8]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [0x14017999c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140058f88
cmp byte [0x140179a71], r14b
sete byte [0x140179a71]
cmp byte [0x140179a73], r14b
je 0x140058fb5
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x189]
mov r9, r12
mov byte [rbp - 9], r12b
lea r8, [rbp - 9]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp byte [0x140179a68], r14b
je 0x140058fe4
mov rcx, qword [0x1401507c8]
lea rdx, [rdi + 0x14c]
mov r9d, 4
mov qword [rsp + 0x20], r14
lea r8, [0x140179a6c]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x140179940], r14b
jne 0x140058c10
movaps xmm6, xmmword [rsp + 0x70]
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400cbe90
add rsp, 0x88
pop rsi
pop rbp
ret