Function at 0x140002c10
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 [0x14003f010]
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, [0x140031f10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r13, rax
test rax, rax
jne 0x140002d6e
lea rcx, [0x140031f10]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r13, rax
mov byte [rsp + 0x44], 1
test rax, rax
jne 0x140002d6e
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x140002d26
mov dword [rsp + 0x50], esi
call fcn.140001f90
mov qword [rsp + 0x48], rax
lock inc dword [rsp + 0x50]
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140002cee
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 1
je 0x140003437
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 0x140002d64
call fcn.140002270
mov ecx, ebx
lock xadd dword [rsp + 0x50], ecx
cmp ecx, 1
jns 0x140002d52
lock inc dword [rsp + 0x50]
jmp 0x140003437
lea rdx, str.GetUserNameExW
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140002e4c
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x140002e03
mov dword [rsp + 0x60], esi
call fcn.140001f90
mov qword [rsp + 0x58], rax
lock inc dword [rsp + 0x60]
mov dword [rsp + 0x40], 2
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140002dcb
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 2
je 0x140003422
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 0x140002e42
nop
call fcn.140002270
mov eax, ebx
lock xadd dword [rsp + 0x60], eax
cmp eax, 1
jns 0x140002e30
lock inc dword [rsp + 0x60]
jmp 0x140003422
lea r8, [rbp - 8]
lea rdx, [rbp + 0x250]
mov ecx, 2
call rax
mov ecx, dword [0x1400403d8]
test al, al
mov eax, dword [0x1400403d4]
jne 0x140002f3c
add ecx, eax
je 0x140002eef
mov dword [rsp + 0x70], esi
call fcn.140001f90
mov qword [rsp + 0x68], rax
lock inc dword [rsp + 0x70]
mov dword [rsp + 0x40], 4
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x140002eaa
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 4
je 0x140003422
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 0x140002f32
nop dword [rax + rax]
call fcn.140002270
mov eax, ebx
lock xadd dword [rsp + 0x70], eax
cmp eax, 1
jns 0x140002f20
lock inc dword [rsp + 0x70]
jmp 0x140003422
lea r14, str.UserNameUtils::GetUserNameForTL
add ecx, eax
je 0x140002fb5
mov dword [rbp - 0x80], esi
call fcn.140001f90
mov qword [rsp + 0x78], rax
lock inc dword [rbp - 0x80]
mov dword [rsp + 0x40], 8
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x140002f78
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
mov rbx, 0xffffffffffffffff
test al, 8
je 0x140002ff5
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 0x140002ff1
nop dword [rax]
call fcn.140002270
mov eax, ebx
lock xadd dword [rbp - 0x80], eax
cmp eax, 1
jns 0x140002fe0
lock inc dword [rbp - 0x80]
mov qword [rbp - 0x10], rsi
lea r8, [rbp - 0x10]
lea rdx, [0x140031f0c]
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 0x1400030eb
cmp word [rax], 0
je 0x1400030eb
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x1400030e7
cmp word [rax], 0
je 0x1400030e7
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x1400030ae
mov dword [rbp - 0x70], esi
call fcn.140001f90
mov qword [rbp - 0x78], rax
lock inc dword [rbp - 0x70]
or dword [rsp + 0x40], 0x10
mov rax, qword [rbp - 0x78]
test rax, rax
jne 0x140003079
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 0x10
je 0x1400030eb
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 0x1400030e1
nop dword [rax]
call fcn.140002270
mov eax, ebx
lock xadd dword [rbp - 0x70], eax
cmp eax, 1
jns 0x1400030d0
lock inc dword [rbp - 0x70]
jmp 0x1400030eb
mov qword [rbp - 0x10], r12
mov r8, qword [rbp - 0x10]
test r8, r8
je 0x1400031b0
cmp word [r8], 0
je 0x1400031b0
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x140003177
mov dword [rbp - 0x60], esi
call fcn.140001f90
mov qword [rbp - 0x68], rax
lock inc dword [rbp - 0x60]
or dword [rsp + 0x40], 0x20
mov rax, qword [rbp - 0x68]
test rax, rax
jne 0x14000313e
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 0x20
je 0x1400031b0
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 0x1400031a7
call fcn.140002270
mov eax, ebx
lock xadd dword [rbp - 0x60], eax
cmp eax, 1
jns 0x140003196
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 0x1400031e6
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 0x1400031fe
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 0x1400032e0
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x1400032a3
mov dword [rbp - 0x50], esi
call fcn.140001f90
mov qword [rbp - 0x58], rax
lock inc dword [rbp - 0x50]
or dword [rsp + 0x40], 0x40
mov rax, qword [rbp - 0x58]
test rax, rax
jne 0x140003266
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, 0x40
je 0x140003422
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 0x1400032d7
call fcn.140002270
mov eax, ebx
lock xadd dword [rbp - 0x50], eax
cmp eax, 1
jns 0x1400032c6
lock inc dword [rbp - 0x50]
jmp 0x140003422
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 0x1400033b1
mov ecx, dword [0x1400403d8]
mov eax, dword [0x1400403d4]
add ecx, eax
je 0x140003376
mov dword [rbp - 0x40], esi
call fcn.140001f90
mov qword [rbp - 0x48], rax
lock inc dword [rbp - 0x40]
or dword [rsp + 0x40], 0x80
mov rax, qword [rbp - 0x48]
test rax, rax
jne 0x140003334
call fcn.140001f90
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.140001510
nop
mov eax, dword [rsp + 0x40]
test al, al
jns 0x1400033ab
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 0x1400033a7
call fcn.140002270
mov eax, ebx
lock xadd dword [rbp - 0x40], eax
cmp eax, 1
jns 0x140003396
lock inc dword [rbp - 0x40]
mov word [rbp], si
jmp 0x1400033b5
movzx esi, word [rbp]
lea rax, [rbp + 0x40]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400033c0
lea rdx, [rbp + 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rdi
call fcn.1400020f0
test si, si
je 0x140003419
mov r8d, 1
lea rdx, [0x1400321bc]
mov rcx, rdi
call fcn.140003470
lea rax, [rbp]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140003400
mov r8, rbx
lea rdx, [rbp]
mov rcx, rdi
call fcn.140003470
cmp qword [rdi + 0x10], 0
setne r15b
test r13, r13
je 0x140003437
cmp byte [rsp + 0x44], 0
je 0x140003437
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r15b
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14002cae0
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