Function at 0x1400054c8
Capabilities:
Get hostname
Print debug messages

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x770
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x1400227c0]
xor rax, rsp
mov qword [rsp + 0x760], rax
mov r13, rdx
mov rsi, rcx
mov qword [rsp + 0x80], rcx
xor r14d, r14d
mov r15d, r14d
test rdx, rdx
je 0x140005a64
test r8, r8
je 0x140005a64
mov dword [r8], r14d
call fcn.1400062ec
nop
mov ebx, 0x105
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x330]
call sub.MSVCR110.dll_memset
mov dword [rsp + 0x60], ebx
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x330]
lea r12d, [r14 + 3]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x140005583
mov rcx, rsi
call fcn.140007b18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140005a69
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110.dll_Ordinal_316]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110.dll_Ordinal_316]
nop
lea r8, [rsp + 0x330]
lea rdx, str.host__s
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110.dll_Ordinal_4587]
mov rcx, qword [rsp + 0x58]
or edi, 0xffffffff
test rcx, rcx
je 0x1400055db
mov edx, edi
call fcn.140003604
mov rbx, rax
test rax, rax
jne 0x1400055de
mov ecx, 0x8007000e
call fcn.140001008
mov rbx, r14
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x50], rax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rax, [rsp + 0x118]
mov qword [rsp + 0x110], rax
mov r8d, r12d
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x110]
call fcn.140005d1c
mov rbx, qword [rsp + 0x110]
lea rax, [rsp + 0x118]
cmp rbx, rax
je 0x14000563b
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_free]
test rbx, rbx
je 0x1400058e5
mov qword [rsp + 0x68], r14
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0xd8]
call sub.MSVCR110.dll_memset
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_wcsnlen]
mov qword [rsp + 0x98], rbx
movzx ecx, ax
add cx, cx
mov word [rsp + 0x90], cx
mov r12d, 1
add ax, r12w
add ax, ax
mov word [rsp + 0x92], ax
lea r9, [rsp + 0x68]
mov r8d, 0x80000004
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x90]
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x1400056c5
mov ecx, eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
jmp 0x1400058eb
mov word [rsp + 0x550], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x552]
call sub.MSVCR110.dll_memset
lea r8, str._machine.acc
mov edx, 0x208
lea rcx, [rsp + 0x550]
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
lea rax, [rsp + 0x550]
mov qword [rsp + 0xa8], rax
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x550]
call qword [sym.imp.MSVCR110.dll_wcsnlen]
add ax, ax
mov word [rsp + 0xa0], ax
mov edx, ebx
lea rcx, [rsp + 0x550]
call qword [sym.imp.MSVCR110.dll_wcsnlen]
add ax, r12w
add ax, ax
mov word [rsp + 0xa2], ax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400058eb
mov qword [rsp + 0x48], r14
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0xa0]
call sub.ADVAPI32.dll_LsaRetrievePrivateData
test eax, eax
je 0x140005781
mov ecx, eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
jmp 0x1400058d9
cmp qword [rsp + 0x48], r14
je 0x1400058d9
lea rcx, str.CRegistry::GetMachineCreds__:_SUCCESS:_Retrieved_the_Machine_data
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x440]
call sub.MSVCR110.dll_memset
mov r15d, 0x208
mov r8d, r15d
xor edx, edx
lea rcx, [rsp + 0x110]
call sub.MSVCR110.dll_memset
mov r8, qword [rsp + 0x48]
movzx r9d, word [r8]
mov r8, qword [r8 + 8]
mov rdx, rbx
lea rcx, [rsp + 0x110]
call qword [sym.imp.MSVCR110.dll_memcpy_s]
mov rax, qword [rsp + 0x48]
movzx ecx, word [rax]
movzx eax, cx
sub ax, r12w
mov edx, 0x102
cmp ax, dx
ja 0x14000587f
movzx eax, cx
add rax, rax
cmp rax, r15
jae 0x140005879
mov word [rsp + rax + 0x110], r14w
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, edi
lea r8, [rsp + 0x110]
xor edx, edx
mov ebx, 0xfde9
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x104
jg 0x14000587f
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x440]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [rsp + 0x110]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x14000587f
call fcn.1400119c0
int3
lea r8, [rsp + 0x440]
lea rdx, [0x140017c44]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110.dll_Ordinal_4587]
mov edx, edi
lea rcx, [rsp + 0x440]
call fcn.140003604
mov rbx, rax
test rax, rax
jne 0x1400058ba
mov ecx, 0x8007000e
call fcn.140001008
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x48]
call sub.ADVAPI32.dll_LsaFreeMemory
mov rcx, qword [rsp + 0x68]
call sub.ADVAPI32.dll_LsaClose
jmp 0x1400058eb
mov r12d, 1
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x70], 2
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x70]
mov edx, r12d
call qword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov r14, rax
test rax, rax
je 0x140005a21
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call sub.MSVCR110.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
je 0x140005a13
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [rsp + 0x40], 0
xor ebx, ebx
lea eax, [rbx + 8]
mov word [rdi], ax
cmp qword [rsp + 0x50], rbx
je 0x14000597c
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x14000597c
mov ecx, 0x8007000e
call fcn.140001008
mov qword [rdi + 8], rbx
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
test eax, eax
jne 0x140005a01
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantClear]
add dword [rsp + 0x40], r12d
mov eax, 8
mov word [rdi], ax
cmp r15, rbx
je 0x1400059e3
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15, r15
je 0x1400059e1
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x1400059e3
mov ecx, 0x8007000e
call fcn.140001008
xor ebx, ebx
mov qword [rdi + 8], rbx
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, rdi
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 0x200c
mov word [r13], ax
mov qword [r13 + 8], r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110.dll_Ordinal_1026]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110.dll_Ordinal_1026]
nop
jmp 0x140005a58
mov rcx, rsi
call fcn.140007b18
xor eax, eax
jmp 0x140005a69
mov eax, 0x80070057
mov rcx, qword [rsp + 0x760]
xor rcx, rsp
call fcn.140011780
add rsp, 0x770
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret