Function at 0x1400247e0
Capabilities:
Get hostname

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x98
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, r9
mov dword [rbp - 0x29], 0x10
mov r14d, r8d
lea rsi, str.127.0.0.1
mov r15, rdx
mov rdi, rcx
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x140024851
test byte [rcx + 0x1c], 4
je 0x140024851
cmp byte [rcx + 0x19], 5
jb 0x140024851
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088ab0]
mov edx, 0x51
call fcn.140001024
and qword [rbx], 0
test r14d, r14d
je 0x1400248ee
xor esi, esi
lea rax, str.ncalrpc
test r14d, r14d
lea rdx, str.ncacn_ip_tcp
mov r9, r15
cmovne rdx, rax
mov r8, rsi
lea rax, [rbp - 0x21]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea rax, [0x140087fe8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
nop dword [rax + rax]
test eax, eax
je 0x1400249a7
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x140024b0f
test byte [rcx + 0x1c], 4
je 0x140024b0f
cmp byte [rcx + 0x19], 2
jb 0x140024b0f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088ab0]
mov edx, 0x53
mov r9d, eax
call fcn.140001050
jmp 0x140024b0f
test rdi, rdi
je 0x140024860
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
test eax, eax
je 0x14002495b
mov rdx, rdi
lea rcx, [rbp - 9]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140024860
cmp word [rdi], 0x5c
jne 0x140024953
cmp word [rdi + 2], 0x5c
jne 0x140024953
lea rdx, [rdi + 4]
lea rcx, [rbp - 9]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140024860
mov rsi, rdi
jmp 0x140024860
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x1400249a0
test byte [rcx + 0x1c], 4
je 0x1400249a0
cmp byte [rcx + 0x19], 2
jb 0x1400249a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088ab0]
mov edx, 0x52
mov r9d, eax
call fcn.140001050
mov eax, ebx
jmp 0x140024b1b
mov rcx, qword [rbp - 0x21]
mov rdx, rbx
call qword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
nop dword [rax + rax]
lea rcx, [rbp - 0x21]
mov edi, eax
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
test edi, edi
jne 0x140024ac9
mov rcx, qword [rbx]
test rcx, rcx
je 0x140024ac9
test r14d, r14d
jne 0x140024a7f
and dword [rbp - 0x15], r14d
lea rax, [rbp - 0x19]
and dword [rbp - 0x11], r14d
lea r9d, [rdi + 0xa]
mov qword [rsp + 0x30], rax
lea r8d, [rdi + 6]
and dword [rsp + 0x28], r14d
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rbp - 0x19], 1
mov dword [rbp - 0xd], 2
call qword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140024a7f
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x140024a65
test byte [rcx + 0x1c], 4
je 0x140024a65
cmp byte [rcx + 0x19], 2
jb 0x140024a65
lea edx, [r14 + 0x55]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088ab0]
mov r9d, edi
call fcn.140001050
mov rcx, rbx
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
nop dword [rax + rax]
and qword [rbx], 0
mov eax, edi
jmp 0x140024b1b
mov rcx, qword [rbx]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8d, 0x7530
call qword [sym.imp.RPCRT4.dll_RpcBindingSetOption]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x140024ac5
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x140024a65
test byte [rcx + 0x1c], 4
je 0x140024a65
cmp byte [rcx + 0x19], 2
jb 0x140024a65
mov edx, 0x56
jmp 0x140024a52
xor eax, eax
jmp 0x140024b1b
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x140024b00
test byte [rcx + 0x1c], 4
je 0x140024b00
cmp byte [rcx + 0x19], 2
jb 0x140024b00
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088ab0]
mov edx, 0x54
mov r9d, edi
call fcn.140001050
and qword [rbx], 0
lea eax, [rdi - 0x6aa]
cmp eax, 1
jbe 0x140024b16
mov eax, 0xc0000017
jmp 0x140024b1b
mov eax, 0x4ba
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14007ec30
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret