Function at 0x140036170
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 [0x140071010]
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.140001870
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.140001870
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.140001870
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.140001870
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x198], xmm0
mov r9, r12
cmp qword [r12 + 0x18], 0x10
jb 0x1400362bc
mov r9, qword [r12]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], 0
jne 0x1400362c3
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x1400362fa
mov rdi, rsi
cmp rax, 0x10
jb 0x1400362e2
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 0x140036306
mov rdx, rbx
mov rcx, rsi
call fcn.140001df0
nop
mov ecx, 0x1c8
call fcn.14003e130
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.140001870
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.140036dc0
mov byte [rbx + 8], al
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400363e6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400363e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400363e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
nop
mov qword [rsi + 0x20], rbx
cmp byte [rbx + 8], 0
je 0x140036441
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 0x140036441
cmp dword [rsp + 0x228], eax
jne 0x140036441
mov al, 1
jmp 0x140036443
xor al, al
mov byte [rsi + 0x28], al
movabs r13, 0x7fffffffffffffff
test al, al
jne 0x140036513
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x140036caf
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140036479
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.1400352d0
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 0x1400364fa
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400364f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400364f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov rcx, qword [rsi + 0x20]
call fcn.140036dc0
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 0x140036bd4
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 0x140036587
lea rcx, [rsp + 0x60]
call fcn.140001870
or r15d, 0x40
lea r9, [rsp + 0x24d]
mov r8d, r14d
test r14d, r14d
jns 0x1400365f0
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 0x1400365b1
dec r9
mov byte [r9], 0x2d
jmp 0x14003661a
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 0x1400365f0
lea r8, [rsp + 0x24d]
mov rdx, r9
lea rcx, [rsp + 0x120]
call fcn.14003aa80
nop
mov rcx, qword [rsi + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 9
jb 0x140036cb5
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140036654
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.1400352d0
nop
mov r8d, 3
lea rdx, [0x140067ad4]
lea rcx, [rsp + 0xe0]
call fcn.1400014f0
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.14003a860
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_WSAStartup
lea rcx, [rsp + 0xc0]
call fcn.1400014f0
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, [0x140067ad4]
lea rcx, [rsp + 0x40]
call fcn.1400014f0
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.1400014f0
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.14003a860
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 0x14003684b
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036846
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036846
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], send
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0x158]
cmp rdx, 0x10
jb 0x1400368b2
inc rdx
mov rcx, qword [rsp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400368ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400368ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
nop
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x1400368f8
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400368f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400368f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], send
mov byte [rsp + 0x80], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140036958
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036953
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036953
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], send
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x1400369b5
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400369b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400369b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], send
mov byte [rsp + 0xc0], 0
mov rdx, qword [rsp + 0x118]
cmp rdx, 0x10
jb 0x140036a1c
inc rdx
mov rcx, qword [rsp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036a16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036a16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
nop
mov rdx, qword [rsp + 0xf8]
cmp rdx, 0x10
jb 0x140036a62
inc rdx
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036a5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036a5d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov qword [rsp + 0xf0], 0
mov qword [rsp + send8], 0xf
mov byte [rsp + 0xe0], 0
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x140036ac9
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036ac3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036ac3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140036b09
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036b04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036b04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp rbx, 0x989680
jl 0x140036520
mov rdi, qword [rsi + 0x20]
mov rcx, rdi
call fcn.140036e60
test al, al
je 0x140036513
mov rbx, qword [rdi + 0x1c0]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
add rbx, 0xf4240
cmp rax, rbx
jl 0x140036513
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [rdi + 0x1c0], rax
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.140037150
mov r8, rax
lea rdx, [rsp + 0x120]
mov rcx, rdi
call fcn.140036ef0
mov rdx, qword [rsp + 0x138]
cmp rdx, 0x10
jb 0x140036513
inc rdx
mov rcx, qword [rsp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036bca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036bca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
jmp 0x140036513
mov rdx, qword [rsp + 0x190]
cmp rdx, 0x10
jb 0x140036c1b
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036c15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036c15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
nop
lea rcx, [rsp + 0x1b0]
call fcn.140036cc0
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x140036c61
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140036c5c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140036ca8
mov rcx, r8
call fcn.14003e16c
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.14003e110
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