Function at 0x14010f450
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rdx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov rax, qword [0x14030b570]
mov qword [rsp + 0x40], rax
xor edx, edx
mov r8d, 0x110
call fcn.140141ad0
nop
lea rcx, str.NETAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14010f6e5
lea rdx, [0x140227bf0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, [0x14024ecc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14010f6dc
lea r8, [rsp + 0x50]
lea edx, [r15 + 0x64]
xor ecx, ecx
call rax
mov r9, qword [rsp + 0x50]
test eax, eax
jne 0x14010f6c6
test r9, r9
je 0x14010f6c6
mov r8, qword [r9 + 0x10]
or rdi, 0xffffffffffffffff
mov r9, rdi
nop word [rax + rax]
inc r9
cmp word [r8 + r9*2], 0
jne 0x14010f540
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
test eax, eax
je 0x14010f5e3
cmp rcx, 0x400
jae 0x14010f58e
mov byte [rsp + rcx + 0xc0], 0
jmp 0x14010f596
mov byte [rsp + 0x4bf], 0
lea rcx, [r14 + 0x10]
mov r8d, 0x80
lea rdx, [rsp + 0xc0]
call fcn.1400f7fd0
lea rbx, [r14 + 0x90]
mov r8d, 0x7e
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.1400f7fd0
dec rbx
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x14010f5d0
movzx eax, word [0x1402869a8]
mov word [rbx], ax
mov rax, qword [rsp + 0x50]
mov r8, qword [rax + 8]
mov r9, rdi
nop
inc r9
cmp word [r8 + r9*2], 0
jne 0x14010f5f0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rcx, eax
test eax, eax
je 0x14010f694
cmp rcx, 0x400
jae 0x14010f63e
mov byte [rsp + rcx + 0xc0], 0
jmp 0x14010f646
mov byte [rsp + 0x4bf], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xc0]
mov rcx, r14
call fcn.1400f7fd0
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], 0
jne 0x14010f660
mov r8d, 0x7f
sub r8, rdi
lea rcx, [r14 + 0x90]
lea rdx, [rsp + 0xc0]
call fcn.1401586a0
mov r15d, 1
mov dword [rsp + 0x48], r15d
jmp 0x14010f6b7
lea rdx, str.GetComputerInfo___Character_conversion_failed.
lea rcx, [rsp + 0x40]
call fcn.1400f88e0
test rsi, rsi
je 0x14010f6b7
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400f81d0
test r13, r13
je 0x14010f709
mov rcx, qword [rsp + 0x50]
call r13
jmp 0x14010f709
mov r8d, eax
lea rdx, str.GetComputerInfo___NetWkstaGetInfo_error___d_0x_p_.
lea rcx, [rsp + 0x40]
call fcn.1400f88e0
jmp 0x14010f6f6
lea rdx, str.GetComputerInfo___Unable_to_get_NETAPI32.DLL_function_pointers.
jmp 0x14010f6ec
lea rdx, str.GetComputerInfo___Unable_to_load_NETAPI32.DLL_library.
lea rcx, [rsp + 0x40]
call fcn.1400f88e0
test rsi, rsi
je 0x14010f709
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400f81d0
nop
jmp 0x14010f71f
test r12, r12
je 0x14010f72d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [r14], 0
jne 0x14010f7fd
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
xor edx, edx
mov r8d, 0x110
mov rcx, r14
call fcn.140141ad0
mov dword [rsp + 0x58], 0x40
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.1400f7fd0
lea rcx, [r14 + 0x90]
mov r8d, 0x80
mov rdx, r14
call fcn.1400f7fd0
lea rdx, str._nUnable_to_get_computer_extended_information.
lea rcx, [rsp + 0x40]
call fcn.1400f8480
test rsi, rsi
je 0x14010f7fd
mov rdx, qword [rsi]
cmp qword [rdx - 0x10], 0
jne 0x14010f7fd
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400f81d0
nop
lea rcx, [rsp + 0x40]
call fcn.1400f81a0
mov eax, r15d
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.140113910
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret