Function at 0x14000a8d0
Capabilities:
Get hostname
Set console window title

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rsi, rcx
mov qword [r11 - 0x128], rcx
mov qword [r11 - 0x120], rdx
xor r14d, r14d
mov r15d, r14d
mov dword [rsp + 0x170], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], send
mov byte [rcx], r14b
mov byte [rcx + 0x28], r14b
movups xmmword [rsp + 0x1b0], xmm0
mov qword [r11 - 0xc8], r14
mov qword [r11 - 0xc0], r14
lea r8d, [r14 + 7]
lea rdx, str.Unknown
lea rcx, [r11 - 0xd8]
call fcn.140005de0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x1d0], xmm0
mov qword [rsp + 0x1e0], r14
mov qword [rsp + 0x1e8], r14
lea r8d, [r14 + 7]
lea rdx, str.Unknown
lea rcx, [rsp + 0x1d0]
call fcn.140005de0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x1f0], xmm0
mov qword [rsp + 0x200], r14
mov qword [rsp + 0x208], r14
lea r8d, [r14 + 7]
lea rdx, str.Unknown
lea rcx, [rsp + 0x1f0]
call fcn.140005de0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x178], xmm0
mov qword [rsp + 0x188], r14
mov qword [rsp + 0x190], r14
lea r8d, [r14 + 4]
lea rdx, str.none
lea rcx, [rsp + 0x178]
call fcn.140005de0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x198], xmm0
mov r9, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14000aa1c
mov r9, qword [r12]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], 0
jne 0x14000aa23
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x14000aa5a
mov rdi, rsi
cmp rax, 0x10
jb 0x14000aa42
mov rdi, qword [rsi]
mov qword [rsi + 0x10], rbx
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14000aa66
mov rdx, rbx
mov rcx, rsi
call fcn.1400066b0
nop
mov ecx, 0x1c8
call fcn.140013fa0
mov rbx, rax
mov qword [rsp + 0x170], rax
xor edx, edx
mov r8d, 0x1c8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov r8d, recv
lea rdx, str.192.168.1.177
lea rcx, [rsp + 0x40]
call fcn.140005de0
mov byte [rbx + 8], 0
mov qword [rbx + 0x1c0], r14
mov qword [rbx], rsi
mov word [rbx + 0x1b0], 2
mov ecx, 0x1f40
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x1b2], ax
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbx + 0x1b4], eax
mov rcx, rbx
call fcn.14000b520
mov byte [rbx + 8], al
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000ab46
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ab40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ab40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
nop
mov qword [rsi + 0x20], rbx
cmp byte [rbx + 8], 0
je 0x14000aba1
mov dword [rsp + 0x228], r14d
mov dword [rsp + 0x170], 4
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x228]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000aba1
cmp dword [rsp + 0x228], eax
jne 0x14000aba1
mov al, 1
jmp 0x14000aba3
xor al, al
mov byte [rsi + 0x28], al
movabs r13, 0x7fffffffffffffff
test al, al
jne 0x14000ac73
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x14000b40f
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000abd9
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str.Client_
lea rcx, [rsp + 0x60]
call fcn.140009a40
mov r15d, 0x400
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000ac5a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ac55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ac55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
mov rcx, qword [rsi + 0x20]
call fcn.14000b520
movzx edx, al
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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___bool____ptr64]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rdi, rax
nop dword [rax]
cmp byte [rsi + 0x28], 0
je 0x14000b334
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rbx, rax
sub rbx, rdi
mov dword [rsp + 0x170], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x228]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rdx, [rsp + 0x228]
test eax, eax
lea rax, str.Failed_to_get_system_name.
cmove rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], al
jne 0x14000ace7
lea rcx, [rsp + 0x60]
call fcn.140005de0
or r15d, 0x40
lea r9, [rsp + 0x24d]
mov r8d, r14d
test r14d, r14d
jns 0x14000ad50
neg r8d
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x14000ad11
dec r9
mov byte [r9], 0x2d
jmp 0x14000ad7a
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x14000ad50
lea r8, [rsp + 0x24d]
mov rdx, r9
lea rcx, [rsp + 0x120]
call fcn.14000f290
nop
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x14000b415
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000adb4
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, str.Client_
lea rcx, [rsp + 0xe0]
call fcn.140009a40
nop
mov r8d, 3
lea rdx, [0x14001707c]
lea rcx, [rsp + 0xe0]
call fcn.140004e00
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x100], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x110], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], send
mov byte [rax], 0
lea r9, [rsp + 0x120]
lea r8, [rsp + 0x100]
lea rcx, [rsp + 0xc0]
call fcn.14000f070
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_WSAStartup
lea rcx, [rsp + 0xc0]
call fcn.140004e00
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], send
mov byte [rax], cl
lea r8d, [rcx + 3]
lea rdx, [0x14001707c]
lea rcx, [rsp + 0x40]
call fcn.140004e00
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
xor ecx, ecx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x90], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], send
mov byte [rax], cl
lea r8d, [rcx + 6]
lea rdx, str.hello
lea rcx, [rsp + 0x80]
call fcn.140004e00
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x140], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x150], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], send
mov byte [rax], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x140]
lea rcx, [rsp + 0xa0]
call fcn.14000f070
or r15d, 0x3bf
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x14000afab
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000afa6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000afa6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], send
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0x158]
cmp rdx, 0x10
jb 0x14000b012
inc rdx
mov rcx, qword [rsp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b00c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b00c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x14000b058
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b053
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b053
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], send
mov byte [rsp + 0x80], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000b0b8
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b0b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b0b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x14000b115
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b110
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b110
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], send
mov byte [rsp + 0xc0], 0
mov rdx, qword [rsp + 0x118]
cmp rdx, 0x10
jb 0x14000b17c
inc rdx
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b176
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b176
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
nop
mov rdx, qword [rsp + 0xf8]
cmp rdx, 0x10
jb 0x14000b1c2
inc rdx
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b1bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b1bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
mov qword [rsp + 0xf0], 0
mov qword [rsp + send8], 0xf
mov byte [rsp + 0xe0], 0
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x14000b229
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b223
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b223
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000b269
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b264
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b264
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp rbx, 0x989680
jl 0x14000ac80
mov rdi, qword [rsi + 0x20]
mov rcx, rdi
call fcn.14000b5c0
test al, al
je 0x14000ac73
mov rbx, qword [rdi + 0x1c0]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
add rbx, 0xf4240
cmp rax, rbx
jl 0x14000ac73
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [rdi + 0x1c0], rax
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.14000b8b0
mov r8, rax
lea rdx, [rsp + 0x120]
mov rcx, rdi
call fcn.14000b650
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x14000ac73
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b32a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b32a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
jmp 0x14000ac73
mov rdx, qword [rsp + 0x190]
cmp rdx, 0x10
jb 0x14000b37b
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b375
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b375
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013fdc
nop
lea rcx, [rsp + 0x1b0]
call fcn.14000b420
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14000b3c1
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x14000b3bc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000b408
mov rcx, r8
call fcn.140013fdc
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x18], send
mov byte [r12], 0
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140013f80
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400011b0
nop
call fcn.1400011b0
int3