Function at 0x140037010
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x288
movdqa xmmword [rsp + 0x270], xmm6
mov rax, qword [0x140081338]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov r14, rcx
pxor xmm0, xmm0
movdqu xmmword [rcx + 0x10], xmm0
call fcn.1400070b0
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x140037577
cmp rax, 1
je 0x1400370b4
cmp qword [r14 + 0x18], 7
mov rcx, r14
jbe 0x14003706f
mov rcx, qword [r14]
movzx edx, word [rcx]
cmp edx, 0x27
je 0x14003708b
movzx edx, dx
cmp edx, 0x22
jne 0x1400370b4
movzx edx, word [rcx + rax*2 - 2]
cmp edx, 0x22
je 0x140037095
jmp 0x1400370b4
movzx edx, word [rcx + rax*2 - 2]
cmp edx, 0x27
jne 0x1400370b4
lea rdx, [rax - 1]
mov qword [r14 + 0x10], rdx
mov word [rcx + rax*2 - 2], 0
xor edx, edx
mov r8d, 1
mov rcx, r14
call fcn.1400375b0
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rsp + 0x30], rax
je 0x1400370e0
lea rdx, [0x140068c02]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
jmp 0x1400370e0
mov ebx, 8
lea r12, str._windows
lea r13, [rsp + 0x60]
mov eax, 7
movq xmm6, rax
pslldq xmm6, 8
lea rsi, [rsp + 0x40]
mov rdi, qword [rbx + r12 - 8]
xor r8d, r8d
mov rcx, r14
mov rdx, rdi
call fcn.140036970
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14003718b
mov r8d, dword [rbx + r12]
xor ecx, ecx
xor r9d, r9d
mov rdx, r13
call r15
movdqu xmmword [rsp + 0x50], xmm6
mov word [rsp + 0x40], 0
mov rcx, r13
call fcn.1400478b0
mov rcx, rsi
mov rdx, r13
mov r8, rax
call fcn.1400019a0
mov rcx, rdi
call fcn.1400478b0
mov rcx, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 7
mov r9, rsi
jbe 0x140037170
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, r14
mov rdx, rbp
mov r8, rax
call fcn.14000c0c0
mov rcx, rsi
call fcn.140001450
add rbx, 0x10
cmp rbx, 0x78
jne 0x140037105
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x1400371c3
lea rdx, [0x140068cb2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
jmp 0x1400371c3
lea rdx, str._user_name
xor r8d, r8d
mov rcx, r14
call fcn.140036970
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140037283
lea rdi, [rsp + 0x40]
mov dword [rdi], 0
xor ecx, ecx
mov rdx, rdi
call r12
mov ecx, dword [rdi]
test rcx, rcx
je 0x140037283
add rcx, rcx
call fcn.1400418b0
mov rbx, rax
lea rdx, [rsp + 0x40]
mov rcx, rax
call r12
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], 0
mov rcx, rbx
call fcn.1400478b0
mov rcx, r13
mov rdx, rbx
mov r8, rax
call fcn.1400019a0
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 7
mov r9, r13
jbe 0x14003725d
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xc
mov rcx, r14
mov rdx, rsi
call fcn.14000c0c0
mov rcx, r13
call fcn.140001450
mov rcx, rbx
call fcn.140042540
lea rdx, str._machine_name
xor r8d, r8d
mov rcx, r14
call fcn.140036970
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140037353
lea rdi, [rsp + 0x40]
mov dword [rdi], 0
mov ecx, 5
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [rdi]
test rcx, rcx
je 0x140037353
add rcx, rcx
call fcn.1400418b0
mov rdi, rax
lea r8, [rsp + 0x40]
mov ecx, 5
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
lea rbx, [rsp + 0x60]
movdqu xmmword [rbx + 0x10], xmm0
mov word [rbx], 0
mov rcx, rdi
call fcn.1400478b0
mov rcx, rbx
mov rdx, rdi
mov r8, rax
call fcn.1400019a0
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
mov r9, rbx
jbe 0x14003732d
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, r14
mov rdx, rsi
call fcn.14000c0c0
mov rcx, rbx
call fcn.140001450
mov rcx, rdi
call fcn.140042540
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x14003737d
lea rdx, [0x140068d22]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
jmp 0x14003737d
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400373a7
lea rdx, [0x140068d5a]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
jmp 0x1400373a7
lea rdx, str._client_name
xor r8d, r8d
mov rcx, r14
call fcn.140036970
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140037472
lea r9, [rsp + 0x40]
mov qword [r9], 0
lea rax, [rsp + 0x3c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 0xa
call r13
test eax, eax
je 0x140037472
mov qword [rsp + 0x28], rbp
mov r12, qword [rsp + 0x40]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
lea rbp, [rsp + 0x60]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], 0
mov rcx, r12
call fcn.1400478b0
mov rcx, rbp
mov rdx, r12
mov r8, rax
call fcn.1400019a0
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 7
mov r9, rbp
jbe 0x140037448
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xe
mov rcx, r14
mov rdx, rsi
call fcn.14000c0c0
mov rcx, qword [rsp + 0x40]
call rdi
mov rcx, rbp
call fcn.140001450
mov rbp, qword [rsp + 0x28]
lea rdx, str._session_name
xor r8d, r8d
mov rcx, r14
call fcn.140036970
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003753d
lea r9, [rsp + 0x40]
mov qword [r9], 0
lea rax, [rsp + 0x3c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 6
call r13
test eax, eax
je 0x14003753d
mov r13, rdi
mov r12, rbp
mov rdi, qword [rsp + 0x40]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
lea rbp, [rsp + 0x60]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], 0
mov rcx, rdi
call fcn.1400478b0
mov rcx, rbp
mov rdx, rdi
mov r8, rax
call fcn.1400019a0
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 7
mov r9, rbp
jbe 0x140037514
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, r14
mov rdx, rsi
call fcn.14000c0c0
mov rcx, qword [rsp + 0x40]
call r13
mov rcx, rbp
call fcn.140001450
mov rbp, r12
test rbx, rbx
je 0x14003754b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x140037559
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbp, rbp
je 0x140037567
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140037577
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.140041210
mov rax, r14
movaps xmm6, xmmword [rsp + 0x270]
add rsp, 0x288
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret