Function at 0x140013370
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rbp
push r12
lea rbp, [r11 - 0x178]
sub rsp, 0x268
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov qword [r11 + 8], rbx
lea r8, [rsp + 0x40]
mov qword [r11 + 0x10], rsi
lea rcx, [0x1400d69b0]
mov qword [r11 - 0x18], r13
xor r9d, r9d
xor r13d, r13d
mov qword [r11 - 0x20], r14
mov edx, 0x40f
mov qword [rsp + 0x40], r13
mov r14d, r13d
mov qword [rsp + 0x38], r13
mov esi, r13d
mov qword [rsp + 0x30], r13
mov ebx, r13d
mov qword [rsp + 0x48], r13
mov dword [rbp - 0x20], reloc.WS2_32.dll_recv
mov dword [rbp - 0x18], 0x101
mov dword [rbp - 0x1c], reloc.WS2_32.dll_recv
call fcn.140016cc0
mov r12, qword [rsp + 0x40]
test al, al
je 0x140013a16
xor r9d, r9d
lea r8, [rsp + 0x38]
mov edx, 0x99a
lea rcx, [0x1400d69b0]
call fcn.140016cc0
test al, al
je 0x140013a11
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x140013a11
lea r9, [rbp - 0x1c]
lea r8, [rbp + 0x18]
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x30]
call fcn.14001a2b0
test eax, eax
je 0x140013a11
lea rax, [rsp + 0x48]
mov qword [rsp + 0x290], rdi
mov qword [rbp - 0x70], rax
mov ecx, 0x1000
lea rax, [rbp - 0x10]
mov qword [rsp + 0x250], r15
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x10], r13
call fcn.14006bdc0
mov qword [rsp + 0x58], r13
xorps xmm0, xmm0
mov qword [rsp + 0x68], r13
xorps xmm1, xmm1
mov qword [rbp - 0x30], r13
test rax, rax
jne 0x1400134c8
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x78], 7
jmp 0x140013507
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
add rax, 0x1000
mov qword [rbp - 0x80], rax
lea rax, [0x14000c760]
mov qword [rsp + 0x50], rax
lea rax, [0x14000c840]
mov qword [rsp + 0x60], rax
mov dword [rbp - 0x78], r13d
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rsp + 0x50]
call fcn.14000d540
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp byte [r12 + rbx], sil
jne 0x140013530
mov r15d, 0xffffffff
cmp rbx, r15
jbe 0x140013566
cmp dword [rbp - 0x78], esi
jne 0x140013566
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x140013566
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov r8d, ebx
lea rcx, [rsp + 0x50]
mov rdx, r12
call fcn.14000d210
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov r14, qword [rsp + 0x38]
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], sil
jne 0x140013590
cmp rbx, r15
jbe 0x1400135c0
cmp dword [rbp - 0x78], esi
jne 0x1400135c0
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x1400135c0
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov r8d, ebx
lea rcx, [rsp + 0x50]
mov rdx, r14
call fcn.14000d210
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, recv
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, 4
lea rcx, [rsp + 0x50]
call fcn.14000cae0
lea rdx, [rbp + 8]
mov ecx, 0x7241be
call fcn.140019fe0
mov rsi, rax
mov rbx, rdi
inc rbx
cmp byte [rax + rbx], r13b
jne 0x140013611
cmp rbx, r15
jbe 0x140013642
cmp dword [rbp - 0x78], r13d
jne 0x140013642
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x140013642
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov r8d, ebx
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.14000d210
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.14000cae0
call fcn.14001a1e0
mov rsi, rax
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x140013670
cmp rbx, r15
jbe 0x1400136a1
cmp dword [rbp - 0x78], r13d
jne 0x1400136a1
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x1400136a1
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov r8d, ebx
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.14000d210
mov edx, 6
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.14000cae0
lea rax, [rbp - 8]
mov rbx, rdi
inc rbx
cmp byte [rax + rbx], r13b
jne 0x1400136e5
cmp rbx, r15
jbe 0x140013716
cmp dword [rbp - 0x78], r13d
jne 0x140013716
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x140013716
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov r8d, ebx
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x50]
call fcn.14000d210
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.14000cae0
lea rax, [rbp + 0x30]
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r13b
jne 0x140013740
cmp rbx, r15
jbe 0x140013771
cmp dword [rbp - 0x78], r13d
jne 0x140013771
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x140013771
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov r8d, ebx
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000d210
mov edx, 9
lea rcx, [rsp + 0x50]
call fcn.14000cae0
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, 0xd6b
lea rcx, [0x1400d69b0]
call fcn.140016cc0
mov rsi, qword [rsp + 0x30]
lea r15, [0x1400a62c0]
test al, al
je 0x1400137fb
mov rbx, rdi
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], r13b
jne 0x1400137c0
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x1400137f6
cmp dword [rbp - 0x78], r13d
jne 0x1400137f6
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x1400137f6
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov rdx, rsi
jmp 0x140013801
mov rdx, r15
mov rbx, r13
mov r8d, ebx
lea rcx, [rsp + 0x50]
call fcn.14000d210
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.14000cae0
xor r9d, r9d
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x30]
mov edx, 0xb60
lea rcx, [0x1400d69b0]
call fcn.140016cc0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140013880
inc rdi
cmp byte [rbx + rdi], r13b
jne 0x140013845
mov eax, 0xffffffff
cmp rdi, rax
jbe 0x14001387b
cmp dword [rbp - 0x78], r13d
jne 0x14001387b
mov rax, qword [rsp + 0x58]
mov dword [rbp - 0x78], 3
test rax, rax
je 0x14001387b
mov edx, 3
lea rcx, [rsp + 0x50]
call rax
mov r15, rbx
jmp 0x140013883
mov rdi, r13
mov r8d, edi
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.14000d210
mov edx, listen
lea rcx, [rsp + 0x50]
call fcn.14000cae0
call fcn.140015730
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, recv
lea rcx, [rsp + 0x50]
call fcn.14000cae0
cmp byte [0x1400d67e9], r13b
mov r15, qword [rsp + 0x250]
jne 0x1400138e3
call fcn.140015c10
neg al
sbb rdx, rdx
add rdx, 2
jmp 0x1400138e8
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, reloc.WS2_32.dll_listen
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, dword [0x1400d67f4]
lea rcx, [rsp + 0x50]
call fcn.14000cae0
mov edx, recv
lea rcx, [rsp + 0x50]
call fcn.14000cae0
call fcn.1400163b0
mov rcx, qword [rbp - 0x60]
movzx edi, al
test rcx, rcx
je 0x140013955
cmp dword [rcx + 0x18], r13d
jne 0x140013955
cmp dword [rcx + 0x14], 0xa
je 0x140013942
inc dword [rcx + 0x10]
jmp 0x140013955
cmp byte [rcx + 0x1c], r13b
je 0x140013951
inc dword [rcx + 0x10]
mov byte [rcx + 0x1c], r13b
jmp 0x140013955
mov byte [rcx + 0x1c], 1
mov rax, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
sub rax, rcx
cmp rax, 1
jae 0x14001397f
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14000c910
test al, al
je 0x14001398e
mov rcx, qword [rsp + 0x78]
test dil, dil
setne al
add al, 0xc2
mov byte [rcx], al
inc qword [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.14000d860
mov rdi, qword [rsp + 0x290]
cmp dword [rbp - 0x78], r13d
jne 0x1400139cb
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
sub r8, rdx
je 0x1400139cb
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400139cb
lea rcx, [rsp + 0x50]
call rax
mov qword [rsp + 0x50], r13
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1400139e1
lea rcx, [rsp + 0x50]
call rax
mov qword [rsp + 0x60], r13
cmp dword [rbp - 0x78], r13d
jne 0x140013a16
mov r9, qword [rbp - 0x10]
mov edx, 0x65
mov r8, qword [rsp + 0x48]
mov ecx, dword [0x1400d5f24]
mov byte [rsp + 0x20], r13b
call fcn.140011980
mov rcx, qword [rsp + 0x48]
call fcn.14006ac0c
jmp 0x140013a5b
mov r14, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x1400d67f0]
jne 0x140013a4e
mov rcx, qword [0x1400d67e0]
test rcx, rcx
je 0x140013a5b
mov eax, dword [rcx + 0xf8]
bt eax, 8
jae 0x140013a5b
bt eax, 0xc
jb 0x140013a5b
bts eax, 0xc
mov dword [rcx + 0xf8], eax
jmp 0x140013a5b
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 3]
call fcn.140011e80
mov r13, qword [rsp + 0x260]
test rbx, rbx
je 0x140013a70
mov rcx, rbx
call fcn.14006ac0c
mov rbx, qword [rsp + 0x280]
test rsi, rsi
je 0x140013a85
mov rcx, rsi
call fcn.14006ac0c
mov rsi, qword [rsp + 0x288]
test r14, r14
je 0x140013a9a
mov rcx, r14
call fcn.14006ac0c
mov r14, qword [rsp + 0x258]
test r12, r12
je 0x140013aaf
mov rcx, r12
call fcn.14006ac0c
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14001a6d0
add rsp, 0x268
pop r12
pop rbp
ret