Function at 0x140004410
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 [0x140017010]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov r13, rdx
mov rsi, rcx
mov qword [r11 - 0x188], rcx
mov qword [r11 - 0x120], rdx
xor edi, edi
mov r14d, edi
mov dword [rsp + 0x170], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], recv
mov byte [rcx], dil
mov byte [rcx + 0x28], dil
movups xmmword [rsp + 0x1b0], xmm0
mov qword [r11 - 0xc8], rdi
mov qword [r11 - 0xc0], rdi
lea r8d, [rdi + 7]
lea rdx, str.Unknown
lea rcx, [r11 - 0xd8]
call fcn.140008600
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x1d0], xmm0
mov qword [rsp + 0x1e0], rdi
mov qword [rsp + 0x1e8], rdi
lea r8d, [rdi + 7]
lea rdx, str.Unknown
lea rcx, [rsp + 0x1d0]
call fcn.140008600
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x1f0], xmm0
mov qword [rsp + 0x200], rdi
mov qword [rsp + 0x208], rdi
lea r8d, [rdi + 7]
lea rdx, str.Unknown
lea rcx, [rsp + 0x1f0]
call fcn.140008600
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x178], xmm0
mov qword [rsp + 0x188], rdi
mov qword [rsp + 0x190], rdi
lea r8d, [rdi + 4]
lea rdx, str.none
lea rcx, [rsp + 0x178]
call fcn.140008600
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x198], xmm0
mov r9, r13
cmp qword [r13 + 0x18], 0x10
jb 0x140004559
mov r9, qword [r13]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], 0
jne 0x140004560
mov rax, qword [rsi + 0x18]
cmp rbx, rax
ja 0x140004599
mov rdi, rsi
cmp rax, 0x10
jb 0x14000457f
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
xor edi, edi
jmp 0x1400045a5
mov rdx, rbx
mov rcx, rsi
call fcn.140008b10
nop
mov ecx, 0x1c8
call fcn.14000e190
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], rdi
mov qword [rsp + 0x58], rdi
mov r8d, recv
lea rdx, str.192.168.1.177
lea rcx, [rsp + 0x40]
call fcn.140008600
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.140004e10
nop
mov qword [rsi + 0x20], rax
cmp byte [rax + 8], 0
je 0x14000465d
mov dword [rsp + 0x228], edi
mov dword [rsp + 0x170], 4
lea rcx, [rsp + 0x170]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x228]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, qword [rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000465d
cmp dword [rsp + 0x228], eax
sete al
jmp 0x14000465f
xor al, al
mov byte [rsi + 0x28], al
movabs r12, 0x7fffffffffffffff
test al, al
jne 0x140004845
mov rcx, qword [rsi + 0x10]
mov rax, r12
sub rax, rcx
cmp rax, 9
jb 0x140004d03
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140004695
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 + 0x40]
call fcn.140003530
mov r14d, 1
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140004716
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004711
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e1cc
mov ecx, 0x1c8
call fcn.14000e190
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], rdi
mov qword [rsp + 0x58], rdi
mov r8d, recv
lea rdx, str.192.168.1.177
lea rcx, [rsp + 0x40]
call fcn.140008600
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.140004e10
nop
mov qword [rsi + 0x20], rax
cmp byte [rsi + 0x28], 0
jne 0x140004845
xorps xmm0, xmm0
movups xmmword [rsp + 0x238], xmm0
mov qword [rsp + 0x248], rdi
mov qword [rsp + 0x250], rdi
mov r8d, 8
lea rdx, str._U_h_o_H
lea rcx, [rsp + 0x238]
call fcn.140008600
lea rax, [rsp + 0x238]
mov qword [rsp + 0x170], rax
lea rdx, [rsp + 0x238]
cmp qword [rsp + 0x250], 0x10
cmovae rdx, qword [rsp + 0x238]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002ec0
lea rdx, [0x140003090]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x250]
cmp rdx, 0x10
jb 0x140004845
inc rdx
mov rcx, qword [rsp + 0x238]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004840
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e1cc
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov r15d, edi
mov rbx, rax
cmp byte [rsi + 0x28], 0
je 0x140004c76
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rdi, rax
sub rdi, rbx
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 + 0x80], xmm0
xor eax, eax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], al
jne 0x1400048c1
lea rcx, [rsp + 0x80]
call fcn.140008600
or r14d, 2
lea r9, [rsp + 0x24d]
mov r8d, r15d
test r15d, r15d
jns 0x140004930
neg r8d
nop
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 0x1400048f0
dec r9
mov byte [r9], 0x2d
jmp 0x14000495a
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 0x140004930
lea r8, [rsp + 0x24d]
mov rdx, r9
lea rcx, [rsp + 0xa0]
call fcn.140009750
nop
mov rcx, qword [rsi + 0x10]
mov rax, r12
sub rax, rcx
cmp rax, 9
jb 0x140004d09
mov rax, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140004994
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.140003530
nop
mov r8d, 3
lea rdx, [0x14001085c]
lea rcx, [rsp + 0xe0]
call fcn.140002bd0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x128], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x138], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x128]
lea rcx, [rsp + 0x148]
call fcn.140009510
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_WSAStartup
lea rcx, [rsp + 0x148]
call fcn.140002bd0
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, [0x14001085c]
lea rcx, [rsp + 0x40]
call fcn.140002bd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], 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 + 0x60]
call fcn.140002bd0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x108], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x118], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x108]
lea rcx, [rsp + 0xc0]
call fcn.140009510
or r14d, 0x7fc
lea rcx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 0x10
cmovae rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [rsp + 0xc0]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x108]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x60]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x40]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x148]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x128]
call fcn.1400028b0
nop
lea rcx, [rsp + 0xe0]
call fcn.1400028b0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400028b0
nop
lea rcx, [rsp + 0x80]
call fcn.1400028b0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r15d
cmp rdi, 0x989680
jl 0x140004851
mov rdi, qword [rsi + 0x20]
mov rcx, rdi
call fcn.140004f60
test al, al
je 0x140004c6b
mov rbx, qword [rdi + 0x1c0]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
add rbx, 0xf4240
cmp rax, rbx
jl 0x140004c6b
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [rdi + 0x1c0], rax
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call fcn.140005250
mov r8, rax
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call fcn.140004ff0
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x140004c6b
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e1cc
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
jmp 0x14000484e
mov rdx, qword [rsp + 0x190]
cmp rdx, 0x10
jb 0x140004cbd
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cb7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e1cc
nop
lea rcx, [rsp + 0x1b0]
call fcn.140004d10
nop
mov rcx, r13
call fcn.1400028b0
mov rax, rsi
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.14000e170
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 fcn.1400011b0
nop
call fcn.1400011b0
int3