Function at 0x7d287620
Capabilities:
Create thread
Delete registry value
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
sub esp, 0x1d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
mov esi, dword [esp + 0x1dc]
push edi
push 0
push 0
push dword [0x7d2b69a8]
call ebx
test eax, eax
je 0x7d287677
push 0x800
call fcn.7d2217b2
push 0x3fc
mov edi, eax
push edi
push dword [0x7d2b69a8]
call ebx
push 0
push dword [0x7d2b69a8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov bl, byte [esp + 0x1e4]
jmp 0x7d2876d2
mov bl, byte [esp + 0x1e4]
mov edi, dword [esi]
test bl, bl
je 0x7d287692
cmp dword [esi + 8], 0
jne 0x7d2876c0
cmp dword [esi + 0xc], 0
jne 0x7d2876c0
jmp 0x7d2876d2
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 1
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
cmp dword [esi + 8], 0
mov edi, dword [esp + 0x14]
jne 0x7d2876c0
cmp dword [esi + 0xc], 0
je 0x7d2876d2
push str.StartServiceCtrlDispatcher
push 0x89d
call sym.SbieDll.dll_SbieApi_Log
add esp, 8
push edi
push str.StartServiceCtrlDispatcher__name:__s
lea eax, [esp + 0xe0]
push 0x82
push eax
call sym.SbieDll.dll_Sbie_snwprintf
add esp, 0x10
lea eax, [esp + 0xd8]
push eax
push 0xe
call sym.SbieDll.dll__SbieApi_MonitorPutMsg_8
push 1
push edi
call fcn.7d221de3
mov dword [0x7d2dea30], eax
test eax, eax
jne 0x7d287726
push 0x424
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1d0
ret 8
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0
push ecx
push 0x12340003
xorps xmm0, xmm0
mov dword [esp + 0x5c], 0
push eax
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], 1
mov dword [esp + 0x64], 0x1388
call fcn.7d286e70
push dword [0x7d2b6988]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
call sub.ntdll.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x7d287855
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateWaitableTimerW
push dword [0x7d2b7300]
mov byte [0x7d2de94d], 1
call ebx
push 0
push 0x7d2818f0
push eax
push str.CreateWaitableTimerW
call sym.SbieDll.dll_SbieDll_Hook
mov dword [0x7d2dea20], eax
test eax, eax
je 0x7d287855
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 8
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
test eax, eax
je 0x7d2877ff
push dword [esp + 0xc]
call fcn.7d221cb7
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
jne 0x7d287855
push str.Advapi32.dll
mov byte [0x7d2de94c], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.OpenProcessToken
push esi
call ebx
push 0
push 0x7d284c80
push eax
push str.OpenProcessToken
call sym.SbieDll.dll_SbieDll_Hook
mov dword [0x7d2dea24], eax
test eax, eax
je 0x7d287855
push str.GetTokenInformation
push esi
call ebx
push 0
push 0x7d282cb0
push eax
push str.GetTokenInformation
call sym.SbieDll.dll_SbieDll_Hook
mov dword [0x7d2dea28], eax
lea eax, [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0x7d286d80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x7d28787d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x7d287884
mov byte [0x7d2de94f], 1
push ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x7d287a03
push 0x400
call fcn.7d2217b2
mov ebx, eax
lea eax, [esp + 0x14]
push str.SBIE_ControlCode
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ebp, dword [sym.imp.ntdll.dll_NtNotifyChangeKey]
lea eax, [esp + 0x38]
push 1
push 0x400
push ebx
push 0
push 4
push eax
push 0
push 0
push esi
push dword [0x7d2dea30]
call ebp
test eax, eax
js 0x7d287a03
cmp byte [0x7d2de94f], 0
jne 0x7d2879aa
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
js 0x7d28799d
push edi
call fcn.7d281bd0
lea eax, [esp + 0x2c]
push eax
push 0x80
lea eax, [esp + 0x64]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push dword [0x7d2dea30]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x7d28796a
cmp dword [esp + 0x60], 4
jne 0x7d28796a
cmp dword [esp + 0x64], 4
jne 0x7d28796a
mov eax, dword [0x7d2dea34]
test eax, eax
je 0x7d287951
push dword [esp + 0x68]
call eax
jmp 0x7d28796a
mov eax, dword [0x7d2dea38]
test eax, eax
je 0x7d28796a
push dword [0x7d2dea3c]
push 0
push 0
push dword [esp + 0x74]
call eax
lea eax, [esp + 0x14]
push eax
push dword [0x7d2dea30]
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
test eax, eax
js 0x7d28799d
push 1
push 0x400
push ebx
push 0
push 4
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push esi
push dword [0x7d2dea30]
call ebp
cmp byte [0x7d2de94f], 0
je 0x7d2878f2
mov al, byte [0x7d2de94e]
mov edx, str.failure
test al, al
mov ecx, str.sucess
lea eax, [esp + 0xdc]
cmove ecx, edx
push ecx
push str.StartServiceCtrlDispatcher__result:__s
push 0x82
push eax
call sym.SbieDll.dll_Sbie_snwprintf
add esp, 0x10
lea eax, [esp + 0xdc]
push eax
push 0xe
call sym.SbieDll.dll__SbieApi_MonitorPutMsg_8
cmp byte [0x7d2de94e], 0
je 0x7d287a03
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1d0
ret 8
push edi
push 0x8a3
call sym.SbieDll.dll_SbieApi_Log
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1d0
ret 8