Function at 0x180022d40
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x180240300]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, rcx
xor esi, esi
mov edx, 0x100
lea rcx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_gethostname]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x18], xmm0
movdqu xmmword [rbp - 8], xmm1
cmp eax, 0xffffffff
jne 0x180022da7
mov r8d, 7
lea rdx, str.Unknown
jmp 0x180022dbf
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x180022db2
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.180005680
nop
mov byte [rbp - 0x40], 0
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.180033260
nop
lea rax, [rsp + 0x20]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x20], 0
xor eax, eax
mov qword [rsp + 0x28], rax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180032de0
mov byte [rsp + 0x20], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov ecx, 0x20
call fcn.18017ba14
mov rbx, rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov r8d, 4
lea rdx, str.0005
mov rcx, rbx
call fcn.180005680
nop
mov qword [rsp + 0x28], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov r8d, 4
lea rdx, str.type
lea rcx, [rsp + 0x40]
call fcn.180005680
lea rax, [rsp + 0x40]
mov qword [rbp - 0x28], rax
movzx ecx, byte [rbp - 0x40]
test cl, cl
jne 0x180022e96
mov byte [rbp - 0x40], 1
call fcn.18003d730
mov qword [rbp - 0x38], rax
movzx ecx, byte [rbp - 0x40]
jmp 0x180022e9a
mov rax, qword [rbp - 0x38]
cmp cl, 1
jne 0x180023057
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180054f90
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800042b0
nop
movzx ecx, byte [rbx + 0x40]
movzx eax, byte [rsp + 0x20]
mov byte [rbx + 0x40], al
mov byte [rsp + 0x20], cl
mov rax, qword [rbx + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rbx + 0x48], rcx
mov qword [rsp + 0x28], rax
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180032de0
nop
lea rax, [rsp + 0x20]
mov qword [rbp - 0x28], rax
mov byte [rsp + 0x20], 0
xor eax, eax
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x20]
call fcn.1800619f0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov r8d, 4
lea rdx, str.name
lea rcx, [rsp + 0x40]
call fcn.180005680
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
movzx ecx, byte [rbp - 0x40]
test cl, cl
jne 0x180022f69
mov byte [rbp - 0x40], 1
call fcn.18003d730
mov qword [rbp - 0x38], rax
movzx ecx, byte [rbp - 0x40]
jmp 0x180022f6d
mov rax, qword [rbp - 0x38]
cmp cl, 1
jne 0x180023016
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180054f90
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800042b0
nop
movzx edx, byte [rbx + 0x40]
movzx eax, byte [rsp + 0x20]
mov byte [rbx + 0x40], al
mov byte [rsp + 0x20], dl
mov rax, qword [rbx + 0x48]
mov rdx, qword [rsp + 0x28]
mov qword [rbx + 0x48], rdx
mov qword [rsp + 0x28], rax
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180032de0
nop
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.180023f50
nop
movzx edx, byte [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.180032de0
nop
lea rcx, [rbp - 0x18]
call fcn.1800042b0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18017b580
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rbp - 0x40]
call fcn.1800333e0
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.180050360
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rsp + 0x68]
call fcn.18003c140
lea rdx, [0x18023cf10]
lea rcx, [rsp + 0x68]
call fcn.1801a6590
nop
lea rcx, [rbp - 0x40]
call fcn.1800333e0
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.180050360
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rsp + 0x68]
call fcn.18003c140
lea rdx, [0x18023cf10]
lea rcx, [rsp + 0x68]
call fcn.1801a6590
int3