Function at 0x140006d80
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x348
movdqa xmmword [rsp + 0x330], xmm8
movdqa xmmword [rsp + 0x320], xmm7
movdqa xmmword [rsp + 0x310], xmm6
lea rsi, [rsp + 0x240]
mov rcx, rsi
call fcn.14003a3b0
mov rcx, rsi
call fcn.14003a680
mov dword [rsp + 0xc0], 0
lea r8, [rsp + 0xc0]
mov ecx, 5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140006e1a
mov edi, dword [rsp + 0xc0]
test rdi, rdi
je 0x140006e2c
lea rdx, [rdi + rdi]
movzx eax, byte [0x1400ec9e8]
mov ecx, 8
call fcn.140033a00
test rax, rax
je 0x14000988b
mov rbx, rax
jmp 0x140006e31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rsp + 0xc0]
test rdi, rdi
jne 0x140006df7
mov ebx, 2
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rdi
lea rsi, [rsp + 0xc0]
mov ecx, 5
mov rdx, rbx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140006e83
test rdi, rdi
je 0x140006eaf
lea rax, [rdi + rdi]
xor r14d, r14d
nop dword [rax]
cmp word [rbx + r14*2], 0
je 0x140006eb3
inc r14
add rax, 0xfffffffffffffffe
jne 0x140006e70
jmp 0x140006ec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
je 0x140006ea0
mov rcx, qword [0x1400ec9d0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
movabs rbx, 0x8000000000000000
mov r13, rbx
jmp 0x140006f16
xor edi, edi
jmp 0x140006ec7
mov r15, r14
sub r15, rdi
ja 0x14000977f
mov qword [rsp + 0x70], r14
mov rdi, r14
lea rcx, [rsp + 0xf0]
mov rdx, rbx
mov r8, rdi
call fcn.14000d8c0
mov r13, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xf8]
mov r14, qword [rsp + 0x100]
cmp qword [rsp + 0x60], 0
je 0x140006f0c
mov rcx, qword [0x1400ec9d0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
movabs rbx, 0x8000000000000000
lea rax, [0x1400d16b4]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x60], 0xe6193e9a
mov edx, dword [rsp + 0x60]
call fcn.140006310
movabs rcx, 0x4c9e8ac8ef319d88
xor rcx, qword [rax]
mov edx, 0x253f414b
xor edx, dword [rax + 8]
movzx r8d, byte [rax + 0xe]
movzx eax, word [rax + 0xc]
mov r9d, eax
shr r9d, 8
xor al, 0xc0
xor r9b, 0xbf
xor r8b, 0xde
mov r10d, 1
mov qword [rsp + 0xf0], rcx
mov dword [rsp + 0xf8], edx
mov byte [rsp + 0xfc], al
mov byte [rsp + 0xfd], r9b
mov byte [rsp + 0xfe], r8b
cmp r13, rbx
cmovne r10, rdi
je 0x140006fc7
cmp r14, 0xf
jne 0x140006fc7
mov rax, qword [rdi]
xor rax, qword [rsp + 0xf0]
mov rcx, qword [rdi + 7]
xor rcx, qword [rsp + 0xf7]
or rcx, rax
je 0x140007f12
mov qword [rsp + 0x220], r10
lea rcx, [rsp + 0xf0]
call fcn.14003b020
cmp byte [rsp + 0xf0], 0x12
jne 0x14000988b
lea rax, [0x1400d616f]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov dword [rsp + 0xf0], 0x9c033dbd
mov edx, dword [rsp + 0xf0]
call fcn.1400062b0
movabs rcx, 0xe5db86cfc15003bc
xor rcx, qword [rax]
movabs rdx, 0xff36abd53547a58e
xor rdx, qword [rax + 8]
movabs r8, 0xe06042dd63cfc093
xor r8, qword [rax + 0x10]
movabs r9, 0x14b49c88ef494ec0
xor r9, qword [rax + 0x18]
movzx r10d, byte [rax + 0x22]
movzx eax, word [rax + 0x20]
mov r11d, eax
shr r11d, 8
xor al, 0x5a
xor r11b, 0x3c
xor r10b, 0x9e
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov byte [rsp + 0x80], al
mov byte [rsp + 0x81], r11b
mov byte [rsp + 0x82], r10b
lea rax, [rsp + 0x60]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 0x23
mov qword [rsp + 0x48], rsi
lea rax, [0x140004560]
mov qword [rsp + 0x50], rax
lea rax, [0x14004f698]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 2
mov qword [rsp + 0x110], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], 1
lea rcx, [rsp + 0xf0]
call fcn.1400291c0
test r13, r13
je 0x1400090e5
mov rcx, qword [0x1400ec9d0]
xor edx, edx
mov r8, rdi
jmp 0x1400090df
mov qword [rsp + 0x20], 2
lea rcx, [rsp + 0x60]
mov r9d, 2
mov rdx, rdi
mov r8, r15
call fcn.14004e450
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
lea rcx, [rbx + r12*2]
cmp r15, 2
jb 0x1400097d7
not rdi
add r14, rdi
add r14, r14
xor edx, edx
mov r8, r14
call fcn.14003fdf0
lea rax, [r12 + r15]
lea rcx, [rbx + rax*2]
add rcx, 0xfffffffffffffffe
add r12, r15
dec r12
mov word [rcx], 0
inc r12
mov r14, r12
jmp 0x140006ebf