Function at 0x14001a370
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
mov eax, 0x20448
call fcn.14001c610
sub rsp, rax
mov rax, qword [0x140022260]
xor rax, rsp
mov qword [rsp + 0x20430], rax
mov dword [rsp + 0x3b0], 1
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0x20420], 0
mov qword [rsp + 0x20428], 0
mov dword [rsp + 0x3c4], 0
mov qword [rsp + 0x3a8], 0
mov qword [rsp + 0x3a0], 0
mov dword [rsp + 0x400], 0
lea rdi, [rsp + 0x404]
xor eax, eax
mov ecx, 0x20018
rep stosb byte [rdi], al
mov qword [rsp + 0xc0], 0
mov byte [rsp + 0xd0], 0
lea rdi, [rsp + 0xd1]
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdi, [rsp + 0xd2]
xor eax, eax
mov ecx, 0x2c6
rep stosb byte [rdi], al
mov byte [rsp + 0x3c8], 0
lea rdi, [rsp + 0x3c9]
xor eax, eax
mov ecx, 7
rep stosb byte [rdi], al
lea rdi, [rsp + 0x3d0]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov byte [rsp + 0x40], 0
lea rdi, [rsp + 0x41]
xor eax, eax
mov ecx, 0xf
rep stosb byte [rdi], al
lea rdi, [rsp + 0x50]
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
mov r8d, 0x2001c
xor edx, edx
lea rcx, [rsp + 0x400]
call fcn.1400103b0
mov r8d, 0x2c8
xor edx, edx
lea rcx, [rsp + 0xd0]
call fcn.1400103b0
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x3c8]
call fcn.1400103b0
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400103b0
mov edx, dword [rsp + 0x20460]
mov dword [rsp + 0x400], edx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x3b8], rax
cmp qword [rsp + 0x3b8], 0
jne 0x14001a50d
xor eax, eax
jmp 0x14001aa4a
lea rdx, str.NtQueryInformationProcess
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140024520], rax
cmp qword [0x140024520], 0
jne 0x14001a548
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14001aa4a
mov r8d, dword [rsp + 0x20460]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14001a571
xor eax, eax
jmp 0x14001aa4a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x3a8], rax
mov dword [rsp + 0xc8], 0x30
mov r8d, dword [rsp + 0xc8]
mov edx, 8
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x14001a5ca
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001aa4a
lea rax, [rsp + 0x20420]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc8]
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [0x140024520]
mov dword [rsp + 0x3c0], eax
cmp dword [rsp + 0x3c0], 0
jl 0x14001a6b1
mov eax, dword [rsp + 0x20420]
cmp dword [rsp + 0xc8], eax
jae 0x14001a6b1
cmp qword [rsp + 0xc0], 0
je 0x14001a640
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x20420]
mov edx, 8
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x14001a680
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001aa4a
lea rax, [rsp + 0x20420]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x20420]
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [0x140024520]
mov dword [rsp + 0x3c0], eax
cmp dword [rsp + 0x3c0], 0
jl 0x14001a9da
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x404], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x414], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov dword [rsp + 0x418], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x40c], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x410], eax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 8], 0
je 0x14001a9b5
lea rax, [rsp + 0x20428]
mov qword [rsp + 0x20], rax
mov r9d, 0x2c8
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0xc0]
mov rdx, qword [rdx + 8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001a9b5
mov eax, dword [rsp + 0x390]
mov dword [rsp + 0x408], eax
movzx eax, byte [rsp + 0xd2]
mov byte [rsp + 0x41c], al
mov qword [rsp + 0x20428], 0
lea rax, [rsp + 0x20428]
mov qword [rsp + 0x20], rax
mov r9d, 0x80
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001a9b5
movzx eax, word [rsp + 0xb0]
test eax, eax
jle 0x14001a8b8
movzx r8d, word [rsp + 0xb0]
mov edx, 8
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x3a0], rax
cmp qword [rsp + 0x3a0], 0
je 0x14001a8b8
movzx r9d, word [rsp + 0xb0]
lea rax, [rsp + 0x20428]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x3a0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001a887
movzx eax, word [rsp + 0xb0]
cmp rax, 0xfffe
jb 0x14001a856
mov dword [rsp + 0x3c4], 0xfffc
jmp 0x14001a865
movzx eax, word [rsp + 0xb0]
mov dword [rsp + 0x3c4], eax
mov r9d, dword [rsp + 0x3c4]
mov r8, qword [rsp + 0x3a0]
mov edx, 0xfffe
lea rcx, [rsp + 0x1041c]
call fcn.14000d000
mov r8, qword [rsp + 0x3a0]
xor edx, edx
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x14001a8b8
mov dword [rsp + 0x3b0], 0
jmp 0x14001a9da
movzx eax, word [rsp + 0xa0]
test eax, eax
jle 0x14001a9b5
mov qword [rsp + 0x20428], 0
movzx r8d, word [rsp + 0xa0]
mov edx, 8
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x3a0], rax
cmp qword [rsp + 0x3a0], 0
je 0x14001a9b5
movzx r9d, word [rsp + 0xa0]
lea rax, [rsp + 0x20428]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x3a0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001a98a
movzx eax, word [rsp + 0xa0]
cmp rax, 0xfffe
jb 0x14001a959
mov dword [rsp + 0x3c4], 0xfffc
jmp 0x14001a968
movzx eax, word [rsp + 0xa0]
mov dword [rsp + 0x3c4], eax
mov r9d, dword [rsp + 0x3c4]
mov r8, qword [rsp + 0x3a0]
mov edx, 0xfffe
lea rcx, [rsp + 0x41e]
call fcn.14000d000
mov r8, qword [rsp + 0x3a0]
xor edx, edx
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x14001a9b5
mov dword [rsp + 0x3b0], 0
jmp 0x14001a9da
cmp dword [rsp + 0x400], 4
jne 0x14001a9da
mov r8d, 0xfffe
lea rdx, [rsp + 0x41e]
lea rcx, str._SystemRoot_System32_ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp qword [rsp + 0xc0], 0
je 0x14001a9fd
mov r8, qword [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x3a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x3b8], 0
je 0x14001aa21
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140024520], 0
lea rsi, [rsp + 0x400]
mov rdi, qword [rsp + 0x20468]
mov ecx, 0x2001c
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x20430]
xor rcx, rsp
call fcn.1400100c0
add rsp, 0x20448
pop rdi
pop rsi
ret