Function at 0x140005ab0
Capabilities:
Get hostname

Disassembly:
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140005ae0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, rcx
lea rdx, str.__invok_rpc_remote_find_first_printer_change_notification_ex_by_tar_path:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005e80
mov rcx, rax
mov rdx, rbx
call fcn.140005e80
mov rcx, rax
lea rdx, [0x140006060]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov dword [rsp + 0x70], 0x10
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9, rax
mov dword [rax], 0x5c005c
movzx ecx, byte [rsp + 0x88]
test cl, cl
je 0x140005b99
lea rdx, [rsp + 0x88]
lea rdi, [rax + 4]
movsx eax, cl
mov word [rdi], ax
lea rdi, [rdi + 2]
lea rdx, [rdx + 1]
movzx eax, byte [rdx]
movzx ecx, al
test al, al
jne 0x140005b81
xor esi, esi
mov qword [rsp + 0x68], rsi
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, [0x140010220]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov rdi, rax
mov qword [rsp + 0x50], rax
test eax, eax
jne 0x140005c40
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x100
mov r9, qword [rsp + 0x68]
xor r8d, r8d
lea edx, [rsi + 0x41]
lea rcx, [0x140010220]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea edx, [rsi + 0x1d]
lea rcx, [0x140010220]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
mov qword [rsp + 0x60], rax
jmp 0x140005c6f
lea rdx, str.___EmEs_ArPiArEn___rpc_open_printer_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004ae0
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140004cb0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor eax, eax
jmp 0x140005c73
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400060f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret