Function at 0x7d2825c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rbx, rcx
mov r14, rdx
mov ecx, 0x400
call fcn.7d221988
mov rcx, rbx
mov rsi, rax
call fcn.7d282960
mov ecx, dword [0x7d299b80]
mov rdi, rax
movsd xmm0, qword [str.shell_]
mov dword [rbp - 0x41], ecx
movzx ecx, word [0x7d299b84]
mov word [rbp - 0x3d], cx
lea rcx, [rbp - 0x49]
sub rcx, 2
movsd qword [rbp - 0x49], xmm0
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x7d282620
xor edx, edx
nop dword [rax]
movzx eax, word [r14 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x7d282630
lea rcx, [rbp - 0x49]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x7d282650
movups xmm0, xmmword [str.command]
movzx eax, word [0x7d299b98]
xor r15d, r15d
mov r14d, r15d
movups xmmword [rcx], xmm0
mov word [rcx + 0x10], ax
lea ebx, [r15 + 1]
test rdi, rdi
je 0x7d282880
cmp ebx, 8
je 0x7d282872
lea rax, [rsp + 0x30]
mov dword [rbp - 0x79], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x69], rax
lea rdx, [rbp - 0x49]
mov qword [rbp - 0x71], rdi
lea rcx, [rsp + 0x30]
mov dword [rbp - 0x61], 0x40
movdqu xmmword [rbp - 0x59], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r8, [rbp - 0x79]
mov edx, 0x20019
lea rcx, [rbp + 0x7f]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jns 0x7d28276c
cmp eax, 0xc0000034
je 0x7d2826eb
cmp eax, 0xc000003a
jne 0x7d282872
lea rdx, [0x7d28ed18]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call sub.ntdll.dll_memset
lea rax, [rbp + 0x77]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov r8d, 2
mov dword [rsp + 0x20], 0x3e0
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d282872
cmp dword [rsi + 8], r14d
je 0x7d282872
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsi + 0xc]
call fcn.7d282960
inc ebx
mov rdi, rax
test rax, rax
jne 0x7d282683
jmp 0x7d282880
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rbp + 0x7f]
lea rdx, [0x7d28ed18]
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x7f], r15
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call sub.ntdll.dll_memset
lea rax, [rbp + 0x77]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov r8d, 2
mov dword [rsp + 0x20], 0x3e0
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d282872
mov ecx, dword [rsi + 8]
test ecx, ecx
je 0x7d282872
mov eax, dword [rsi + 4]
dec eax
cmp eax, 1
ja 0x7d282872
mov dword [rbp + 0x77], ecx
add ecx, 4
call fcn.7d221988
mov r8d, dword [rbp + 0x77]
xor edx, edx
add r8, 4
mov rcx, rax
mov r14, rax
call sub.ntdll.dll_memset
mov r8d, dword [rbp + 0x77]
lea rdx, [rsi + 0xc]
mov rcx, r14
call sub.ntdll.dll_memcpy
cmp dword [rsi + 4], 2
jne 0x7d282872
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rbp + 0x77], eax
test eax, eax
jne 0x7d282840
mov rcx, r14
call fcn.7d221938
mov r14, r15
jmp 0x7d282872
lea ecx, [rax*2 + 0x10]
call fcn.7d221988
mov r8d, dword [rbp + 0x77]
mov rdx, rax
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [rbp + 0x77]
mov word [rbx + rcx*2], r15w
mov rcx, r14
call fcn.7d221938
mov r14, rbx
test rdi, rdi
je 0x7d282880
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rsi
call fcn.7d221938
mov rbx, qword [rsp + 0x120]
mov rax, r14
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret