Function at 0x14003b240
Capabilities:
Get hostname

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov edx, 0x100
lea rcx, [rbp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x14003b2ad
lea rcx, [rbx + 8]
lea r8d, [rax + 0x21]
lea rdx, str.Unable_to_look_up_local_hostname
call fcn.14001cce0
xor al, al
jmp 0x14003b84a
mov qword [rbp - 0x50], Ordinal_17
xor r15d, r15d
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], r15b
cmp byte [rbp + 0x60], r15b
jne 0x14003b2cb
mov r8d, r15d
jmp 0x14003b2dc
lea rax, [rbp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r15b
jne 0x14003b2d3
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.14001cce0
nop
mov r8, rdi
lea rdx, str.cddb_hello
lea rcx, [rsp + 0x38]
call fcn.14003f710
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.14003f880
nop
lea r8, [rbp - 0x68]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.14003f660
nop
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14003f880
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14003f660
nop
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.14003f880
nop
mov r8, r14
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14003f660
nop
mov rax, qword [rbp - 0x30]
cmp rax, 0x10
jb 0x14003b3b2
inc rax
mov rcx, qword [rbp - 0x48]
cmp rax, 0x1000
jb 0x14003b3ad
test cl, 0x1f
je 0x14003b37d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b38d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b39d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b3aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rbp - 0x30], Ordinal_17
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x48], 0
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
jb 0x14003b41c
inc rax
mov rcx, qword [rbp - 0x28]
cmp rax, 0x1000
jb 0x14003b417
test cl, 0x1f
je 0x14003b3e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b3f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b407
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b414
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rbp - 0x10], Ordinal_17
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x28], 0
mov rax, qword [rbp + 0x10]
cmp rax, 0x10
jb 0x14003b486
inc rax
mov rcx, qword [rbp - 8]
cmp rax, 0x1000
jb 0x14003b481
test cl, 0x1f
je 0x14003b451
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b461
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b471
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b47e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rbp + 0x10], Ordinal_17
mov qword [rbp + 8], r15
mov byte [rbp - 8], 0
mov rax, qword [rbp + 0x30]
cmp rax, 0x10
jb 0x14003b4f0
inc rax
mov rcx, qword [rbp + 0x18]
cmp rax, 0x1000
jb 0x14003b4eb
test cl, 0x1f
je 0x14003b4bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b4cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b4db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b4e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rbp + 0x30], Ordinal_17
mov qword [rbp + 0x28], r15
mov byte [rbp + 0x18], 0
mov rax, qword [rbp + 0x50]
cmp rax, 0x10
jb 0x14003b55a
inc rax
mov rcx, qword [rbp + 0x38]
cmp rax, 0x1000
jb 0x14003b555
test cl, 0x1f
je 0x14003b525
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b535
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b545
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b552
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rbp + 0x50], Ordinal_17
mov qword [rbp + 0x48], r15
mov byte [rbp + 0x38], 0
mov rax, qword [rsp + 0x50]
cmp rax, 0x10
jb 0x14003b5c6
inc rax
mov rcx, qword [rsp + 0x38]
cmp rax, 0x1000
jb 0x14003b5c1
test cl, 0x1f
je 0x14003b591
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b5a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b5b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b5be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rsp + 0x50], Ordinal_17
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x38], 0
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.14003ac40
test al, al
jne 0x14003b5f1
xor bl, bl
jmp 0x14003b781
mov byte [rsp + 0x20], 1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14003ae70
nop
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14003d6a0
lea rdx, [0x140083274]
mov rcx, rax
call fcn.1400408c0
mov edi, eax
mov rcx, qword [rsp + 0x50]
cmp rcx, 0x10
jb 0x14003b692
inc rcx
mov rdx, qword [rsp + 0x38]
cmp rcx, 0x1000
jb 0x14003b68a
test dl, 0x1f
je 0x14003b65a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14003b66a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rdx, rax
cmp rdx, 8
jae 0x14003b67a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rdx, 0x27
jbe 0x14003b687
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rax
mov rcx, rdx
call fcn.14005b9e4
test edi, edi
je 0x14003b710
add rbx, 8
lea rax, [rsp + 0x58]
cmp rbx, rax
je 0x14003b6b8
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14001d7a0
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.14003d6a0
mov rcx, rax
call fcn.140039490
sub eax, 0x192
je 0x14003b6fb
cmp eax, 0x1d
jne 0x14003b6f7
lea r8d, [rax - 5]
lea rdx, str.Handshake_not_successful
mov rcx, rbx
call fcn.14001cce0
xor bl, bl
jmp 0x14003b712
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Already_shook_hands
mov rcx, rbx
call fcn.14001cce0
mov bl, 1
mov rax, qword [rsp + 0x70]
cmp rax, 0x10
jb 0x14003b76e
inc rax
mov rcx, qword [rsp + 0x58]
cmp rax, 0x1000
jb 0x14003b769
test cl, 0x1f
je 0x14003b739
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b749
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b759
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b766
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rsp + 0x70], Ordinal_17
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x58], 0
mov rax, qword [rbp - 0x70]
cmp rax, 0x10
jb 0x14003b7dc
inc rax
mov rcx, qword [rsp + 0x78]
cmp rax, 0x1000
jb 0x14003b7d7
test cl, 0x1f
je 0x14003b7a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b7b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b7c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b7d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
mov qword [rbp - 0x70], Ordinal_17
mov qword [rbp - 0x78], r15
mov byte [rsp + 0x78], 0
mov rax, qword [rbp - 0x50]
cmp rax, 0x10
jb 0x14003b847
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x14003b842
test cl, 0x1f
je 0x14003b812
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14003b822
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14003b832
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003b83f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005b9e4
movzx eax, bl
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14005b9c0
add rsp, 0x278
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret