Function at 0x14001c820
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x14012d228]
xor rax, rsp
mov qword [rbp + 0x480], rax
movzx r13d, dl
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor sil, sil
mov byte [rsp + 0x44], sil
mov dword [rsp + 0x58], 0x110
movzx eax, r15w
lea rdi, [rbp + 0x260]
mov ecx, 0x110
rep stosw word [rdi], ax
lea rcx, str.secur32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r12, rax
test rax, rax
jne 0x14001c94c
lea rcx, str.secur32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
mov byte [rsp + 0x44], 1
test rax, rax
jne 0x14001c94c
mov ecx, dword [0x140132b68]
mov eax, dword [0x140132b64]
add ecx, eax
je 0x14001c933
mov dword [rbp - 0x78], r15d
lea rcx, [rbp - 0x80]
call fcn.140010310
nop
mov dword [rsp + 0x40], 1
mov rax, qword [rbp - 0x80]
test rax, rax
jne 0x14001c8f9
lea rcx, [rbp - 0x80]
call fcn.140010310
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x50], 0x20
lea rax, str.Fail_1:_secur32.dll
mov qword [rsp + 0x28], rax
lea rbx, str.UserNameUtils::GetUserNameForTL
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x50]
movsx edx, r15w
call fcn.14000ef60
nop
test byte [rsp + 0x40], 1
je 0x14001cffd
lea rcx, [rbp - 0x80]
call fcn.14000c0b0
jmp 0x14001cffd
lea rdx, [0x1400f4740]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14001c9f0
mov ecx, dword [0x140132b68]
mov eax, dword [0x140132b64]
add ecx, eax
je 0x14001c9d7
mov dword [rbp - 0x68], r15d
lea rcx, [rbp - 0x70]
call fcn.140010310
nop
mov dword [rsp + 0x40], 2
mov rax, qword [rbp - 0x70]
test rax, rax
jne 0x14001c99d
lea rcx, [rbp - 0x70]
call fcn.140010310
mov rcx, qword [rbp - 0x70]
mov dword [rsp + 0x54], 0x20
lea rax, str.Fail_2:_pfnGetUserNameExW
mov qword [rsp + 0x28], rax
lea rbx, str.UserNameUtils::GetUserNameForTL
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x54]
movsx edx, r15w
call fcn.14000ef60
nop
test byte [rsp + 0x40], 2
je 0x14001cfe8
lea rcx, [rbp - 0x70]
call fcn.14000c0b0
jmp 0x14001cfe8
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0x260]
mov ecx, 2
call qword [case.0x140029715.0]
mov ecx, dword [0x140132b68]
test al, al
mov eax, dword [0x140132b64]
jne 0x14001caa7
add ecx, eax
je 0x14001ca8e
mov dword [rbp - 0x58], r15d
lea rcx, [rbp - 0x60]
call fcn.140010310
nop
mov dword [rsp + 0x40], 4
mov rax, qword [rbp - 0x60]
test rax, rax
jne 0x14001ca47
lea rcx, [rbp - 0x60]
call fcn.140010310
mov rdi, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], 0x20
mov dword [rsp + 0x30], eax
lea rax, str.Fail_2:_pfnGetUserNameExW_call_failed_error__lu
mov qword [rsp + 0x28], rax
lea rbx, str.UserNameUtils::GetUserNameForTL
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x5c]
movsx edx, r15w
mov rcx, rdi
call fcn.14000ef60
nop
test byte [rsp + 0x40], 4
je 0x14001cfe8
lea rcx, [rbp - 0x60]
call fcn.14000c0b0
jmp 0x14001cfe8
lea rbx, str.UserNameUtils::GetUserNameForTL
add ecx, eax
je 0x14001cb1a
xor edi, edi
mov dword [rbp - 0x48], edi
lea rcx, [rbp - 0x50]
call fcn.140010310
nop
mov dword [rsp + 0x40], 8
mov rax, qword [rbp - 0x50]
test rax, rax
jne 0x14001cadb
lea rcx, [rbp - 0x50]
call fcn.140010310
mov rcx, qword [rbp - 0x50]
mov dword [rsp + 0x60], 0x20
lea rax, [rbp + 0x260]
mov qword [rsp + 0x30], rax
lea rax, str.wzDomainNameAndUserName_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x60]
movsx edx, di
call fcn.14000ef60
jmp 0x14001cb1c
xor edi, edi
mov eax, dword [rsp + 0x40]
test al, 8
je 0x14001cb34
and eax, 0xfffffff7
mov dword [rsp + 0x40], eax
lea rcx, [rbp - 0x50]
call fcn.14000c0b0
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x48]
lea rdx, [0x1400f33c0]
lea rcx, [rbp + 0x260]
call fcn.1400c4f74
mov r15, rax
test rax, rax
je 0x14001cc09
cmp word [rax], 0
je 0x14001cc09
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14001cc04
cmp word [rax], 0
je 0x14001cc04
mov ecx, dword [0x140132b68]
mov eax, dword [0x140132b64]
add ecx, eax
je 0x14001cbea
mov dword [rbp - 0x38], edi
lea rcx, [rbp - 0x40]
call fcn.140010310
nop
or dword [rsp + 0x40], 0x10
mov rax, qword [rbp - 0x40]
test rax, rax
jne 0x14001cbb3
lea rcx, [rbp - 0x40]
call fcn.140010310
mov rcx, qword [rbp - 0x40]
mov dword [rsp + 0x64], 0x10
mov qword [rsp + 0x30], r15
lea rax, str.domainName___s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x64]
movsx edx, di
call fcn.14000ef60
nop
mov eax, dword [rsp + 0x40]
test al, 0x10
je 0x14001cc09
and eax, 0xffffffef
mov dword [rsp + 0x40], eax
lea rcx, [rbp - 0x40]
call fcn.14000c0b0
jmp 0x14001cc09
mov qword [rsp + 0x48], r15
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x14001ccb0
cmp word [r8], 0
je 0x14001ccb0
mov ecx, dword [0x140132b68]
mov eax, dword [0x140132b64]
add ecx, eax
je 0x14001cc92
mov dword [rbp - 0x28], edi
lea rcx, [rbp - 0x30]
call fcn.140010310
nop
or dword [rsp + 0x40], 0x20
mov rax, qword [rbp - 0x30]
test rax, rax
jne 0x14001cc56
lea rcx, [rbp - 0x30]
call fcn.140010310
mov rcx, qword [rbp - 0x30]
mov dword [rsp + 0x68], 0x10
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, str.userName___s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x68]
movsx edx, di
call fcn.14000ef60
nop
mov eax, dword [rsp + 0x40]
test al, 0x20
je 0x14001ccb0
and eax, 0xffffffdf
mov dword [rsp + 0x40], eax
lea rcx, [rbp - 0x30]
call fcn.14000c0b0
nop word [rax + rax]
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
movzx eax, di
lea rdi, [rbp + 0x50]
mov ecx, 0x101
rep stosw word [rdi], ax
test r15, r15
je 0x14001ccf5
mov r8, r15
mov edx, 0x10
lea rcx, [rbp + 0x10]
call fcn.1400bfb90
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x14001cd0d
mov edx, 0x101
lea rcx, [rbp + 0x50]
call fcn.1400bfb90
mov dword [rsp + 0x6c], 0x10
xor r15d, r15d
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r15
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14001cdcd
mov ecx, dword [0x140132b68]
mov eax, dword [0x140132b64]
add ecx, eax
je 0x14001cdb4
mov dword [rbp - 0x18], r15d
lea rcx, [rbp - 0x20]
call fcn.140010310
nop
or dword [rsp + 0x40], 0x40
mov rax, qword [rbp - 0x20]
test rax, rax
jne 0x14001cd74
lea rcx, [rbp - 0x20]
call fcn.140010310
mov rdi, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x30], eax
lea rax, str.GetComputerNameW_failed_with_error__lu
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x70]
movsx edx, r15w
mov rcx, rdi
call fcn.14000ef60
nop
test byte [rsp + 0x40], 0x40
je 0x14001cfe8
lea rcx, [rbp - 0x20]
call fcn.14000c0b0
jmp 0x14001cfe8
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
call fcn.1400bff60
mov rdi, 0xffffffffffffffff
test eax, eax
jne 0x14001cf3d
mov ecx, dword [0x140132b68]
mov eax, dword [0x140132b64]
test r13b, r13b
jne 0x14001ce89
add ecx, eax
je 0x14001ce6f
mov dword [rbp - 8], r15d
lea rcx, [rbp - 0x10]
call fcn.140010310
nop
or dword [rsp + 0x40], 0x80
mov rax, qword [rbp - 0x10]
test rax, rax
jne 0x14001ce2a
lea rcx, [rbp - 0x10]
call fcn.140010310
mov rcx, qword [rbp - 0x10]
mov dword [rsp + 0x74], 0x20
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, str.The_computer_name___s__is_identical_to_the_domain_name___s_._Removing_domain_name...
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x74]
movsx edx, r15w
call fcn.14000ef60
nop
test byte [rsp + 0x40], 0x80
je 0x14001ce7f
lea rcx, [rbp - 0x10]
call fcn.14000c0b0
mov word [rbp + 0x10], r15w
jmp 0x14001cf3d
add ecx, eax
je 0x14001cefa
mov dword [rbp + 8], r15d
lea rcx, [rbp]
call fcn.140010310
nop
or dword [rsp + 0x40], 0x100
mov rax, qword [rbp]
test rax, rax
jne 0x14001ceb5
lea rcx, [rbp]
call fcn.140010310
mov rcx, qword [rbp]
mov dword [rsp + 0x78], 0x20
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, str.The_computer_name___s__is_identical_to_the_domain_name___s_._Keeping_the_domain_name_as_uppercase_string...
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x140000000]
lea r8, [rsp + 0x78]
movsx edx, r15w
call fcn.14000ef60
nop
test dword [rsp + 0x40], 0x100
je 0x14001cf0d
lea rcx, [rbp]
call fcn.14000c0b0
lea rax, [rbp + 0x10]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001cf14
mov rsi, r15
test rbx, rbx
je 0x14001cf3d
movzx ecx, word [rbp + rsi*2 + 0x10]
call fcn.1400c4ce0
mov word [rbp + rsi*2 + 0x10], ax
inc rsi
cmp rsi, rbx
jb 0x14001cf26
lea rax, [rbp + 0x50]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x14001cf44
lea rdx, [rbp + 0x50]
mov rcx, r14
cmp word [rbp + 0x10], 0
je 0x14001cfda
call fcn.140004260
lea rdx, [0x1400f33c4]
mov rcx, r14
call fcn.14000a4c0
lea rax, [rbp + 0x10]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001cf75
mov rcx, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x18]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14001cfbe
lea rsi, [rcx + rdi]
mov qword [r14 + 0x10], rsi
mov rbx, r14
cmp rdx, 8
jb 0x14001cfa6
mov rbx, qword [r14]
lea r8, [rdi + rdi]
lea rcx, [rbx + rcx*2]
lea rdx, [rbp + 0x10]
call fcn.1400bac40
mov word [rbx + rsi*2], r15w
jmp 0x14001cfdf
lfence
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x10]
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call fcn.140006700
jmp 0x14001cfdf
call fcn.140004260
cmp qword [r14 + 0x10], 0
setne sil
test r12, r12
je 0x14001cffd
cmp byte [rsp + 0x44], 0
je 0x14001cffd
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, sil
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14005aef0
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret