Function at 0x140019520
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 [0x14012a080]
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 [0x14012a130], 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.1400eacb0
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, [0x140019ab0]
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 0x1400199a2
movzx eax, byte [0x1401ca230]
test al, al
jne 0x14001996c
movabs r13, 0x7ffffffffff0bdbf
movabs r12, 0x7fffffffffffffff
movss xmm6, dword [0x140112d80]
movss xmm7, dword [0x14011250c]
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 0x140019952
nop
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140019996
cmp dword [0x14012a18c], 0x7fffffff
je 0x140019980
lea rcx, [rbp - 0x50]
call fcn.140018190
mov rcx, qword [rax]
mov qword [0x1401ca238], rcx
lea rcx, reloc.WS2_32.dll_bind
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp byte [0x1401ca2b7], 0
je 0x140019943
cmp byte [0x1401ca2ab], 0
je 0x140019901
mov ecx, dword [reloc.WS2_32.dll_accept]
test ecx, ecx
je 0x1400196b5
sub ecx, 1
je 0x14001969b
cmp ecx, 1
jne 0x1400196d7
mov byte [0x1401c8718], cl
jmp 0x1400196e6
mov ecx, dword [0x1401c8708]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x1401c8718], al
jmp 0x1400196de
mov ecx, dword [0x1401c8708]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400196d7
cmp byte [0x1401c8718], 0
sete al
mov byte [0x1401c8718], al
jmp 0x1400196de
movzx eax, byte [0x1401c8718]
test al, al
je 0x1400198dc
test r15b, r15b
jne 0x140019722
test sil, sil
je 0x14001970a
test rdi, rdi
je 0x14001970a
mov rax, qword [0x1401ca2f0]
test rax, rax
je 0x14001970a
mov rbx, rdi
mov qword [rbp - 0x30], rax
jmp 0x14001972b
mov r15b, 1
lea rcx, [rbp - 8]
call fcn.14001c870
mov rax, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov rbx, qword [rbp]
test rbx, rbx
je 0x1400198ad
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], r12d
lea rcx, [rbx + 0x158]
call fcn.14001e630
test rax, rax
jne 0x140019756
movsd xmm0, qword [rsp + 0x60]
mov dword [rsp + 0x78], r12d
jmp 0x140019790
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], ecx
lea rcx, [rax + 0x140]
mov r8d, listen
lea rdx, [rsp + 0x50]
call fcn.140019fe0
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 0x1400198ad
cmp byte [0x1401ca2a9], r12b
je 0x14001982a
lea rcx, [rbx + 0x158]
call fcn.14001e630
test rax, rax
jne 0x1400197ca
xorps xmm2, xmm2
xorps xmm1, xmm1
xorps xmm0, xmm0
jmp 0x1400197fe
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], ecx
lea rcx, [rax + 0x14c]
mov r8d, listen
lea rdx, [rsp + 0x40]
call fcn.140019fe0
movss xmm2, dword [rsp + 0x40]
movss xmm1, dword [rsp + 0x44]
movss xmm0, dword [rsp + 0x48]
andps xmm2, xmm6
movss xmm3, dword [0x14012a2ac]
comiss xmm2, xmm3
ja 0x140019822
andps xmm1, xmm6
comiss xmm1, xmm3
ja 0x140019822
andps xmm0, xmm6
comiss xmm0, xmm3
ja 0x140019822
xor al, al
jmp 0x140019824
mov al, 1
mov byte [0x1401ca2dc], al
mov rax, qword [0x1401ca2f0]
test rax, rax
je 0x140019879
cmp byte [0x1401ca2b6], r12b
je 0x140019879
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.14000a570
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.14001d4c0
test r15b, r15b
je 0x14001989a
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.140018620
mov rdi, rbx
mov rax, qword [rbp - 0x30]
mov qword [0x1401ca2f0], rax
mov sil, 1
jmp 0x1400198c1
mov qword [0x1401ca2f0], r14
mov qword [rbp - 0x30], r14
mov rbx, r14
xor sil, sil
xor r15b, r15b
lea rcx, [rsp + 0x38]
call fcn.140018190
mov rax, qword [rsp + 0x38]
movabs r12, 0x7fffffffffffffff
jmp 0x140019914
mov qword [0x1401ca2f0], r14
mov qword [rbp - 0x30], r14
mov rbx, r14
xor sil, sil
xor r15b, r15b
lea rcx, [rsp + 0x38]
call fcn.140018190
mov rax, qword [rsp + 0x38]
jmp 0x140019914
lea rcx, [rsp + 0x38]
call fcn.140018190
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x38], rax
cmp rax, r13
je 0x140019936
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x140019936
add rax, 0xf4240
mov qword [rbp - 0x38], rax
jmp 0x14001993a
mov qword [rbp - 0x38], r12
lea rcx, [rbp - 0x38]
call fcn.140018300
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
jne 0x140019620
mov eax, 1
xchg byte [0x14012a131], al
movzx ecx, byte [0x1401ca230]
test cl, cl
je 0x140019610
xchg byte [0x14012a130], r14b
cmp dword [rbp - 0x10], 0
je 0x1400199b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [0x14012a18c], 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.1400eac90
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