Function at 0x140005320
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 [0x140018010]
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], recv
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.140003fe0
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.140003fe0
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.140003fe0
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.140003fe0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x198], xmm0
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14000546c
mov rdx, qword [r12]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140005473
mov rcx, rsi
call fcn.140003a30
nop
mov ecx, 0x1c8
call fcn.14000eae0
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.140003fe0
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.140005f40
mov byte [rbx + 8], al
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140005566
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005560
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005560
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
nop
mov qword [rsi + 0x20], rbx
cmp byte [rbx + 8], 0
je 0x1400055c1
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 0x1400055c1
cmp dword [rsp + 0x228], eax
jne 0x1400055c1
mov al, 1
jmp 0x1400055c3
xor al, al
mov byte [rsi + 0x28], al
movabs r13, 0x7fffffffffffffff
test al, al
jne 0x140005693
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x140005e2f
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400055f9
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.140004430
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 0x14000567a
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005675
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005675
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
mov rcx, qword [rsi + 0x20]
call fcn.140005f40
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 0x140005d54
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 0x140005707
lea rcx, [rsp + 0x60]
call fcn.140003fe0
or r15d, 0x40
lea r9, [rsp + 0x24d]
mov r8d, r14d
test r14d, r14d
jns 0x140005770
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 0x140005731
dec r9
mov byte [r9], 0x2d
jmp 0x14000579a
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 0x140005770
lea r8, [rsp + 0x24d]
mov rdx, r9
lea rcx, [rsp + 0x120]
call fcn.14000a6a0
nop
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x140005e35
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400057d4
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.140004430
nop
mov r8d, 3
lea rdx, [0x140011934]
lea rcx, [rsp + 0xe0]
call fcn.140003870
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], recv
mov byte [rax], 0
lea r9, [rsp + 0x120]
lea r8, [rsp + 0x100]
lea rcx, [rsp + 0xc0]
call fcn.14000a460
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_WSAStartup
lea rcx, [rsp + 0xc0]
call fcn.140003870
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], recv
mov byte [rax], cl
lea r8d, [rcx + 3]
lea rdx, [0x140011934]
lea rcx, [rsp + 0x40]
call fcn.140003870
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], recv
mov byte [rax], cl
lea r8d, [rcx + 6]
lea rdx, str.hello
lea rcx, [rsp + 0x80]
call fcn.140003870
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], recv
mov byte [rax], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x140]
lea rcx, [rsp + 0xa0]
call fcn.14000a460
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 0x1400059cb
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400059c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], recv
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0x158]
cmp rdx, 0x10
jb 0x140005a32
inc rdx
mov rcx, qword [rsp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x140005a78
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], recv
mov byte [rsp + 0x80], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140005ad8
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ad3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ad3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], recv
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x140005b35
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], recv
mov byte [rsp + 0xc0], 0
mov rdx, qword [rsp + 0x118]
cmp rdx, 0x10
jb 0x140005b9c
inc rdx
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
nop
mov rdx, qword [rsp + 0xf8]
cmp rdx, 0x10
jb 0x140005be2
inc rdx
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bdd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
mov qword [rsp + 0xf0], 0
mov qword [rsp + recv8], 0xf
mov byte [rsp + 0xe0], 0
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x140005c49
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140005c89
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp rbx, 0x989680
jl 0x1400056a0
mov rdi, qword [rsi + 0x20]
mov rcx, rdi
call fcn.140005fe0
test al, al
je 0x140005693
mov rbx, qword [rdi + 0x1c0]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
add rbx, 0xf4240
cmp rax, rbx
jl 0x140005693
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [rdi + 0x1c0], rax
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.1400062d0
mov r8, rax
lea rdx, [rsp + 0x120]
mov rcx, rdi
call fcn.140006070
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x140005693
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
jmp 0x140005693
mov rdx, qword [rsp + 0x190]
cmp rdx, 0x10
jb 0x140005d9b
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000eb1c
nop
lea rcx, [rsp + 0x1b0]
call fcn.140005e40
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x140005de1
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140005ddc
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005e28
mov rcx, r8
call fcn.14000eb1c
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x18], recv
mov byte [r12], 0
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000eac0
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