Function at 0x140163800
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x20], rdx
xor r12d, r12d
mov r9d, r12d
mov dword [rsp + 0x28], r12d
mov rax, qword [rcx]
cmp qword [rax + 0x10], r9
je 0x140163a0a
mov dword [rsp + 0x20], 0x20
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1401638f1
xor r8d, r8d
lea edx, [rax + 2]
lea rcx, [rsp + 0x50]
call fcn.14025e800
nop
lea rcx, [rsp + 0x50]
call fcn.14025f760
test al, al
je 0x1401638b7
lea rdx, str.device:_GetComputerName_failed:
lea rcx, [rsp + 0x50]
call fcn.140255d20
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140255c30
nop
lea rcx, [rsp + 0x50]
call fcn.140255600
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
xor r8d, r8d
lea rdx, [0x14027b2b0]
lea rcx, [rsp + 0x30]
call fcn.1400768b0
mov rsi, qword [rsp + 0x48]
jmp 0x1401639ba
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
lea rax, [rbp + 0x180]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x140163910
movabs rsi, 0x7ffffffffffffffe
cmp rbx, rsi
ja 0x140163aee
cmp rbx, 8
jae 0x140163965
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 7
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x30], r12w
mov rsi, qword [rsp + 0x48]
jmp 0x1401639ba
mov rax, rbx
or rax, 7
cmp rax, rsi
ja 0x140163980
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x30]
call fcn.1400873c0
mov rdi, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x180]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r12w
mov r9d, 5
mov r8, qword [r15]
lea rcx, [rsp + 0x30]
cmp rsi, 8
cmovae rcx, qword [rsp + 0x30]
mov rdx, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x1401639e0
mov r8, qword [r8]
cmp rdx, qword [rsp + 0x40]
jne 0x140163a06
test rdx, rdx
je 0x140163a0f
sub r8, rcx
nop
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x140163a06
add rcx, 2
sub rdx, 1
jne 0x1401639f0
jmp 0x140163a0f
mov bl, 1
jmp 0x140163a17
mov rsi, qword [rsp + 0x48]
xor bl, bl
test r9b, 1
je 0x140163a7a
cmp rsi, 8
jb 0x140163a58
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140163a52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140163a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
test bl, bl
je 0x140163a7a
mov rdx, qword [r15]
mov r8, qword [rdx + 0x10]
add r8, r8
cmp qword [rdx + 0x18], 8
jb 0x140163a70
mov rdx, qword [rdx]
mov rcx, r14
call fcn.140165960
jmp 0x140163ac0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov edx, 0x30
mov rcx, r14
call fcn.140087360
mov qword [r14], rax
mov qword [r14 + 0x10], 0x20
mov qword [r14 + 0x18], 0x2f
movdqa xmm0, xmmword [str.xxxxxxxxxxxxxxxx_FT_TZ]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov byte [rax + 0x20], 0
mov rax, r14
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140266400
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400871e0
int3