Function at 0x140008070
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.1400421e0
mov rcx, rsi
call fcn.1400424b0
mov dword [rsp + 0xb0], 0
lea r8, [rsp + 0xb0]
mov ecx, 5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140008103
mov edi, dword [rsp + 0xb0]
test rdi, rdi
je 0x140008115
lea rdx, [rdi + rdi]
mov ecx, 8
call fcn.14003b500
test rax, rax
je 0x14000acb6
mov rbx, rax
jmp 0x14000811a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [rsp + 0xb0]
test rdi, rdi
jne 0x1400080e7
mov ebx, 2
movabs r12, 0x8000000000000000
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
lea rsi, [rsp + 0xb0]
mov ecx, 5
mov rdx, rbx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140008173
test rdi, rdi
je 0x140008195
lea rax, [rdi + rdi]
xor r14d, r14d
nop dword [rax]
cmp word [rbx + r14*2], 0
je 0x140008199
inc r14
add rax, 0xfffffffffffffffe
jne 0x140008160
jmp 0x1400081ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
je 0x140008190
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r13, r12
jmp 0x1400081f2
xor edi, edi
jmp 0x1400081ad
mov r15, r14
sub r15, rdi
ja 0x14000abbf
mov qword [rsp + 0x60], r14
mov rdi, r14
lea rcx, [rsp + 0xe0]
mov rdx, rbx
mov r8, rdi
call fcn.140010aa0
mov r13, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xf0]
cmp qword [rsp + 0x50], 0
je 0x1400081f2
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [0x141cf126d]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
movabs rax, 0x64647e88bdec035d
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x50]
mov rdx, qword [rsp + 0x50]
call fcn.140006aa0
movabs rcx, 0x3ed7cdc401884199
xor rcx, qword [rax]
mov edx, 0x2a8ae013
xor edx, dword [rax + 8]
movzx r8d, byte [rax + 0xe]
movzx eax, word [rax + 0xc]
mov r9d, eax
shr r9d, 8
xor al, 0xb7
xor r9b, 0xd1
xor r8b, 0x9f
mov r10d, 1
mov qword [rsp + 0xe0], rcx
mov dword [rsp + 0xe8], edx
mov byte [rsp + 0xec], al
mov byte [rsp + 0xed], r9b
mov byte [rsp + 0xee], r8b
cmp r13, r12
cmovne r10, rdi
je 0x1400082b0
cmp r14, 0xf
jne 0x1400082b0
mov rax, qword [rdi]
xor rax, qword [rsp + 0xe0]
mov rcx, qword [rdi + 7]
xor rcx, qword [rsp + 0xe7]
or rcx, rax
je 0x140009292
mov qword [rsp + 0x228], r10
lea rcx, [rsp + 0xe0]
call fcn.140043220
cmp byte [rsp + 0xe0], 0x12
jne 0x14000acb6
lea rsi, [rsp + 0xc0]
lea rax, [0x141cf0b82]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xe0], eax
lea rax, [0x141cf1dd8]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xe0]
mov rcx, qword [rsp + 0xe0]
movabs rax, 0x53cc4d084280e312
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0xe0]
mov rdx, qword [rsp + 0xe0]
call fcn.1400067e0
movabs rcx, 0x4d0fe5dca2bbf19
xor rcx, qword [rax]
movabs rdx, 0xf42be9d5787129d0
xor rdx, qword [rax + 8]
movabs r8, 0x4204784aab30a6fd
xor r8, qword [rax + 0x10]
movabs r9, 0x35a4740b6ca6874c
xor r9, qword [rax + 0x18]
movzx r10d, byte [rax + 0x22]
movzx eax, word [rax + 0x20]
mov r11d, eax
shr r11d, 8
xor al, 0xb9
xor r11b, 0x7a
xor r10b, 0x8c
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov byte [rsp + 0x70], al
mov byte [rsp + 0x71], r11b
mov byte [rsp + 0x72], r10b
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0xb8], 0x23
mov qword [rsp + 0x38], rsi
lea rax, [0x1400040e0]
mov qword [rsp + 0x40], rax
lea rax, [0x1400586d8]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], 2
mov qword [rsp + 0x100], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], 1
lea rcx, [rsp + 0xe0]
call fcn.140031190
test r13, r13
je 0x14000a51b
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, rdi
jmp 0x14000a515
mov qword [rsp + 0x20], 2
lea rcx, [rsp + 0x50]
mov r9d, 2
mov rdx, rdi
mov r8, r15
call fcn.140056440
mov rbx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
lea rcx, [rbx + r12*2]
cmp r15, 2
jb 0x14000ac17
not rdi
add r14, rdi
add r14, r14
xor edx, edx
mov r8, r14
call fcn.1400522a0
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
movabs r12, 0x8000000000000000
jmp 0x1400081a5