Function at 0x140005980
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push rdi
mov eax, 0x16e0
call fcn.140018f40
sub rsp, rax
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rsp + 0x16d0], rax
xor ecx, ecx
call fcn.1400017f0
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x35]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call fcn.140006560
mov rcx, rax
call fcn.140009e80
mov rdx, rax
lea rcx, [rsp + 0x2a8]
call fcn.14000c410
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x31]
call fcn.140006390
mov rcx, rax
call fcn.140009c00
mov rdx, rax
lea rcx, [rsp + 0x288]
call fcn.14000c410
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x268]
call fcn.140001930
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x32]
call fcn.1400062e0
mov rcx, rax
call fcn.140009e80
mov rdx, rax
lea rcx, [rsp + 0x248]
call fcn.14000c410
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0x33]
call fcn.1400061b0
mov rcx, rax
call fcn.140009d40
mov rdx, rax
lea rcx, [rsp + 0x228]
call fcn.14000c410
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x208]
call fcn.140001930
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x34]
call fcn.140006100
mov rcx, rax
call fcn.140009e80
mov rdx, rax
lea rcx, [rsp + 0x1e8]
call fcn.14000c410
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x35]
call fcn.140006000
mov rcx, rax
call fcn.140009fc0
mov rdx, rax
lea rcx, [rsp + 0x1c8]
call fcn.14000c410
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x1a8]
call fcn.140001930
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x188]
call fcn.14000d9c0
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x168]
call fcn.14000d9c0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xe0], rax
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x148]
call fcn.14000d9c0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov r8, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x128]
call fcn.14000d9c0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x110], rax
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x318]
call fcn.14000d9c0
nop
lea rcx, [rsp + 0x128]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x148]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x168]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x188]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x1a8]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x1c8]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x1e8]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x208]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x228]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x248]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x268]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x288]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x2a8]
call fcn.14000c2b0
lea rcx, [rsp + 0x318]
call fcn.14000c120
mov rcx, rax
call fcn.140001120
xor eax, eax
cmp eax, 1
je 0x140005fd4
mov ecx, 0x31
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x140005fa2
lea rax, [rsp + 0x36]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x36]
call fcn.140006610
mov rcx, rax
call fcn.140009ac0
mov rcx, rax
call fcn.140001120
lea rdx, [0x14001c59d]
lea rcx, [rsp + 0x2f8]
call fcn.14000c410
nop
lea rcx, [rsp + 0x2e8]
call fcn.140001a30
lea rcx, [rsp + 0x2e8]
call fcn.140001a40
mov edx, eax
lea rcx, [rsp + 0x340]
call fcn.140009a80
lea rcx, [0x140020710]
call fcn.14000bf70
dec rax
mov r8d, eax
xor edx, edx
lea rcx, [rsp + 0x2f0]
call fcn.140009a50
mov dword [rsp + 0x38], 0
jmp 0x140005e4b
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xc
jge 0x140005eee
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x2f0]
call fcn.14000da10
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x3c]
mov rdx, rax
lea rcx, [0x140020710]
call fcn.14000bf40
mov rdx, rax
lea rcx, [rsp + 0x2c8]
call fcn.140001930
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x2f8]
call fcn.14000c250
nop
lea rcx, [rsp + 0x2c8]
call fcn.14000c2b0
cmp dword [rsp + 0x38], 0xb
jge 0x140005ee9
lea rdx, [0x14001c5a4]
lea rcx, [rsp + 0x2f8]
call fcn.14000c220
jmp 0x140005e41
lea rax, [rsp + 0x37]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x2f8]
call fcn.14000c120
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x37]
call fcn.1400066c0
mov rcx, rax
call fcn.140009910
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
call fcn.140001120
movzx eax, byte [0x1400206fc]
test eax, eax
jne 0x140005f73
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140001a80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x1400206fc], 1
lea rcx, [rsp + 0x2f8]
call fcn.14000c2b0
nop
lea rcx, [rsp + 0x318]
call fcn.14000c2b0
jmp 0x1400059b0
mov ecx, 0x32
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x140005fc4
lea rcx, [rsp + 0x318]
call fcn.14000c2b0
jmp 0x140005fe1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140005d8b
lea rcx, [rsp + 0x318]
call fcn.14000c2b0
mov rcx, qword [rsp + 0x16d0]
xor rcx, rsp
call fcn.140017da0
add rsp, 0x16e0
pop rdi
ret