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

Disassembly:
sub esp, 0x34c
push esi
push edi
mov edi, dword [esp + 0x358]
push edi
call fcn.7d281bd0
push 0
push edi
call fcn.7d221de3
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x7d28509c
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x34c
ret 0xc
xor eax, eax
xor ecx, ecx
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x364]
mov dword [esp + 0x20], ecx
push ebp
mov ebp, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test eax, eax
jne 0x7d2850c6
xor ebx, ebx
jmp 0x7d285344
cmp eax, 0xffffffff
jne 0x7d2852c3
cmp byte [0x7d2b7350], cl
mov eax, 0x3c
mov esi, 0x28
cmovne esi, eax
lea eax, [esp + 0x14]
push str.DisplayName
push eax
call ebp
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d28512d
cmp dword [esp + 0x5c], 1
jne 0x7d28512d
cmp dword [esp + 0x60], 0
je 0x7d28512d
xor eax, eax
mov word [esp + 0x24c], ax
jmp 0x7d285134
xor eax, eax
mov word [esp + 0x64], ax
lea ecx, [esp + 0x64]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d285140
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov dword [esp + 0x14], eax
call fcn.7d221505
push dword [esp + 0x10]
lea ecx, [esp + 0x68]
mov dword [esp + 0x2c], eax
push ecx
push eax
call sub.ntdll.dll_memcpy
add esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
add esp, 0xc
push str.ImagePath
push eax
call ebp
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d2851c8
cmp dword [esp + 0x60], 0
je 0x7d2851c8
mov eax, dword [esp + 0x5c]
cmp eax, 1
je 0x7d2851bc
cmp eax, 2
jne 0x7d2851c8
xor eax, eax
mov word [esp + 0x24c], ax
jmp 0x7d2851cf
xor eax, eax
mov word [esp + 0x64], ax
push 0x12
call fcn.7d221505
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 9
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x6c]
push eax
call ebx
mov dword [esp + 0x10], eax
cmp eax, 9
jbe 0x7d285228
mov ecx, dword [esp + 0x24]
push ecx
call fcn.7d221537
mov eax, dword [esp + 0x10]
lea eax, [eax*2 + 0x10]
push eax
call fcn.7d221505
mov ecx, eax
mov eax, dword [esp + 0x10]
add eax, 8
mov dword [esp + 0x24], ecx
push eax
push ecx
lea eax, [esp + 0x6c]
push eax
call ebx
mov dword [esp + 0x10], eax
lea ebx, [esi + eax*2]
push str.ObjectName
lea eax, [esp + 0x18]
push eax
call ebp
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d285276
cmp dword [esp + 0x5c], 1
jne 0x7d285276
cmp dword [esp + 0x60], 0
je 0x7d285276
xor eax, eax
mov word [esp + 0x24c], ax
jmp 0x7d28527d
xor eax, eax
mov word [esp + 0x64], ax
lea ecx, [esp + 0x64]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d285284
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov dword [esp + 0x14], eax
call fcn.7d221505
push dword [esp + 0x10]
lea ecx, [esp + 0x68]
mov dword [esp + 0x34], eax
push ecx
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
add ebx, dword [esp + 0x10]
jmp 0x7d285344
cmp eax, 1
jne 0x7d2852f7
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d2852d0
sub ecx, edx
sar ecx, 1
lea ebx, [ecx*2 + 6]
mov dword [esp + 0x1c], ebx
cmp byte [0x7d2b7350], al
je 0x7d285348
add ebx, 4
jmp 0x7d285344
cmp eax, 2
jne 0x7d285312
mov ebx, 0x14
mov dword [esp + 0x1c], ebx
cmp byte [0x7d2b7350], cl
je 0x7d285348
lea ebx, [eax + 0x1e]
jmp 0x7d285344
cmp eax, 3
je 0x7d28533f
cmp eax, 4
je 0x7d28533f
cmp eax, 7
je 0x7d28533f
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push 0x7c
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x34c
ret 0xc
mov ebx, 4
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x54]
push eax
mov dword [esp + 0x14], eax
call fcn.7d2217b2
mov ecx, dword [esp + 0x10]
mov ebp, eax
xorps xmm0, xmm0
push ebx
push 0
mov dword [ebp], ecx
lea eax, [ebp + 0x30]
mov dword [ebp + 4], 0
mov dword [ebp + 0x2c], ebx
movups xmmword [ebp + 8], xmm0
push eax
movups xmmword [ebp + 0x18], xmm0
mov dword [ebp + 0x28], 0
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp + 0xc], 1
lea eax, [esp + 0x14]
push str.Type
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d2853d6
cmp dword [esp + 0x5c], 4
jne 0x7d2853d6
cmp dword [esp + 0x60], 4
jne 0x7d2853d6
mov eax, dword [esp + 0x64]
mov dword [ebp + 8], eax
test byte [ebp + 8], 0x30
je 0x7d28585f
cmp dword [esp + 0x364], 0
je 0x7d28585f
push str.SBIE_CurrentState
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d2856f7
cmp dword [esp + 0x5c], 4
jne 0x7d2856f7
cmp dword [esp + 0x60], 4
jne 0x7d2856f7
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
cmp eax, 2
jne 0x7d2854a8
push str.SBIE_StartTicks
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d2856f7
cmp dword [esp + 0x5c], 4
jne 0x7d2856f7
cmp dword [esp + 0x60], 4
jne 0x7d2856f7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x64]
cmp eax, 0x1f40
ja 0x7d2856f7
jmp 0x7d2854b1
cmp eax, 1
je 0x7d2856f7
push str.SBIE_ProcessId
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d2856f7
cmp dword [esp + 0x5c], 4
jne 0x7d2856f7
cmp dword [esp + 0x60], 4
jne 0x7d2856f7
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x34]
push ecx
push 0
lea ecx, [esp + 0x2a4]
mov dword [esp + 0x40], eax
push ecx
lea ecx, [esp + 0x264]
push ecx
push eax
call sym.SbieDll.dll_SbieApi_QueryProcess
test eax, eax
js 0x7d2856e6
mov eax, dword [esp + 0x34]
cmp eax, dword [0x7d2b7344]
jne 0x7d2856e6
push dword [0x7d2b730c]
lea eax, [esp + 0x25c]
push eax
call sub.ntdll.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x7d2856e6
lea eax, [esp + 0x29c]
push 0x2e
push eax
call sub.ntdll.dll_wcsrchr
add esp, 8
test eax, eax
je 0x7d285572
xor ecx, ecx
mov word [eax], cx
push str.ImagePath
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d2856e6
cmp dword [esp + 0x60], 0
je 0x7d2856e6
mov eax, dword [esp + 0x5c]
cmp eax, 1
je 0x7d2855c4
cmp eax, 2
jne 0x7d2856e6
xor eax, eax
mov word [esp + 0x24c], ax
lea eax, [esp + 0x64]
push 0x5c
push eax
call sub.ntdll.dll_wcsrchr
mov esi, eax
add esp, 8
test esi, esi
jne 0x7d2855fe
lea eax, [esp + 0x64]
push 0x22
push eax
call sub.ntdll.dll_wcsrchr
mov esi, eax
add esp, 8
test esi, esi
jne 0x7d2855fe
lea esi, [esp + 0x64]
jmp 0x7d285601
add esi, 2
push 0x22
push esi
call sub.ntdll.dll_wcsrchr
add esp, 8
test eax, eax
jne 0x7d28561f
push 0x20
push esi
call sub.ntdll.dll_wcsrchr
add esp, 8
test eax, eax
je 0x7d285624
xor ecx, ecx
mov word [eax], cx
push 0x2e
push esi
call sub.ntdll.dll_wcsrchr
add esp, 8
test eax, eax
je 0x7d285638
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x29c]
push eax
push esi
call sub.ntdll.dll__wcsicmp
add esp, 8
test eax, eax
je 0x7d2856db
mov eax, dword [str.SandboxieBITS.exe]
lea ebx, [esp + 0x3c]
mov ecx, dword [str.bits]
mov dword [esp + 0x40], eax
mov eax, dword [str.8.]
mov dword [esp + 0x44], eax
mov eax, dword [str.SandboxieCrypto.exe]
mov dword [esp + 0x48], eax
mov eax, dword [str.wuauserv]
mov dword [esp + 0x4c], eax
mov eax, dword [str.SandboxieWUAU.exe]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
test ecx, ecx
je 0x7d2856e2
push ecx
push edi
call sub.ntdll.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x7d2856cf
mov esi, dword [ebx + 4]
push 0x2e
push esi
call sub.ntdll.dll_wcsrchr
sub eax, esi
sar eax, 1
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2a8]
push esi
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0x14
test eax, eax
je 0x7d2856db
mov ecx, dword [ebx + 8]
add ebx, 8
test ecx, ecx
jne 0x7d285698
jmp 0x7d2856e2
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x24], eax
mov esi, dword [esp + 0x20]
cmp dword [ebp + 0x24], 0
mov ebx, dword [esp + 0x1c]
je 0x7d2856f7
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
push str.SBIE_Win32ExitCode
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d28573d
cmp dword [esp + 0x5c], 4
jne 0x7d28573d
cmp dword [esp + 0x60], 4
jne 0x7d28573d
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x14], eax
push str.SBIE_ServiceSpecificExitCode
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d285783
cmp dword [esp + 0x5c], 4
jne 0x7d285783
cmp dword [esp + 0x60], 4
jne 0x7d285783
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0xc], 1
je 0x7d28585f
push str.SBIE_ControlsAccepted
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d2857d3
cmp dword [esp + 0x5c], 4
jne 0x7d2857d3
cmp dword [esp + 0x60], 4
jne 0x7d2857d3
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x10], eax
push str.SBIE_CheckPoint
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d285819
cmp dword [esp + 0x5c], 4
jne 0x7d285819
cmp dword [esp + 0x60], 4
jne 0x7d285819
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x1c], eax
push str.SBIE_WaitHint
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d28585f
cmp dword [esp + 0x5c], 4
jne 0x7d28585f
cmp dword [esp + 0x60], 4
jne 0x7d28585f
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x20], eax
push ebx
push 0
lea ebx, [ebp + 0x30]
push ebx
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x374]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x7d285a33
cmp byte [0x7d2b7350], 0
lea eax, [ebx + 0x10]
lea ecx, [ebx + 0x18]
je 0x7d2858a1
mov esi, 0x30
mov ebx, eax
mov eax, ecx
lea ecx, [ebp + 0x58]
lea edi, [esi + 8]
lea edx, [esi + 0x10]
jmp 0x7d2858b1
mov esi, 0x1c
add ebx, 0xc
mov edx, 0x24
lea edi, [esi + 4]
add esi, 0x30
mov dword [ecx], edx
mov dword [eax], edx
add esi, ebp
lea eax, [ebp + 0x30]
mov dword [esp + 0x2c], esi
xor ecx, ecx
lea esi, [edx + eax]
mov word [edx + eax], cx
xor eax, eax
mov word [esi + 2], ax
add esi, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x7d28591f
mov edx, esi
mov ecx, eax
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x7d2858e1
lea ecx, [ebp + 0x30]
mov eax, esi
sub eax, ecx
mov dword [edi + ecx], eax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d285900
mov eax, dword [esp + 0x28]
sub ecx, edx
sar ecx, 1
push eax
lea esi, [esi + ecx*2]
add esi, 2
call fcn.7d221537
mov eax, dword [esp + 0x24]
test eax, eax
je 0x7d285971
mov edx, esi
mov ecx, eax
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x7d285930
mov ecx, esi
lea edi, [ebp + 0x30]
mov eax, esi
sub eax, edi
mov dword [ebx], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d285950
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
mov ecx, dword [esp + 0x24]
push ecx
add esi, 2
call fcn.7d221537
jmp 0x7d285974
lea edi, [ebp + 0x30]
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x7d2859a0
mov edx, esi
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x7d285982
mov eax, dword [esp + 0x2c]
sub esi, edi
push ebx
mov dword [eax], esi
call fcn.7d221537
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [edi], eax
lea eax, [esp + 0x14]
push str.Start
push eax
call ebx
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
js 0x7d2859f3
cmp dword [esp + 0x5c], 4
jne 0x7d2859f3
cmp dword [esp + 0x60], 4
jne 0x7d2859f3
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x34], eax
push str.ErrorControl
lea eax, [esp + 0x18]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
push 0x200
lea eax, [esp + 0x60]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
js 0x7d285a63
cmp dword [esp + 0x5c], 4
jne 0x7d285a63
cmp dword [esp + 0x60], 4
jne 0x7d285a63
mov eax, dword [esp + 0x64]
mov dword [ebp + 0x38], eax
jmp 0x7d285a63
cmp eax, 1
jne 0x7d285a63
cmp byte [0x7d2b7350], 0
mov ecx, 8
mov eax, 4
cmovne eax, ecx
mov dword [ebx], eax
sub eax, edi
lea ecx, [eax + ebx]
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x7d285a53
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x34c
ret 0xc