Function at 0x140030970
Capabilities:
Log keystrokes via polling

Disassembly:
mov rdx, qword [rcx + 0x10]
jmp 0x14003bb10
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140112718]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
xor r12d, r12d
cmp byte [0x1401149a0], r12b
je 0x14003c4da
xor r15b, r15b
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140114ce4], eax
jle 0x14003bba1
lea rcx, [0x140114ce4]
call fcn.1400c1608
cmp dword [0x140114ce4], 0xffffffff
jne 0x14003bba1
lea rcx, [0x1400c6280]
call fcn.1400c19c4
lea rcx, [0x140114ce4]
call fcn.1400c159c
mov ecx, dword [0x140114a00]
cmp ecx, 1
jne 0x14003bcb3
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003bcb3
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov ecx, dword [str.wtd_a]
mov dword [rbp - 0x29], ecx
movzx edx, word [0x1400fe214]
mov word [rbp - 0x25], dx
movzx ecx, byte [0x1400fe216]
mov byte [rbp - 0x29], 0x47
xor byte [rbp - 0x28], 0x31
xor byte [rbp - 0x27], 0x32
xor byte [rbp - 0x26], 0x33
xor dl, 0x34
mov byte [rbp - 0x25], dl
xor byte [rbp - 0x24], 0x35
xor cl, 0x36
mov byte [rbp - 0x23], cl
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_FindWindowA]
cmp rbx, rax
jne 0x14003bcb3
cmp byte [0x140114a09], r12b
je 0x14003bcb3
mov dword [rbp + 7], Ordinal_27
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb], xmm0
mov dword [rbp + 0x1b], eax
lea rcx, [rbp + 7]
call qword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x14003bc58
mov rax, qword [rbp + 0xf]
add rax, 0xffffffffffff3caf
cmp rax, 0xc34e
jbe 0x14003bcb3
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rbp - 0x19]
mov rdx, qword [0x140114588]
mov rcx, qword [0x140114958]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rbp - 0x19], r12d
je 0x14003bcb3
mov eax, dword [0x140114a10]
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x21]
call fcn.1400265b0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor r9d, r9d
mov edx, 0x202
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
movabs r13, 0x7fffffffffffffff
nop dword [rax]
mov dword [rbp - 0x19], Ordinal_27
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x15], xmm0
mov dword [rbp - 5], eax
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
jne 0x14003bd00
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov ecx, dword [str.wtd_a]
mov dword [rbp - 0x29], ecx
movzx ecx, word [0x1400fe214]
mov word [rbp - 0x25], cx
jmp 0x14003bd33
mov rax, qword [rbp - 0x11]
add rax, 0xffffffffffff3caf
cmp rax, 0xc34e
jbe 0x14003c49e
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov eax, dword [str.wtd_a]
mov dword [rbp - 0x29], eax
movzx eax, word [0x1400fe214]
mov word [rbp - 0x25], ax
movzx ecx, byte [0x1400fe216]
mov byte [rbp - 0x29], 0x47
xor byte [rbp - 0x28], 0x31
xor byte [rbp - 0x27], 0x32
xor byte [rbp - 0x26], 0x33
xor byte [rbp - 0x25], 0x34
xor byte [rbp - 0x24], 0x35
xor cl, 0x36
mov byte [rbp - 0x23], cl
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_FindWindowA]
cmp rbx, rax
jne 0x14003c49e
mov ecx, dword [0x140114a00]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003c49e
cmp byte [0x140114a09], 0
je 0x14003c49e
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rbp - 0x19]
mov rdx, qword [0x140114588]
mov rcx, qword [0x140114958]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rbp - 0x19], 0
je 0x14003c46c
cmp byte [0x140114a08], 0
je 0x14003bfef
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
imul rax, rcx, 0x64
cmp eax, 0x5f
ja 0x14003bdf1
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
imul rax, rcx, 0x64
cmp eax, 0x60
jb 0x14003bde0
shr rax, 0x20
cmp eax, dword [0x140114a04]
jae 0x14003bfef
cmp byte [0x140114619], 0
jne 0x14003bfef
mov esi, r12d
xor dil, dil
cmp byte [0x140114a08], dil
je 0x14003bfef
cmp dword [r14 + 0x58], 0
ja 0x14003bfef
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov ecx, dword [str.wtd_a]
mov dword [rbp - 0x21], ecx
movzx edx, word [0x1400fe214]
mov word [rbp - 0x1d], dx
movzx ecx, byte [0x1400fe216]
mov byte [rbp - 0x21], 0x47
xor byte [rbp - 0x20], 0x31
xor byte [rbp - 0x1f], 0x32
xor byte [rbp - 0x1e], 0x33
xor dl, 0x34
mov byte [rbp - 0x1d], dl
xor byte [rbp - 0x1c], 0x35
xor cl, 0x36
mov byte [rbp - 0x1b], cl
xor edx, edx
lea rcx, [rbp - 0x21]
call qword [sym.imp.USER32.dll_FindWindowA]
cmp rbx, rax
jne 0x14003bfef
mov dword [rbp - 0x19], Ordinal_27
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x15], xmm0
mov dword [rbp - 5], eax
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x14003bebc
mov rax, qword [rbp - 0x11]
add rax, 0xffffffffffff3caf
cmp rax, 0xc34e
jbe 0x14003bfef
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14003beda
imul rax, rax, 0x64
jmp 0x14003bef5
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
movabs rcx, 0x7fffffffffb3b4bf
cmp rax, rcx
jge 0x14003bf10
add rax, 0x4c4b40
mov qword [rbp - 0x19], rax
jmp 0x14003bf14
mov qword [rbp - 0x19], r13
lea rcx, [rbp - 0x19]
call fcn.14002d590
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rbp - 0x19]
mov rdx, qword [0x140114588]
mov rcx, qword [0x140114958]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rbp - 0x19], 0
je 0x14003bf54
test dil, dil
jne 0x14003bf59
mov dil, 1
jmp 0x14003bf59
test dil, dil
je 0x14003bf5c
add esi, 5
cmp esi, 0x12c
ja 0x14003bf70
cmp byte [0x140114a08], 0
jmp 0x14003be1b
mov byte [0x140114619], 1
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400c1680
mov qword [rax], r14
lea rcx, [0x14003ba40]
mov qword [rax + 8], rcx
mov qword [rbp - 0x19], rax
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140031c40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 7], rax
test rax, rax
je 0x14003c48e
cmp dword [rbp + 0xf], 0
je 0x14003c482
movaps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 0x19]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14003c482
xorps xmm0, xmm0
movdqa xmmword [rbp + 7], xmm0
xor sil, sil
cmp byte [0x1401149ee], sil
je 0x14003c0bf
cmp byte [r14 + 0x51], sil
je 0x14003c01a
mov ecx, dword [reloc.WLDAP32.dll_Ordinal_32]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003c0bf
mov edi, r12d
movabs r12, 0x7fffffffffc2f6fe
add edi, 4
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14003c048
imul rax, rax, 0x64
jmp 0x14003c066
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, r12
jg 0x14003c077
add rax, 0x3d0900
mov qword [rbp - 0x19], rax
jmp 0x14003c07b
mov qword [rbp - 0x19], r13
lea rcx, [rbp - 0x19]
call fcn.14002d590
cmp dword [r14 + 0x54], 0
ja 0x14003c090
cmp edi, 0x64
jb 0x14003c027
mov ecx, dword [0x14011276c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov r12d, 0
jns 0x14003c0bf
mov sil, 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movzx ecx, byte [0x140112770]
call qword [sym.imp.USER32.dll_keybd_event]
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rbp - 0x19]
mov rdx, qword [0x140114588]
mov rcx, qword [0x140114958]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rbp - 0x19], 0
je 0x14003c2cf
cmp byte [0x1401149fd], 0
je 0x14003c126
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003c126
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor r9d, r9d
mov edx, 0x205
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14003c12b
test sil, sil
je 0x14003c18f
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14003c149
imul rax, rax, 0x64
jmp 0x14003c167
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
movabs rcx, 0x7ffffffffbd3e27e
cmp rax, rcx
jg 0x14003c182
add rax, 0x42c1d80
mov qword [rbp - 0x19], rax
jmp 0x14003c186
mov qword [rbp - 0x19], r13
lea rcx, [rbp - 0x19]
call fcn.14002d590
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rbp - 0x19]
mov rdx, qword [0x140114588]
mov rcx, qword [0x140114958]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [rbp - 0x19], 0
je 0x14003c2cf
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor r9d, r9d
mov edx, 0x201
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14003c1f9
imul rax, rax, 0x64
jmp 0x14003c217
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
movabs rcx, 0x7ffffffffd9da5fe
cmp rax, rcx
jg 0x14003c232
add rax, 0x2625a00
mov qword [rbp - 0x19], rax
jmp 0x14003c236
mov qword [rbp - 0x19], r13
lea rcx, [rbp - 0x19]
call fcn.14002d590
mov byte [0x1401149ed], 1
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14003c264
imul rax, rax, 0x64
jmp 0x14003c282
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
movabs rcx, 0x7ffffffffeced2fe
cmp rax, rcx
jg 0x14003c29d
add rax, 0x1312d00
mov qword [rbp - 0x19], rax
jmp 0x14003c2a1
mov qword [rbp - 0x19], r13
lea rcx, [rbp - 0x19]
call fcn.14002d590
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor r9d, r9d
mov edx, 0x202
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov byte [0x1401149ed], 0
mov r15b, 1
cmp byte [0x1401149ee], 0
je 0x14003c304
mov ecx, dword [0x140112770]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003c304
test sil, sil
je 0x14003c304
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
movzx ecx, byte [0x140112770]
call qword [sym.imp.USER32.dll_keybd_event]
cmp byte [0x1401149fd], 0
je 0x14003c338
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14003c338
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor r9d, r9d
mov edx, 0x204
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_SendMessageW]
test r15b, r15b
je 0x14003c46c
mov eax, dword [0x140114a10]
mov ecx, dword [0x140114a0c]
cmp eax, 0x28
jb 0x14003c3e4
test ecx, ecx
jne 0x14003c367
mov ecx, r12d
lea edx, [rax - 0x28]
add edx, ecx
jmp 0x14003c45d
lea eax, [rcx - 0x80000000]
mov r8d, 0x80000000
lea edx, [rcx + r8]
cmp ecx, r8d
cmovae edx, eax
cmp edx, 0x7fffffff
jne 0x14003c39d
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov eax, dword [0x140114a10]
lea edx, [rax - 0x28]
add edx, ecx
jmp 0x14003c45d
lea ebx, [rdx - 0x7fffffff]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x14003c3d3
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x14003c3d3
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x14003c3c3
shr rcx, 0x20
mov eax, dword [0x140114a10]
lea edx, [rax - 0x28]
add edx, ecx
jmp 0x14003c45d
test ecx, ecx
jne 0x14003c3ed
mov ecx, r12d
jmp 0x14003c45a
lea eax, [rcx - 0x80000000]
mov r8d, 0x80000000
lea edx, [rcx + r8]
cmp ecx, r8d
cmovae edx, eax
cmp edx, 0x7fffffff
jne 0x14003c415
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
jmp 0x14003c454
lea ebx, [rdx - 0x7fffffff]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x14003c450
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x14003c450
nop dword [rax + rax]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x14003c440
shr rcx, 0x20
mov eax, dword [0x140114a10]
lea edx, [rcx + rax]
mov eax, edx
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
call fcn.1400265b0
mov qword [rbp - 0x19], 1
lea rcx, [rbp - 0x19]
call fcn.1400265b0
jmp 0x14003bcc0
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0xf], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
cmp qword [0x140112788], 0
je 0x14003c4c9
lea rax, [0x140112778]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rax, qword [0x140112778]
mov qword [0x140112788], r12
mov byte [rax], 0
mov qword [rbp - 0x21], 1
lea rcx, [rbp - 0x21]
call fcn.1400265b0
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400c1540
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret