Function at 0x1802f03dd
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x288
movaps xmmword [rsp + 0x270], xmm6
mov rsi, rcx
mov rax, qword [0x1803b6038]
xor rax, rsp
mov qword [rsp + 0x268], rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rcx + 0x10], rdi
movaps xmm6, xmmword [0x1803467d0]
movups xmmword [rcx], xmm6
cmp byte [rdx + 0x17], 0
js 0x1802f0480
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
movzx eax, byte [rsi + 0x17]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rsi + 8]
cmovs rdx, rcx
test rdx, rdx
jne 0x1802f0494
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.1801e6610
mov rax, rsi
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
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rsi
mov rdx, rax
call fcn.1800fa6fa
jmp 0x1802f0439
mov edx, eax
and edx, 0x7e
test al, al
cmovs rdx, rcx
cmp rdx, 2
jb 0x1802f04f5
mov rcx, rsi
call fcn.1802f0a76
cmp word [rax], 0x22
jne 0x1802f04c1
mov rcx, rsi
call fcn.1800d2c88
cmp word [rax], 0x22
je 0x1802f04dd
mov rcx, rsi
call fcn.1802f0a76
cmp word [rax], 0x27
jne 0x1802f04f5
mov rcx, rsi
call fcn.1800d2c88
cmp word [rax], 0x27
jne 0x1802f04f5
mov rcx, rsi
call fcn.1802c53e4
mov r8d, 1
mov rcx, rsi
xor edx, edx
call fcn.1800f5ca0
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x28], rdi
test rax, rax
je 0x1802f0524
lea rdx, [0x180395126]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov edi, 8
lea r14, str._windows
lea r15, [rsp + 0x60]
lea r12, [rsp + 0x40]
jmp 0x1802f05b3
mov rax, qword [rsi + 8]
mov rdx, rbp
add rdx, r13
cmp rax, rdx
jbe 0x1802f0566
mov rcx, rsi
call fcn.1800d94aa
cmp word [rax], 0x5c
jne 0x1802f0566
mov rcx, r12
call fcn.1802c53e4
movzx eax, byte [rsp + 0x57]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
cmovns r9, r12
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov rdx, r13
mov r8, rbp
call fcn.1802c5fc4
cmp byte [rsp + 0x57], 0
jns 0x1802f05a5
mov rcx, qword [rsp + 0x40]
call fcn.1801e4f44
add rdi, 0x10
cmp rdi, 0x78
je 0x1802f0678
mov rbx, qword [rdi + r14 - 8]
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.18016c4fa
cmp rax, 0xffffffffffffffff
je 0x1802f05a5
mov r13, rax
mov rcx, rbx
call fcn.180206ad4
mov rbp, rax
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.1801e8860
mov r8d, dword [rdi + r14]
xor ecx, ecx
mov rdx, r15
xor r9d, r9d
mov rax, qword [rsp + 0x28]
call qword [0x1803f5008]
test eax, eax
jne 0x1802f060c
mov word [rsp + 0x60], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x40], xmm6
mov rcx, r15
call fcn.180206ad4
mov rcx, r12
mov rdx, r15
mov r8, rax
call fcn.1800fa5f4
movzx eax, byte [rsp + 0x57]
test al, al
js 0x1802f0644
and eax, 0x7f
jmp 0x1802f0649
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1802f0566
mov rcx, r12
call fcn.1800d2c88
cmp word [rax], 0x5c
jne 0x1802f0566
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1802f0541
and eax, 0x7f
jmp 0x1802f0545
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov rbp, rdi
test rax, rax
je 0x1802f06ad
lea rdx, [0x1803951ca]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
lea rdx, str._user_name
mov rcx, rsi
xor r8d, r8d
call fcn.18016c4fa
cmp rax, 0xffffffffffffffff
je 0x1802f077a
mov r12, rax
lea rbx, [rsp + 0x40]
mov dword [rbx], 0
xor ecx, ecx
mov rdx, rbx
mov rax, rbp
call qword [0x1803f5008]
mov ecx, dword [rbx]
test rcx, rcx
je 0x1802f077a
add rcx, rcx
call fcn.1801e4f7c
mov r13, rax
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rax, rbp
call qword [0x1803f5008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x60], xmm6
mov rcx, r15
mov rdx, r13
call fcn.1801447b6
movzx eax, byte [rsp + 0x77]
test al, al
js 0x1802f0739
and eax, 0x7f
jmp 0x1802f0743
mov rax, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xc
mov rcx, rsi
mov rdx, r12
mov r9, r15
call fcn.1802c5fc4
cmp byte [rsp + 0x77], 0
jns 0x1802f076d
mov rcx, qword [rsp + 0x60]
call fcn.1801e4f44
test r13, r13
je 0x1802f077a
mov rcx, r13
call fcn.1801e4f84
lea rdx, str._machine_name
mov rcx, rsi
xor r8d, r8d
call fcn.18016c4fa
cmp rax, 0xffffffffffffffff
je 0x1802f084c
mov r15, rax
lea rbx, [rsp + 0x40]
mov dword [rbx], 0
mov ecx, 5
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [rbx]
test rcx, rcx
je 0x1802f084c
add rcx, rcx
call fcn.1801e4f7c
mov r12, rax
lea r8, [rsp + 0x40]
mov ecx, 5
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rax
movaps xmmword [rbx], xmm6
mov rcx, rbx
mov rdx, r12
call fcn.1801447b6
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1802f080b
and eax, 0x7f
jmp 0x1802f0815
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, rsi
mov rdx, r15
mov r9, rbx
call fcn.1802c5fc4
cmp byte [rsp + 0x77], 0
jns 0x1802f083f
mov rcx, qword [rsp + 0x60]
call fcn.1801e4f44
test r12, r12
je 0x1802f084c
mov rcx, r12
call fcn.1801e4f84
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
mov r13, rdi
test rax, rax
je 0x1802f0877
lea rdx, [0x18039523a]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x1802f089f
lea rdx, [0x180395272]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str._client_name
mov rcx, rsi
xor r8d, r8d
call fcn.18016c4fa
cmp rax, 0xffffffffffffffff
je 0x1802f0966
mov rbp, rax
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
mov rax, r13
call qword [0x1803f5008]
test eax, eax
je 0x1802f0966
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rax
movaps xmmword [rbx], xmm6
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1801447b6
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1802f0924
and eax, 0x7f
jmp 0x1802f092e
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xe
mov rcx, rsi
mov rdx, rbp
mov r9, rbx
call fcn.1802c5fc4
mov rcx, qword [rsp + 0x40]
mov rax, rdi
call qword [0x1803f5008]
cmp byte [rsp + 0x77], 0
jns 0x1802f0966
mov rcx, qword [rsp + 0x60]
call fcn.1801e4f44
lea rdx, str._session_name
mov rcx, rsi
xor r8d, r8d
call fcn.18016c4fa
cmp rax, 0xffffffffffffffff
je 0x1802f09b7
mov rbp, rax
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
mov rax, r13
call qword [0x1803f5008]
test eax, eax
jne 0x1802f09fa
test r12, r12
je 0x1802f09c5
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x1802f09d3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x1802f09e1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1802f0451
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1802f0451
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], rax
movaps xmmword [rbx], xmm6
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1801447b6
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1802f0a2a
and eax, 0x7f
jmp 0x1802f0a34
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, rsi
mov rdx, rbp
mov r9, rbx
call fcn.1802c5fc4
mov rcx, qword [rsp + 0x40]
mov rax, rdi
call qword [0x1803f5008]
cmp byte [rsp + 0x77], 0
jns 0x1802f09b7
mov rcx, qword [rsp + 0x60]
call fcn.1801e4f44
jmp 0x1802f09b7