Function at 0x1400df790
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x298
movaps xmmword [rsp + 0x280], xmm6
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x278], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov qword [rcx + 0x10], rax
movaps xmm6, xmmword [0x1400f7a90]
movups xmmword [rcx], xmm6
cmp byte [rdx + 0x17], 0
js 0x1400df8c5
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsi], xmm0
movsx rcx, byte [rsi + 0x17]
mov rax, rcx
test rcx, rcx
jns 0x1400df806
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400dfd6b
cmp rax, 1
je 0x1400df86e
mov rdx, rsi
test cl, cl
jns 0x1400df81f
mov rdx, qword [rsi]
movzx r8d, word [rdx]
cmp r8d, 0x27
je 0x1400df83f
cmp r8d, 0x22
jne 0x1400df86e
cmp word [rdx + rax*2 - 2], 0x22
jne 0x1400df86e
jmp 0x1400df847
mov qword [rsi + 8], r8
jmp 0x1400df857
cmp word [rdx + rax*2 - 2], 0x27
jne 0x1400df86e
lea r8, [rax - 1]
test cl, cl
js 0x1400df839
and r8b, 0x7f
mov byte [rsi + 0x17], r8b
mov word [rdx + rax*2 - 2], 0
mov r8d, 1
mov rcx, rsi
xor edx, edx
call fcn.1400675c0
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
test rdi, rdi
je 0x1400df8a7
lea rdx, [0x140109d32]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdi
xor r12d, r12d
lea rdi, str._windows
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
jmp 0x1400dfa55
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, rsi
mov rdx, rax
call fcn.140067030
jmp 0x1400df7f5
movsx r10, byte [rsi + 0x17]
mov rbx, r10
test r10, r10
jns 0x1400df8ed
mov rbx, qword [rsi + 8]
mov r11, rbp
add r11, r13
cmp rbx, r11
jbe 0x1400df90f
mov rbx, rsi
test r10b, r10b
jns 0x1400df903
mov rbx, qword [rsi]
cmp word [rbx + r11*2], 0x5c
je 0x1400dfe3a
mov edx, eax
lea rbx, [rsp + 0x50]
jmp 0x1400df9c5
sar r13, 1
jmp 0x1400df923
xor r13d, r13d
add rbx, rdi
mov rcx, rbp
call fcn.1400a4b38
mov rbp, rax
mov r8d, 0x208
lea r14, [rsp + 0x70]
mov rcx, r14
mov dl, 0xaa
call fcn.1400bad40
mov r8d, dword [rbx + 8]
xor ecx, ecx
mov rdx, r14
xor r9d, r9d
mov rax, qword [rsp + 0x38]
call qword [0x140112388]
test eax, eax
jne 0x1400df968
mov word [rsp + 0x70], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0x50], xmm6
lea rbx, [rsp + 0x50]
mov rcx, rbx
lea rdx, [rsp + 0x70]
call fcn.140065ce0
movsx rax, byte [rsp + 0x67]
test rax, rax
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov rdx, rax
cmovs rdx, rcx
test rdx, rdx
je 0x1400df9c3
test al, al
mov r8, rbx
cmovs r8, r9
cmp word [r8 + rdx*2 - 2], 0x5c
je 0x1400df8dc
mov edx, eax
test dl, dl
cmovs rax, rcx
cmovns r9, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, r13
mov r8, rbp
call fcn.1400d3c70
cmp byte [rsp + 0x67], 0
jns 0x1400dfa48
mov rcx, qword [rsp + 0x50]
call fcn.140085d7c
jmp 0x1400dfa48
mov rdx, r10
sub rdx, r11
add r11, r14
add r11, 2
sub rdx, r14
sar rdx, 1
cmp rdx, rax
jge 0x1400dfaae
jmp 0x1400dfa48
mov r13, r11
add r13, r14
je 0x1400dfa48
xor edx, edx
movzx r15d, word [r13 + rdx*2]
cmp r15w, word [rbp + rdx*2]
jne 0x1400df9f5
inc rdx
cmp rax, rdx
jne 0x1400dfa1d
cmp r13, r8
je 0x1400dfa48
sub r13, rcx
mov rax, r13
add rax, 2
jne 0x1400df91b
inc r12
cmp r12, 7
je 0x1400dfb90
mov rbx, r12
shl rbx, 4
mov rbp, qword [rbx + rdi]
test rbp, rbp
je 0x1400dfe73
mov rcx, rbp
call fcn.1400a4b38
movsx rdx, byte [rsi + 0x17]
mov rcx, rsi
test rdx, rdx
jns 0x1400dfa81
mov rcx, qword [rsi]
test rax, rax
je 0x1400df920
test dl, dl
jns 0x1400dfa92
mov rdx, qword [rsi + 8]
cmp rdx, rax
jl 0x1400dfa48
lea r10, [rdx + rdx]
lea r8, [rcx + rdx*2]
movzx r9d, word [rbp]
add r10, rcx
add r10, 0xfffffffffffffffe
mov r11, rcx
mov r14, rdx
sub r14, rax
inc r14
je 0x1400dfa48
inc rdx
xor r14d, r14d
cmp word [r11 + r14], r9w
je 0x1400dfa13
add r14, 2
dec rdx
cmp rax, rdx
jne 0x1400dfabf
jmp 0x1400dfa48
mov r13, r11
add r13, rdi
je 0x1400dfc08
cmp word [r11 + rdi + 2], 0x7b
jne 0x1400dfb06
cmp word [r11 + rdi + 4], 0x75
jne 0x1400dfb06
cmp word [r11 + rdi + 6], 0x73
je 0x1400e0232
mov rbx, r10
sub rbx, r11
add r11, rdi
add r11, 2
sub rbx, rdi
sar rbx, 1
cmp rbx, 0xc
jge 0x1400dfbed
jmp 0x1400dfc08
mov r15, r9
add r15, r10
je 0x1400dfc4a
cmp word [r9 + r10 + 2], 0x7b
jne 0x1400dfb53
cmp word [r9 + r10 + 4], 0x6d
jne 0x1400dfb53
cmp word [r9 + r10 + 6], 0x61
je 0x1400e00c5
mov rcx, r8
sub rcx, r9
add r9, r10
add r9, 2
sub rcx, r10
sar rcx, 1
cmp rcx, 0xf
jge 0x1400dfc2e
jmp 0x1400dfc4a
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x1400dfc76
movabs r12, 0xaaaaaaaaaaaaaaaa
jmp 0x1400dfbb8
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x1400dfb84
lea rdx, [0x140109de2]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, rsi
cmovs r8, rax
mov rbx, rcx
cmovs rbx, rdx
cmp rbx, 0xc
jl 0x1400dfc08
lea r10, [rbx + rbx]
lea r9, [r8 + rbx*2]
add r10, r8
add r10, 0xfffffffffffffffe
mov r11, r8
add rbx, 0xfffffffffffffff5
xor edi, edi
cmp word [r11 + rdi], 0x24
je 0x1400dfadb
add rdi, 2
dec rbx
jne 0x1400dfbf3
mov r8d, ecx
test r8b, r8b
cmovns rax, rsi
cmovs rcx, rdx
cmp rcx, 0xf
jl 0x1400dfc4a
lea r8, [rcx + rcx]
lea rdx, [rax + rcx*2]
add r8, rax
add r8, 0xfffffffffffffffe
mov r9, rax
add rcx, 0xfffffffffffffff2
xor r10d, r10d
cmp word [r9 + r10], 0x24
je 0x1400dfb28
add r10, 2
dec rcx
jne 0x1400dfc35
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x1400dfb75
lea rdx, [0x140109e0c]
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 0x1400dfca0
lea rdx, [0x140109e44]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, rsi
cmovs r8, rax
mov rbx, rcx
cmovs rbx, rdx
cmp rbx, 0xe
jl 0x1400dfcf0
lea r10, [rbx + rbx]
lea r9, [r8 + rbx*2]
add r10, r8
add r10, 0xfffffffffffffffe
mov r11, r8
add rbx, 0xfffffffffffffff3
xor edi, edi
cmp word [r11 + rdi], 0x24
je 0x1400dfdd2
add rdi, 2
dec rbx
jne 0x1400dfcdb
mov r8d, ecx
test r8b, r8b
cmovns rax, rsi
cmovs rcx, rdx
cmp rcx, 0xf
jl 0x1400dfd2e
lea r8, [rcx + rcx]
lea rdx, [rax + rcx*2]
add r8, rax
add r8, 0xfffffffffffffffe
mov r9, rax
add rcx, 0xfffffffffffffff2
xor r10d, r10d
cmp word [r9 + r10], 0x24
je 0x1400dfd89
add r10, 2
dec rcx
jne 0x1400dfd1d
test r12, r12
je 0x1400dfd3c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x1400dfd4a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
mov rdi, qword [rsp + 0x40]
je 0x1400dfd5d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rdi, rdi
je 0x1400dfd6b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x1400dfe1b
call fcn.1400870e0
int3
mov rbp, r9
add rbp, r10
je 0x1400dfd2e
cmp word [r9 + r10 + 2], 0x7b
jne 0x1400dfdb0
cmp word [r9 + r10 + 4], 0x73
jne 0x1400dfdb0
cmp word [r9 + r10 + 6], 0x65
je 0x1400dff61
mov rcx, r8
sub rcx, r9
add r9, r10
add r9, 2
sub rcx, r10
sar rcx, 1
cmp rcx, 0xf
jge 0x1400dfd16
jmp 0x1400dfd2e
mov rbp, r11
add rbp, rdi
je 0x1400dfcf0
cmp word [r11 + rdi + 2], 0x7b
jne 0x1400dfdf9
cmp word [r11 + rdi + 4], 0x63
jne 0x1400dfdf9
cmp word [r11 + rdi + 6], 0x6c
je 0x1400dfe75
mov rbx, r10
sub rbx, r11
add r11, rdi
add r11, 2
sub rbx, rdi
sar rbx, 1
cmp rbx, 0xe
jge 0x1400dfcd5
jmp 0x1400dfcf0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rdx - 1]
test al, al
lea rbx, [rsp + 0x50]
js 0x1400dfe50
and cl, 0x7f
mov byte [rsp + 0x67], cl
jmp 0x1400dfe55
mov qword [rsp + 0x58], rcx
mov word [r8 + rdx*2 - 2], 0
mov dl, byte [rsp + 0x67]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx eax, dl
jmp 0x1400df9c5
ud2
cmp word [r11 + rdi + 8], 0x69
jne 0x1400dfdf9
cmp word [r11 + rdi + 0xa], 0x65
jne 0x1400dfdf9
cmp word [r11 + rdi + 0xc], 0x6e
jne 0x1400dfdf9
cmp word [r11 + rdi + 0xe], 0x74
jne 0x1400dfdf9
cmp word [r11 + rdi + 0x10], 0x5f
jne 0x1400dfdf9
cmp word [r11 + rdi + 0x12], 0x6e
jne 0x1400dfdf9
cmp word [r11 + rdi + 0x14], 0x61
jne 0x1400dfdf9
cmp word [r11 + rdi + 0x16], 0x6d
jne 0x1400dfdf9
cmp word [r11 + rdi + 0x18], 0x65
jne 0x1400dfdf9
cmp word [r11 + rdi + 0x1a], 0x7d
jne 0x1400dfdf9
cmp rbp, r9
je 0x1400dfcf0
sub rbp, r8
mov r9, rbp
mov r8d, ecx
add r9, 2
je 0x1400dfcf3
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rax, [rsp + 0x4c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 0xa
mov rax, r13
call qword [0x140112388]
test eax, eax
jne 0x1400e0391
mov r8b, byte [rsi + 0x17]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
movzx ecx, r8b
jmp 0x1400dfcf3
cmp word [r9 + r10 + 8], 0x73
jne 0x1400dfdb0
cmp word [r9 + r10 + 0xa], 0x73
jne 0x1400dfdb0
cmp word [r9 + r10 + 0xc], 0x69
jne 0x1400dfdb0
cmp word [r9 + r10 + 0xe], 0x6f
jne 0x1400dfdb0
cmp word [r9 + r10 + 0x10], 0x6e
jne 0x1400dfdb0
cmp word [r9 + r10 + 0x12], 0x5f
jne 0x1400dfdb0
cmp word [r9 + r10 + 0x14], 0x6e
jne 0x1400dfdb0
cmp word [r9 + r10 + 0x16], 0x61
jne 0x1400dfdb0
cmp word [r9 + r10 + 0x18], 0x6d
jne 0x1400dfdb0
cmp word [r9 + r10 + 0x1a], 0x65
jne 0x1400dfdb0
cmp word [r9 + r10 + 0x1c], 0x7d
jne 0x1400dfdb0
cmp rbp, rdx
je 0x1400dfd2e
sub rbp, rax
mov rax, rbp
add rax, 2
je 0x1400dfd2e
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rax, [rsp + 0x4c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 6
mov rax, r13
call qword [0x140112388]
test eax, eax
je 0x1400dfd2e
sar rbp, 1
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x70]
mov qword [r13 + 0x10], rax
movaps xmmword [r13], xmm6
mov rdx, qword [rsp + 0x50]
mov rcx, r13
call fcn.140065ce0
movsx rax, byte [r13 + 0x17]
test rax, rax
jns 0x1400e007f
mov rax, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, rsi
mov rdx, rbp
mov r9, r13
call fcn.1400d3c70
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x28]
call qword [0x140112388]
cmp byte [rsp + 0x87], 0
jns 0x1400dfd2e
mov rcx, qword [rsp + 0x70]
call fcn.140085d7c
jmp 0x1400dfd2e
cmp word [r9 + r10 + 8], 0x63
jne 0x1400dfb53
cmp word [r9 + r10 + 0xa], 0x68
jne 0x1400dfb53
cmp word [r9 + r10 + 0xc], 0x69
jne 0x1400dfb53
cmp word [r9 + r10 + 0xe], 0x6e
jne 0x1400dfb53
cmp word [r9 + r10 + 0x10], 0x65
jne 0x1400dfb53
cmp word [r9 + r10 + 0x12], 0x5f
jne 0x1400dfb53
cmp word [r9 + r10 + 0x14], 0x6e
jne 0x1400dfb53
cmp word [r9 + r10 + 0x16], 0x61
jne 0x1400dfb53
cmp word [r9 + r10 + 0x18], 0x6d
jne 0x1400dfb53
cmp word [r9 + r10 + 0x1a], 0x65
jne 0x1400dfb53
cmp word [r9 + r10 + 0x1c], 0x7d
jne 0x1400dfb53
cmp r15, rdx
je 0x1400dfc4a
sub r15, rax
mov rax, r15
add rax, 2
je 0x1400dfc4a
lea r12, [rsp + 0x50]
mov dword [r12], 0
mov ecx, 5
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [r12]
test rcx, rcx
je 0x1400dfc4a
sar r15, 1
add rcx, rcx
call fcn.140085dbc
mov r12, rax
lea r8, [rsp + 0x50]
mov ecx, 5
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r13, [rsp + 0x70]
mov qword [r13 + 0x10], rax
movaps xmmword [r13], xmm6
mov rcx, r13
mov rdx, r12
call fcn.140065ce0
movsx rax, byte [r13 + 0x17]
test rax, rax
jns 0x1400e01ef
mov rax, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, rsi
mov rdx, r15
mov r9, r13
call fcn.1400d3c70
cmp byte [rsp + 0x87], 0
jns 0x1400e021c
mov rcx, qword [rsp + 0x70]
call fcn.140085d7c
test r12, r12
je 0x1400dfc4a
mov rcx, r12
call fcn.140085dc4
jmp 0x1400dfc4a
cmp word [r11 + rdi + 8], 0x65
jne 0x1400dfb06
cmp word [r11 + rdi + 0xa], 0x72
jne 0x1400dfb06
cmp word [r11 + rdi + 0xc], 0x5f
jne 0x1400dfb06
cmp word [r11 + rdi + 0xe], 0x6e
jne 0x1400dfb06
cmp word [r11 + rdi + 0x10], 0x61
jne 0x1400dfb06
cmp word [r11 + rdi + 0x12], 0x6d
jne 0x1400dfb06
cmp word [r11 + rdi + 0x14], 0x65
jne 0x1400dfb06
cmp word [r11 + rdi + 0x16], 0x7d
jne 0x1400dfb06
cmp r13, r9
je 0x1400dfc08
sub r13, r8
mov r9, r13
mov r8d, ecx
add r9, 2
je 0x1400dfc0b
lea rbp, [rsp + 0x50]
mov dword [rbp], 0
xor ecx, ecx
mov rdx, rbp
mov rax, r12
call qword [0x140112388]
mov ecx, dword [rbp]
test rcx, rcx
jne 0x1400e02ec
mov r8b, byte [rsi + 0x17]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
movzx ecx, r8b
jmp 0x1400dfc0b
sar r13, 1
add rcx, rcx
call fcn.140085dbc
mov rbp, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
mov rax, r12
call qword [0x140112388]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
lea rcx, [rsp + 0x70]
mov rdx, rbp
call fcn.140065ce0
movsx rax, byte [rsp + 0x87]
test rax, rax
jns 0x1400e034c
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
mov r8d, 0xc
mov rcx, rsi
mov rdx, r13
mov r9, qword [rsp + 0x30]
call fcn.1400d3c70
cmp byte [rsp + 0x87], 0
jns 0x1400e037b
mov rcx, qword [rsp + 0x70]
call fcn.140085d7c
test rbp, rbp
je 0x1400e02d8
mov rcx, rbp
call fcn.140085dc4
jmp 0x1400e02d8
sar rbp, 1
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], rax
movaps xmmword [rdi], xmm6
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140065ce0
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x1400e03cb
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xe
mov rcx, rsi
mov rdx, rbp
mov r9, rdi
call fcn.1400d3c70
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x28]
call qword [0x140112388]
cmp byte [rsp + 0x87], 0
jns 0x1400dff4d
mov rcx, qword [rsp + 0x70]
call fcn.140085d7c
jmp 0x1400dff4d