Function at 0x140002e40
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140085930]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov byte [rbp + 0x50], r14b
mov esi, 0xff
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x51]
call fcn.14002f000
mov edx, esi
lea rcx, [rbp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostname]
lea r12d, [r14 + 0xf]
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x40], r14b
or r15, 0xffffffffffffffff
cmp byte [rbp + 0x50], r14b
jne 0x140002ec5
mov r8d, r14d
jmp 0x140002ed5
lea rax, [rbp + 0x50]
mov r8, r15
inc r8
cmp byte [rax + r8], r14b
jne 0x140002ecc
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.14001e444
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14001af54
cmp qword [rbp - 0x28], 0x10
jb 0x140002efe
mov rcx, qword [rbp - 0x40]
call fcn.14002df20
lea rax, [rbp - 0x40]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x40], r14b
xor r8d, r8d
lea rdx, [0x140072d02]
lea rcx, [rbp - 0x40]
call fcn.14001e444
nop
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x30], r14b
mov esi, 1
mov r8d, esi
lea rdx, str.__U_
lea rcx, [rsp + 0x30]
call fcn.14001e444
nop
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], r14b
mov r9, r15
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14001e320
nop
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call fcn.140001b88
mov rdx, rax
mov rcx, rdi
call fcn.14001af54
cmp qword [rbp - 8], 0x10
jb 0x140002fae
mov rcx, qword [rbp - 0x20]
call fcn.14002df20
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x30], r14b
xor r8d, r8d
lea rdx, [0x140072d02]
lea rcx, [rsp + 0x30]
call fcn.14001e444
nop
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x40], r14b
mov r8, rsi
lea rdx, [0x140072dbc]
lea rcx, [rbp - 0x40]
call fcn.14001e444
nop
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r14
mov byte [rsp + 0x58], r14b
mov r9, r15
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14001e320
nop
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call fcn.140001b88
mov rdx, rax
mov rcx, rdi
call fcn.14001af54
cmp qword [rbp - 8], 0x10
jb 0x140003059
mov rcx, qword [rbp - 0x20]
call fcn.14002df20
mov byte [rbp], r14b
xor edx, edx
lea r8d, [rdx + 0x40]
lea rcx, [rbp + 1]
call fcn.14002f000
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14002f000
mov dword [rbp - 0x6c], 2
mov dword [rbp - 0x68], esi
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x70]
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400030a6
mov eax, r15d
jmp 0x1400031a1
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140003196
mov ecx, dword [rdi + 4]
mov rdx, qword [rdi + 0x20]
cmp ecx, 2
jne 0x1400030c6
add rdx, 4
jmp 0x1400030ca
add rdx, 8
mov r9d, 0x41
lea r8, [rbp]
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x40], r14b
cmp byte [rbp], r14b
jne 0x1400030f1
mov r8, r14
jmp 0x140003101
lea rax, [rbp]
mov r8, r15
inc r8
cmp byte [rax + r8], r14b
jne 0x1400030f8
lea rdx, [rbp]
lea rcx, [rbp - 0x40]
call fcn.14001e444
nop
mov rax, qword [rbx + 8]
lea rcx, [rbp - 0x40]
cmp rcx, rax
jae 0x14000314f
lea rcx, [rbp - 0x40]
cmp qword [rbx], rcx
ja 0x14000314f
lea rsi, [rbp - 0x40]
sub rsi, qword [rbx]
cmp rax, qword [rbx + 0x10]
jne 0x14000313a
mov rcx, rbx
call fcn.14001f02c
and rsi, 0xffffffffffffffe0
add rsi, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000316f
mov rdx, rsi
jmp 0x14000316a
cmp rax, qword [rbx + 0x10]
jne 0x14000315d
mov rcx, rbx
call fcn.14001f02c
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000316f
lea rdx, [rbp - 0x40]
call fcn.14001aee4
add qword [rbx + 8], 0x20
cmp qword [rbp - 0x28], 0x10
jb 0x140003184
mov rcx, qword [rbp - 0x40]
call fcn.14002df20
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400030b4
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14002b700
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret