Function at 0x18004e970
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x310
mov rax, qword [0x180175020]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x60], rsp
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x40], ebx
lea rax, [0x180118050]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x44], ebx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x100]
call sub.MSVCR90.dll_memset
mov ecx, 0x200
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call sub.MSVCR90.dll_memset
nop
mov dword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x18004ea38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0xa8], rbx
lea rdx, [0x18004ea31]
mov rcx, rsp
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004ec91
lea r8, [rsp + 0xb0]
mov edx, 0x10
lea rcx, [rsp + 0xd8]
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
mov r8d, 1
lea rdx, [0x18013170c]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCR90.dll_wcsncat]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
mov rdi, rbx
mov qword [rsp + 0x58], rbx
mov r12, rbx
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18004eb60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x18004eb60
cmp eax, 0x534
jne 0x18004eb24
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
mov word [rsp + rcx*2 + 0xac], bx
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
jmp 0x18004eb60
cmp eax, 0x6fd
jne 0x18004eb3d
call fcn.18004e5b0
mov rsi, rax
mov qword [rsp + 0x50], rax
jmp 0x18004ec5c
mov qword [rsp + 0x80], rbx
lea rdx, [0x18004eb59]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004ec91
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.MSVCR90.dll_malloc]
mov rdi, rax
mov qword [rsp + 0x58], rax
mov ecx, dword [rsp + 0x44]
lea rcx, [rcx + rcx + 1]
call qword [sym.imp.MSVCR90.dll_malloc]
mov r12, rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8, rdi
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18004ebe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x98], rbx
lea rdx, [0x18004ebe0]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004ec91
mov dword [rsp + 0x48], 0x100
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x18004ec02
mov dword [rsp + 0x68], ebx
jmp 0x18004ec1f
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.18004e7b0
mov dword [rsp + 0x68], eax
test eax, eax
jne 0x18004ec45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0xa0], rbx
lea rdx, [0x18004ec41]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004ec91
lea r8, [rsp + 0x100]
mov edx, 0x100
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
nop
test rdi, rdi
je 0x18004ec6a
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_free]
test r12, r12
je 0x18004ec78
mov rcx, r12
call qword [sym.imp.MSVCR90.dll_free]
jmp 0x18004ec8e
mov rax, rsi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1800e9aa0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret