Function at 0x18004edc0
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 [0x180176020]
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, [0x180119050]
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 0x18004ee88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0xa8], rbx
lea rdx, [0x18004ee81]
mov rcx, rsp
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004f0e1
lea r8, [rsp + 0xb0]
mov edx, 0x10
lea rcx, [rsp + 0xd8]
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
mov r8d, 1
lea rdx, [0x18013270c]
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 0x18004efb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x18004efb0
cmp eax, 0x534
jne 0x18004ef74
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 0x18004efb0
cmp eax, 0x6fd
jne 0x18004ef8d
call fcn.18004ea00
mov rsi, rax
mov qword [rsp + 0x50], rax
jmp 0x18004f0ac
mov qword [rsp + 0x80], rbx
lea rdx, [0x18004efa9]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004f0e1
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 0x18004f037
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x98], rbx
lea rdx, [0x18004f030]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004f0e1
mov dword [rsp + 0x48], 0x100
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x18004f052
mov dword [rsp + 0x68], ebx
jmp 0x18004f06f
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x100]
mov rcx, rdi
call fcn.18004ec00
mov dword [rsp + 0x68], eax
test eax, eax
jne 0x18004f095
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0xa0], rbx
lea rdx, [0x18004f091]
mov rcx, qword [rsp + 0x60]
call sub.MSVCR90.dll__local_unwind
nop
nop
nop
xor eax, eax
jmp 0x18004f0e1
lea r8, [rsp + 0x100]
mov edx, 0x100
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
nop
test rdi, rdi
je 0x18004f0ba
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_free]
test r12, r12
je 0x18004f0c8
mov rcx, r12
call qword [sym.imp.MSVCR90.dll_free]
jmp 0x18004f0de
mov rax, rsi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1800e9d70
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