Function at 0x140019800
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x140133080]
xor rax, rsp
mov qword [rbp + 8], rax
xor r14d, r14d
xor r15b, r15b
xor eax, eax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], eax
mov eax, 1
xchg byte [0x140133130], al
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x80], rcx
lea rax, [rbp - 0x28]
mov qword [rbp - 0x78], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400f15a0
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rax], xmm0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140019d30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x18], rax
test rax, rax
je 0x140019c82
movzx eax, byte [0x1401d3200]
test al, al
jne 0x140019c4c
movabs r13, 0x7ffffffffff0bdbf
movabs r12, 0x7fffffffffffffff
movdqa xmm6, xmmword [0x14011adf0]
movss xmm7, dword [0x14011a434]
movzx esi, byte [rsp + 0x30]
mov rdi, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x38]
nop word [rax + rax]
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x140019c32
nop
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140019c76
cmp dword [0x14013318c], 0x7fffffff
je 0x140019c60
lea rcx, [rbp - 0x50]
call fcn.140002e40
mov rcx, qword [rax]
mov qword [0x1401d3208], rcx
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140019c23
cmp byte [0x1401d3279], 0
je 0x140019be1
mov ecx, dword [reloc.WS2_32.dll_accept]
test ecx, ecx
je 0x140019995
sub ecx, 1
je 0x14001997b
cmp ecx, 1
jne 0x1400199b7
mov byte [0x1401d16a8], cl
jmp 0x1400199c6
mov ecx, dword [0x1401d1698]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x1401d16a8], al
jmp 0x1400199be
mov ecx, dword [0x1401d1698]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400199b7
cmp byte [0x1401d16a8], 0
sete al
mov byte [0x1401d16a8], al
jmp 0x1400199be
movzx eax, byte [0x1401d16a8]
test al, al
je 0x140019bbc
test r15b, r15b
jne 0x140019a02
test sil, sil
je 0x1400199ea
test rdi, rdi
je 0x1400199ea
mov rax, qword [0x1401d3280]
test rax, rax
je 0x1400199ea
mov rbx, rdi
mov qword [rbp - 0x30], rax
jmp 0x140019a0b
mov r15b, 1
lea rcx, [rbp - 8]
call fcn.14001ea80
mov rax, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov rbx, qword [rbp]
test rbx, rbx
je 0x140019b8d
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], r12d
lea rcx, [rbx + 0x158]
call fcn.140020620
test rax, rax
jne 0x140019a36
movsd xmm0, qword [rsp + 0x60]
mov dword [rsp + 0x78], r12d
jmp 0x140019a70
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], ecx
lea rcx, [rax + 0x140]
mov r8d, ntohl
lea rdx, [rsp + 0x50]
call fcn.14001afe0
movsd xmm0, qword [rsp + 0x50]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x78], eax
movsd qword [rsp + 0x70], xmm0
movss xmm0, dword [rsp + 0x74]
comiss xmm0, xmm7
jbe 0x140019b8d
cmp byte [0x1401d326b], r12b
je 0x140019b0a
lea rcx, [rbx + 0x158]
call fcn.140020620
test rax, rax
jne 0x140019aaa
xorps xmm2, xmm2
xorps xmm1, xmm1
xorps xmm0, xmm0
jmp 0x140019ade
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], ecx
lea rcx, [rax + 0x14c]
mov r8d, ntohl
lea rdx, [rsp + 0x40]
call fcn.14001afe0
movss xmm2, dword [rsp + 0x40]
movss xmm1, dword [rsp + 0x44]
movss xmm0, dword [rsp + 0x48]
andps xmm2, xmm6
movss xmm3, dword [0x1401332a4]
comiss xmm2, xmm3
ja 0x140019b02
andps xmm1, xmm6
comiss xmm1, xmm3
ja 0x140019b02
andps xmm0, xmm6
comiss xmm0, xmm3
ja 0x140019b02
xor al, al
jmp 0x140019b04
mov al, 1
mov byte [0x1401d327f], al
mov rax, qword [0x1401d3280]
test rax, rax
je 0x140019b59
cmp byte [0x1401d327c], r12b
je 0x140019b59
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov r8d, 8
lea rdx, str.Humanoid
lea rcx, [rbp - 0x70]
call fcn.1400045f0
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.14001f440
test r15b, r15b
je 0x140019b7a
movsd xmm0, qword [rbp - 0x28]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x78], eax
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140018900
mov rdi, rbx
mov rax, qword [rbp - 0x30]
mov qword [0x1401d3280], rax
mov sil, 1
jmp 0x140019ba1
mov qword [0x1401d3280], r14
mov qword [rbp - 0x30], r14
mov rbx, r14
xor sil, sil
xor r15b, r15b
lea rcx, [rsp + 0x38]
call fcn.140002e40
mov rax, qword [rsp + 0x38]
movabs r12, 0x7fffffffffffffff
jmp 0x140019bf4
mov qword [0x1401d3280], r14
mov qword [rbp - 0x30], r14
mov rbx, r14
xor sil, sil
xor r15b, r15b
lea rcx, [rsp + 0x38]
call fcn.140002e40
mov rax, qword [rsp + 0x38]
jmp 0x140019bf4
lea rcx, [rsp + 0x38]
call fcn.140002e40
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x38], rax
cmp rax, r13
je 0x140019c16
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x140019c16
add rax, 0xf4240
mov qword [rbp - 0x38], rax
jmp 0x140019c1a
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x38]
call fcn.1400116d0
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
jne 0x140019900
mov eax, 1
xchg byte [0x140133131], al
movzx ecx, byte [0x1401d3200]
test cl, cl
je 0x1400198f0
xchg byte [0x140133130], r14b
cmp dword [rbp - 0x10], 0
je 0x140019c92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [0x14013318c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x10], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400f1580
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret