Function at 0x1400ad170
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x3a8]
sub rsp, 0x490
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140182f80]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.14000d810
test eax, eax
jle 0x1400ad474
lea r14, [0x140000000]
xor esi, esi
nop dword [rax + rax]
mov ecx, dword [rsp + 0x68]
sub ecx, 1
je 0x1400ad4a5
sub ecx, 1
je 0x1400ad451
cmp ecx, 1
je 0x1400ad1fc
lea rcx, str._SERVER_:_UNHANDLED_n
call fcn.14006b3c0
jmp 0x1400ad4ba
mov rdx, qword [rbp - 0x80]
cmp qword [rdx + 0x18], 3
jbe 0x1400ad41a
mov rax, qword [rdx + 0x10]
movzx r8d, byte [rax]
mov ecx, r8d
sub ecx, 2
je 0x1400ad3ca
sub ecx, 1
je 0x1400ad37b
sub ecx, 1
je 0x1400ad244
sub ecx, 2
je 0x1400ad474
cmp ecx, 2
je 0x1400ad474
jmp 0x1400ad41d
mov rcx, rdx
call fcn.1400b47d0
mov rdi, rax
mov rcx, qword [rbp - 0x80]
call fcn.1400b4820
test rdi, rdi
je case.0x1400ad28a.6
test rax, rax
je case.0x1400ad28a.6
movzx ecx, byte [rdi]
cmp ecx, 0x1a
ja case.0x1400ad28a.6
movzx ecx, byte [r14 + rcx + 0xadbf4]
mov edx, dword [r14 + rcx*4 + 0xadbd8]
add rdx, r14
jmp rdx
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x1400ad28a.6
cmp byte [reloc.WS2_32.dll_accept], sil
je case.0x1400ad28a.6
mov rcx, qword [rbp - 0x80]
call fcn.14000c2b0
jmp 0x1400ad474
mov rdx, rdi
mov rcx, rax
call fcn.1400586d0
test al, al
jne 0x1400ad2ad
jmp case.0x1400ad28a.6
mov al, 1
movsxd rdx, dword [rdi + 0x14]
cmp edx, 0x704
je 0x1400ad2f1
cmp edx, 0xf2
je 0x1400ad2f1
movzx eax, al
cmp edx, 0x1c14
cmovne eax, esi
cmp byte [0x140186a05], sil
je 0x1400ad302
test al, al
je 0x1400ad4d4
mov rax, qword [0x140189410]
mov rcx, qword [rax + 0x20]
mov r8, qword [rax + 0x28]
cmp rcx, r8
je 0x1400ad474
nop word [rax + rax]
movzx eax, word [rcx]
cmp eax, edx
je 0x1400ad335
add rcx, 4
cmp rcx, r8
jne 0x1400ad320
jmp 0x1400ad474
cmp byte [rcx + 2], sil
je 0x1400ad474
mov rcx, rdi
call fcn.14006a1e0
test al, al
jne 0x1400ad2ad
jmp case.0x1400ad28a.6
mov rcx, rdi
call fcn.14004f770
test al, al
jne 0x1400ad2ad
jmp case.0x1400ad28a.6
cmp byte [0x140187bf9], sil
jne 0x1400ad474
jmp case.0x1400ad28a.6
mov rcx, rdx
call fcn.1400b4870
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1400ad3a0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140011c40
lea rcx, [rsp + 0x38]
call fcn.14002c070
test al, al
jne 0x1400ad2ad
jmp case.0x1400ad28a.6
mov rcx, rdx
call fcn.1400b4870
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1400ad3f0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140011c40
lea rcx, [rsp + 0x38]
call fcn.14002c9d0
test al, al
jne 0x1400ad2ad
jmp case.0x1400ad28a.6
mov r8d, esi
mov edx, r8d
lea rcx, str._SERVER_:_Got_unknown_packet_of_type__d._n
call fcn.14006b3c0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ad474
cmp qword [rbx + 8], rsi
je 0x1400ad474
mov r8, qword [rbp - 0x80]
xor edx, edx
call fcn.14000d330
mov rcx, qword [rbx + 8]
call fcn.14000d7e0
jmp 0x1400ad4ba
cmp byte [0x140187bf9], sil
jne 0x1400ad474
cmp byte [0x140187bf2], sil
je 0x1400ad4ba
xor edx, edx
mov rcx, rbx
call fcn.1400ab530
mov byte [0x140187bf2], sil
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14011bc00
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x18], rax
mov rcx, rbx
call fcn.1400ab450
test al, al
je 0x1400ad474
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rbx]
call fcn.14000d810
test eax, eax
jg 0x1400ad1d0
jmp 0x1400ad474
mov rax, qword [0x140189410]
mov qword [rsp + 0x30], rax
imul rdx, rdx, 0x220
add rdx, qword [0x140186b48]
lea rcx, [rbp - 0x70]
call fcn.14001c6b0
nop
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rsi, qword [rbp - 0x40]
mov r14, qword [rbp - 0x30]
cmp r14, 9
jb 0x1400ad577
lea r15, [r14 + rsi]
lea r8, [r15 - 8]
sub r8, rsi
mov edx, 0x41
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400ad577
mov r8d, 9
lea rdx, str.Ancestral
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400ad56a
inc rbx
lea r8, [r15 - 8]
sub r8, rbx
mov edx, 0x41
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400ad530
jmp 0x1400ad577
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400ad691
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rsi, qword [rbp - 0x40]
cmp r14, 7
jb 0x1400ad5f7
lea r15, [r14 + rsi]
lea r8, [r15 - 6]
sub r8, rsi
mov edx, 0x53
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400ad5f7
nop dword [rax + rax]
mov r8d, 7
lea rdx, str.Samille
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400ad5ea
inc rbx
lea r8, [r15 - 6]
sub r8, rbx
mov edx, 0x53
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400ad5b0
jmp 0x1400ad5f7
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400ad691
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rsi, qword [rbp - 0x40]
cmp r14, 7
jb 0x1400ad66b
lea r8, [r14 - 6]
add r8, rsi
sub r8, rsi
mov edx, 0x43
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400ad66b
nop word [rax + rax]
mov r8d, 7
lea rdx, str.Chakram
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400ad688
inc rbx
lea r8, [r14 - 6]
add r8, rsi
sub r8, rbx
mov edx, 0x43
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400ad630
movsx rax, byte [rbp + 0x18]
cmp eax, 8
ja case.0x1400ad686.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xadc10]
add rcx, rdx
jmp rcx
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x1400ad66b
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a2c]
jp 0x1400ad6ba
jne 0x1400ad6ba
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a2c], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a2c], xmm0
jmp 0x1400ad8ce
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a08]
jp 0x1400ad8ba
jne 0x1400ad8ba
xorps xmm0, xmm0
jmp 0x1400ad8c2
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a0c]
jp 0x1400ad721
jne 0x1400ad721
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a0c], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a0c], xmm0
jmp 0x1400ad8ce
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a10]
jp 0x1400ad763
jne 0x1400ad763
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a10], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a10], xmm0
jmp 0x1400ad8ce
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a14]
jp 0x1400ad7a5
jne 0x1400ad7a5
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a14], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a14], xmm0
jmp 0x1400ad8ce
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a18]
jp 0x1400ad7e7
jne 0x1400ad7e7
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a18], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a18], xmm0
jmp 0x1400ad8ce
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a1c]
jp 0x1400ad829
jne 0x1400ad829
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a1c], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a1c], xmm0
jmp 0x1400ad8ce
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a20]
jp 0x1400ad868
jne 0x1400ad868
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a20], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a20], xmm0
jmp 0x1400ad8ce
mov eax, dword [rbp - 0x48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140186a28]
jp 0x1400ad8a4
jne 0x1400ad8a4
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a28], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a28], xmm0
jmp 0x1400ad8ce
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140186a08], xmm0
mov ecx, dword [rdi + 0x14]
call fcn.14004a580
test eax, eax
je 0x1400ad8e8
mov ecx, dword [rdi + 0x14]
call fcn.14004a580
mov dword [0x140180138], eax
xorps xmm6, xmm6
movss xmm0, dword [0x140186a20]
ucomiss xmm0, xmm6
jp 0x1400ad903
jne 0x1400ad903
movzx eax, byte [0x140186a58]
jmp 0x1400ad90b
mov al, 1
mov byte [0x140186a58], al
mov r14, qword [rsp + 0x30]
mov edi, dword [r14 + 0x5fd0]
movzx ecx, al
add ecx, ecx
movzx eax, byte [0x140187bfa]
or ecx, eax
movzx ebx, byte [0x140186a61]
shl ebx, 0x18
or ebx, ecx
mov dword [rsp + 0x58], 0x447a0000
mov dword [rsp + 0x5c], 0x43c80000
movss xmm0, dword [0x140180104]
movss dword [rsp + 0x60], xmm0
movss xmm1, dword [0x140180108]
movss dword [rsp + 0x30], xmm1
mov ecx, gethostname
call fcn.14011bd8c
mov rsi, rax
xor ecx, ecx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ecx
mov dword [rax + 0x28], ecx
mov dword [rax + 0x34], ecx
mov dword [rax], reloc.WS2_32.dll_sendto
mov dword [rax + 4], edi
mov dword [rax + 0x14], ebx
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x18], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsi + 0x1c], eax
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x24], eax
mov qword [rsi + 0x2c], rcx
movzx eax, word [0x140180138]
mov word [rsi + 1], ax
mov word [rsi + 2], 0x8080
mov dword [rsp + 0x30], 0x43480000
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x10], eax
mov rax, qword [0x140189410]
mov rbx, qword [rax + 0x18]
test rbx, rbx
je 0x1400ada1d
lea edx, [rcx + 0x3d]
lea r8d, [rcx + 1]
call fcn.14000c200
mov rcx, qword [rax + 0x10]
mov dword [rcx], 4
mov rcx, qword [rax + 0x10]
movups xmm0, xmmword [rsi]
movups xmmword [rcx + 4], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rcx + 0x14], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rcx + 0x24], xmm0
movsd xmm1, qword [rsi + 0x30]
movsd qword [rcx + 0x34], xmm1
mov r8, rax
xor edx, edx
mov rcx, rbx
call fcn.14000d330
mov edx, 1
mov rcx, rsi
call fcn.14011bae4
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.OnSetClothing
lea rcx, [rsp + 0x38]
call fcn.140011c40
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x1b0]
call fcn.14001d480
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400adaa5
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400adaa0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400adaa0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011bae4
movss xmm1, dword [0x140186a0c]
movss xmm2, dword [0x140186a10]
mov dword [rbp + 0x1f0], 4
movss xmm0, dword [0x140186a08]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x200], xmm0
movss dword [rbp + 0x208], xmm2
movss xmm1, dword [0x140186a18]
movss xmm2, dword [0x140186a1c]
mov dword [rbp + 0x230], 4
movss xmm0, dword [0x140186a14]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x240], xmm0
movss dword [rbp + 0x248], xmm2
movss xmm1, dword [0x140186a24]
movss xmm2, dword [0x140186a28]
mov dword [rbp + 0x270], 4
movss xmm0, dword [0x140186a20]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x280], xmm0
movss dword [rbp + 0x288], xmm2
mov dword [rbp + 0x2b0], 9
mov dword [rbp + 0x2c0], 0x647296ff
movss xmm1, dword [0x14014b9c8]
mov dword [rbp + 0x2f0], 4
movss xmm0, dword [0x140186a2c]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x300], xmm0
movss dword [rbp + 0x308], xmm6
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [r14 + 0x5fd0]
lea r8, [rbp + 0x1b0]
mov dl, 1
mov rcx, qword [0x140189410]
call fcn.1400aeea0
nop
lea r9, [fcn.14001eef0]
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp + 0x1b0]
call fcn.14011bcbc
nop
lea rcx, [rbp - 0x70]
call fcn.14001e820
jmp 0x1400ad474