Function at 0x180022ed0
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 [0x180243280]
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 0x180022f35
lea r8d, [rsi + 7]
lea rdx, str.Unknown
jmp 0x180022f4d
lea rax, [rbp + 0x10]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x180022f40
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.180005800
nop
mov byte [rbp - 0x40], 0
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.1800332b0
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.180032e30
mov byte [rsp + 0x20], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov ecx, 0x20
call fcn.18017b314
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.180005800
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.180005800
lea rax, [rsp + 0x40]
mov qword [rbp - 0x28], rax
movzx ecx, byte [rbp - 0x40]
test cl, cl
jne 0x180023024
mov byte [rbp - 0x40], 1
call fcn.18003d6d0
mov qword [rbp - 0x38], rax
movzx ecx, byte [rbp - 0x40]
jmp 0x180023028
mov rax, qword [rbp - 0x38]
cmp cl, 1
jne 0x1800231e5
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180054e20
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180004420
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.180032e30
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.180061bb0
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.180005800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
movzx ecx, byte [rbp - 0x40]
test cl, cl
jne 0x1800230f7
mov byte [rbp - 0x40], 1
call fcn.18003d6d0
mov qword [rbp - 0x38], rax
movzx ecx, byte [rbp - 0x40]
jmp 0x1800230fb
mov rax, qword [rbp - 0x38]
cmp cl, 1
jne 0x1800231a4
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180054e20
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180004420
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.180032e30
nop
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.180023f60
nop
movzx edx, byte [rbp - 0x40]
lea rcx, [rbp - 0x38]
call fcn.180032e30
nop
lea rcx, [rbp - 0x18]
call fcn.180004420
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18017ae80
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.180033430
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.1800501b0
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rsp + 0x68]
call fcn.18003c0a0
lea rdx, [0x180240500]
lea rcx, [rsp + 0x68]
call fcn.1801a5b60
nop
lea rcx, [rbp - 0x40]
call fcn.180033430
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.1800501b0
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rsp + 0x68]
call fcn.18003c0a0
lea rdx, [0x180240500]
lea rcx, [rsp + 0x68]
call fcn.1801a5b60
int3