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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.7d2217b2
push dword [esp + 0xbc]
mov ebp, eax
call fcn.7d28c230
mov ecx, dword [0x7d2a5010]
mov ebx, eax
movq xmm0, qword [str.shell_]
mov edx, dword [esp + 0xc0]
mov esi, edx
mov dword [esp + 0x40], ecx
mov cx, word [0x7d2a5014]
movq qword [esp + 0x38], xmm0
mov word [esp + 0x44], cx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x7d28bf21
lea edi, [esp + 0x38]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x7d28bf35
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x7d28bf56
mov eax, dword [str.command]
xor edi, edi
mov dword [ecx], eax
mov eax, dword [0x7d2a501c]
mov dword [ecx + 4], eax
mov eax, dword [0x7d2a5020]
lea esi, [edi + 1]
mov dword [ecx + 8], eax
mov eax, dword [0x7d2a5024]
mov dword [ecx + 0xc], eax
mov ax, word [0x7d2a5028]
mov word [ecx + 0x10], ax
test ebx, ebx
je 0x7d28c16b
nop dword [eax + eax]
cmp esi, 8
je 0x7d28c164
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x28], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ebx
push eax
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x20]
push eax
push 0x20019
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jns 0x7d28c073
cmp eax, 0xc0000034
je 0x7d28c008
cmp eax, 0xc000003a
jne 0x7d28c160
push 0x7d2990cc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
call eax
push 0x400
push 0
push ebp
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x3e0
push ebp
push 2
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d28c160
cmp dword [ebp + 8], edi
je 0x7d28c160
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
lea eax, [ebp + 0xc]
push eax
call fcn.7d28c230
mov ebx, eax
inc esi
test ebx, ebx
jne 0x7d28bfa0
jmp 0x7d28c16b
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x7d2990cc
push eax
mov eax, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [esp + 0x1c], edi
call eax
push 0x400
push 0
push ebp
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x3e0
push ebp
push 2
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d28c160
mov eax, dword [ebp + 8]
test eax, eax
je 0x7d28c160
mov ecx, dword [ebp + 4]
cmp ecx, 1
je 0x7d28c0e0
cmp ecx, 2
jne 0x7d28c160
mov dword [esp + 0x10], eax
add eax, 4
push eax
call fcn.7d2217b2
mov ecx, dword [esp + 0x10]
mov edi, eax
add ecx, 4
push ecx
push 0
push edi
call sub.ntdll.dll_memset
push dword [esp + 0x1c]
lea eax, [ebp + 0xc]
push eax
push edi
call sub.ntdll.dll_memcpy
add esp, 0x18
cmp dword [ebp + 4], 2
jne 0x7d28c160
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x7d28c133
push edi
call fcn.7d221537
xor edi, edi
jmp 0x7d28c160
lea eax, [eax*2 + 0x10]
push eax
call fcn.7d2217b2
push dword [esp + 0x10]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [esp + 0x10]
xor eax, eax
push edi
mov word [esi + ecx*2], ax
call fcn.7d221537
mov edi, esi
test ebx, ebx
je 0x7d28c16b
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
push ebp
call fcn.7d221537
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 8