Function at 0x14000a670
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 [0x140020008]
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.140005c90
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.140005c90
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.140005c90
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.140005c90
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x198], xmm0
mov r9, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14000a7bc
mov r9, qword [r12]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], 0
jne 0x14000a7c3
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x14000a7fa
mov rdi, rsi
cmp rax, 0x10
jb 0x14000a7e2
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 0x14000a806
mov rdx, rbx
mov rcx, rsi
call fcn.140006560
nop
mov ecx, 0x1c8
call fcn.1400143a0
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.140005c90
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.14000b2c0
mov byte [rbx + 8], al
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000a8e6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a8e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a8e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
nop
mov qword [rsi + 0x20], rbx
cmp byte [rbx + 8], 0
je 0x14000a941
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 0x14000a941
cmp dword [rsp + 0x228], eax
jne 0x14000a941
mov al, 1
jmp 0x14000a943
xor al, al
mov byte [rsi + 0x28], al
movabs r13, 0x7fffffffffffffff
test al, al
jne 0x14000aa13
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x14000b1af
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000a979
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.1400097e0
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 0x14000a9fa
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a9f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a9f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
mov rcx, qword [rsi + 0x20]
call fcn.14000b2c0
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 0x14000b0d4
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 0x14000aa87
lea rcx, [rsp + 0x60]
call fcn.140005c90
or r15d, 0x40
lea r9, [rsp + 0x24d]
mov r8d, r14d
test r14d, r14d
jns 0x14000aaf0
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 0x14000aab1
dec r9
mov byte [r9], 0x2d
jmp 0x14000ab1a
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 0x14000aaf0
lea r8, [rsp + 0x24d]
mov rdx, r9
lea rcx, [rsp + 0x120]
call fcn.14000f030
nop
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x14000b1b5
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14000ab54
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.1400097e0
nop
mov r8d, 3
lea rdx, [0x14001801c]
lea rcx, [rsp + 0xe0]
call fcn.1400049d0
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.14000ee10
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_WSAStartup
lea rcx, [rsp + 0xc0]
call fcn.1400049d0
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, [0x14001801c]
lea rcx, [rsp + 0x40]
call fcn.1400049d0
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.1400049d0
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.14000ee10
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 0x14000ad4b
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ad46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ad46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], send
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0x158]
cmp rdx, 0x10
jb 0x14000adb2
inc rdx
mov rcx, qword [rsp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000adac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000adac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x14000adf8
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000adf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000adf3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], send
mov byte [rsp + 0x80], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000ae58
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ae53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ae53
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x14000aeb5
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000aeb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000aeb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], send
mov byte [rsp + 0xc0], 0
mov rdx, qword [rsp + 0x118]
cmp rdx, 0x10
jb 0x14000af1c
inc rdx
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000af16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000af16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
nop
mov rdx, qword [rsp + 0xf8]
cmp rdx, 0x10
jb 0x14000af62
inc rdx
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000af5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000af5d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
mov qword [rsp + 0xf0], 0
mov qword [rsp + send8], 0xf
mov byte [rsp + 0xe0], 0
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x14000afc9
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000afc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000afc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14000b009
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b004
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b004
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp rbx, 0x989680
jl 0x14000aa20
mov rdi, qword [rsi + 0x20]
mov rcx, rdi
call fcn.14000b360
test al, al
je 0x14000aa13
mov rbx, qword [rdi + 0x1c0]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
add rbx, 0xf4240
cmp rax, rbx
jl 0x14000aa13
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [rdi + 0x1c0], rax
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.14000b650
mov r8, rax
lea rdx, [rsp + 0x120]
mov rcx, rdi
call fcn.14000b3f0
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x14000aa13
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b0ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b0ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
jmp 0x14000aa13
mov rdx, qword [rsp + 0x190]
cmp rdx, 0x10
jb 0x14000b11b
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b115
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b115
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400143dc
nop
lea rcx, [rsp + 0x1b0]
call fcn.14000b1c0
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14000b161
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x14000b15c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000b1a8
mov rcx, r8
call fcn.1400143dc
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.140014380
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