Function at 0x1400036e0
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 - 0x480]
sub rsp, 0x580
mov rax, qword [0x140098010]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov qword [rbp - 0x38], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
xor r15b, r15b
mov byte [rsp + 0x44], sil
mov dword [rbp - 8], 0x110
movzx eax, si
lea rdi, [rbp + 0x250]
mov ecx, 0x110
rep stosw word [rdi], ax
lea rcx, [0x140080470]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r13, rax
test rax, rax
jne 0x14000383e
lea rcx, [0x140080470]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r13, rax
mov byte [rsp + 0x44], 1
test rax, rax
jne 0x14000383e
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x1400037f6
mov dword [rsp + 0x50], esi
call fcn.140002930
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400037be
call fcn.140002930
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov dword [rbp - 0x30], 0x20
lea rax, str.Fail_1:_secur32.dll
mov qword [rsp + 0x28], rax
lea r14, str.UserNameUtils::GetUserNameForTL
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x30]
movsx edx, si
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 1
je 0x140003f07
and eax, 0xfffffffe
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rsi
mov rbx, 0xffffffffffffffff
mov ecx, ebx
lock xadd dword [rsp + 0x50], ecx
cmp ecx, 1
js 0x140003834
call fcn.140002cc0
mov ecx, ebx
lock xadd dword [rsp + 0x50], ecx
cmp ecx, 1
jns 0x140003822
lock inc dword [rsp + 0x50]
jmp 0x140003f07
lea rdx, str.GetUserNameExW
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000391c
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x1400038d3
mov dword [rsp + 0x60], esi
call fcn.140002930
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14000389b
call fcn.140002930
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov dword [rbp - 0x2c], 0x20
lea rax, str.Fail_2:_pfnGetUserNameExW
mov qword [rsp + 0x28], rax
lea r14, str.UserNameUtils::GetUserNameForTL
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x2c]
movsx edx, si
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 2
je 0x140003ef2
and eax, 0xfffffffd
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], rsi
mov rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
js 0x140003912
nop
call fcn.140002cc0
mov eax, ebx
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x140003900
lock inc dword [rsp + 0x60]
jmp 0x140003ef2
lea r8, [rbp - 8]
lea rdx, [rbp + 0x250]
mov ecx, 2
call rax
mov ecx, dword [0x14009c6fc]
test al, al
mov eax, dword [0x14009c6f8]
jne 0x140003a0c
add ecx, eax
je 0x1400039bf
mov dword [rsp + 0x70], esi
call fcn.140002930
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x40], 4
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x14000397a
call fcn.140002930
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x28], 0x20
mov dword [rsp + 0x30], eax
lea rax, str.Fail_2:_pfnGetUserNameExW_call_failed_error__lu
mov qword [rsp + 0x28], rax
lea r14, str.UserNameUtils::GetUserNameForTL
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x28]
movsx edx, si
mov rcx, rdi
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 4
je 0x140003ef2
and eax, 0xfffffffb
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x68], rsi
mov rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
js 0x140003a02
nop dword [rax + rax]
call fcn.140002cc0
mov eax, ebx
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x1400039f0
lock inc dword [rsp + 0x70]
jmp 0x140003ef2
lea r14, str.UserNameUtils::GetUserNameForTL
add ecx, eax
je 0x140003a85
mov dword [rbp - 0x80], esi
call fcn.140002930
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov dword [rsp + 0x40], 8
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x140003a48
call fcn.140002930
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
mov dword [rbp - 0x24], 0x20
lea rax, [rbp + 0x250]
mov qword [rsp + 0x30], rax
lea rax, str.wzDomainNameAndUserName_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x24]
movsx edx, si
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
mov rbx, 0xffffffffffffffff
test al, 8
je 0x140003ac5
and eax, 0xfffffff7
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x78], rsi
mov eax, ebx
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
js 0x140003ac1
nop dword [rax]
call fcn.140002cc0
mov eax, ebx
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
jns 0x140003ab0
lock inc dword [rbp - 0x80]
mov qword [rbp - 0x10], rsi
lea r8, [rbp - 0x10]
lea rdx, [0x14008046c]
lea rcx, [rbp + 0x250]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov r12, rax
test rax, rax
je 0x140003bbb
cmp word [rax], 0
je 0x140003bbb
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x140003bb7
cmp word [rax], 0
je 0x140003bb7
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x140003b7e
mov dword [rbp - 0x70], esi
call fcn.140002930
mov qword [rbp - 0x78], rax
lock inc dword [rbp - 0x70]
or dword [rsp + 0x40], 0x10
mov rax, qword [rbp - 0x78]
test rax, rax
jne 0x140003b49
call fcn.140002930
mov qword [rbp - 0x78], rax
lock inc dword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov dword [rbp - 0x20], 0x10
mov qword [rsp + 0x30], r12
lea rax, str.domainName___s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x20]
movsx edx, si
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 0x10
je 0x140003bbb
and eax, 0xffffffef
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x78], rsi
mov eax, ebx
lock xadd dword [rbp - 0x70], eax
cmp eax, 1
js 0x140003bb1
nop dword [rax]
call fcn.140002cc0
mov eax, ebx
lock xadd dword [rbp - 0x70], eax
cmp eax, 1
jns 0x140003ba0
lock inc dword [rbp - 0x70]
jmp 0x140003bbb
mov qword [rbp - 0x10], r12
mov r8, qword [rbp - 0x10]
test r8, r8
je 0x140003c80
cmp word [r8], 0
je 0x140003c80
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x140003c47
mov dword [rbp - 0x60], esi
call fcn.140002930
mov qword [rbp - 0x68], rax
lock inc dword [rbp - 0x60]
or dword [rsp + 0x40], 0x20
mov rax, qword [rbp - 0x68]
test rax, rax
jne 0x140003c0e
call fcn.140002930
mov qword [rbp - 0x68], rax
lock inc dword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
mov dword [rbp - 0x1c], 0x10
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea rax, str.userName___s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x1c]
movsx edx, si
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 0x20
je 0x140003c80
and eax, 0xffffffdf
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x68], rsi
mov eax, ebx
lock xadd dword [rbp - 0x60], eax
cmp eax, 1
js 0x140003c77
call fcn.140002cc0
mov eax, ebx
lock xadd dword [rbp - 0x60], eax
cmp eax, 1
jns 0x140003c66
lock inc dword [rbp - 0x60]
nop dword [rax + rax]
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
movzx eax, si
lea rdi, [rbp + 0x40]
mov ecx, 0x101
rep stosw word [rdi], ax
test r12, r12
je 0x140003cb6
mov r8, r12
mov edx, 0x10
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, qword [rbp - 0x10]
test r8, r8
je 0x140003cce
mov edx, 0x101
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rbp - 4], 0x10
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rsi
lea rdx, [rbp - 4]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140003db0
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x140003d73
mov dword [rbp - 0x50], esi
call fcn.140002930
mov qword [rbp - 0x58], rax
lock inc dword [rbp - 0x50]
or dword [rsp + 0x40], 0x40
mov rax, qword [rbp - 0x58]
test rax, rax
jne 0x140003d36
call fcn.140002930
mov qword [rbp - 0x58], rax
lock inc dword [rbp - 0x50]
mov rdi, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x38], 4
mov dword [rsp + 0x30], eax
lea rax, str.GetComputerNameW_failed_with_error__lu
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x38]
movsx edx, si
mov rcx, rdi
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, 0x40
je 0x140003ef2
and eax, 0xffffffbf
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x58], rsi
mov eax, ebx
lock xadd dword [rbp - 0x50], eax
cmp eax, 1
js 0x140003da7
call fcn.140002cc0
mov eax, ebx
lock xadd dword [rbp - 0x50], eax
cmp eax, 1
jns 0x140003d96
lock inc dword [rbp - 0x50]
jmp 0x140003ef2
lea rdx, [rbp]
lea rcx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140003e81
mov ecx, dword [0x14009c6fc]
mov eax, dword [0x14009c6f8]
add ecx, eax
je 0x140003e46
mov dword [rbp - 0x40], esi
call fcn.140002930
mov qword [rbp - 0x48], rax
lock inc dword [rbp - 0x40]
or dword [rsp + 0x40], 0x80
mov rax, qword [rbp - 0x48]
test rax, rax
jne 0x140003e04
call fcn.140002930
mov qword [rbp - 0x48], rax
lock inc dword [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
mov dword [rbp - 0x18], 0x20
lea rax, [rbp]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x20]
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], r14
lea r9, [0x140000000]
lea r8, [rbp - 0x18]
movsx edx, si
call fcn.140001eb0
nop
mov eax, dword [rsp + 0x40]
test al, al
jns 0x140003e7b
btr eax, 7
mov dword [rsp + 0x40], eax
mov qword [rbp - 0x48], rsi
mov eax, ebx
lock xadd dword [rbp - 0x40], eax
cmp eax, 1
js 0x140003e77
call fcn.140002cc0
mov eax, ebx
lock xadd dword [rbp - 0x40], eax
cmp eax, 1
jns 0x140003e66
lock inc dword [rbp - 0x40]
mov word [rbp], si
jmp 0x140003e85
movzx esi, word [rbp]
lea rax, [rbp + 0x40]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140003e90
lea rdx, [rbp + 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rdi
call fcn.140002a90
test si, si
je 0x140003ee9
mov r8d, 1
lea rdx, [0x14008071c]
mov rcx, rdi
call fcn.140003f40
lea rax, [rbp]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140003ed0
mov r8, rbx
lea rdx, [rbp]
mov rcx, rdi
call fcn.140003f40
cmp qword [rdi + 0x10], 0
setne r15b
test r13, r13
je 0x140003f07
cmp byte [rsp + 0x44], 0
je 0x140003f07
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r15b
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14003edb0
lea r11, [rsp + 0x580]
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