Function at 0x7d22f840
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x144
push ebx
push esi
push edi
push 0x2000
call fcn.7d221505
push 0x2000
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x30], ebx
call sub.ntdll.dll_memset
add esp, 0xc
xor edi, edi
mov dword [esp + 0x14], edi
push 0x1ff0
push ebx
push 0x20000000
push str.AutoExec
push edi
call sym.SbieDll.dll_SbieApi_QueryConf
test eax, eax
jne 0x7d22fb81
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [0x7d2b706c]
test eax, eax
je 0x7d22f8ef
lea ecx, [esp + 0x4c]
push ecx
push 0x10
lea ecx, [esp + 0xa0]
push ecx
push 0
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
cmp eax, 0xc0000034
jne 0x7d22fb5a
mov eax, dword [0x7d2b706c]
test eax, eax
je 0x7d22f8ef
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtSetValueKey]
jmp 0x7d22f8f1
xor eax, eax
test eax, eax
js 0x7d22fb8e
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x7d22fb5a
lea ecx, [esi*2 + 0x10]
push ecx
call fcn.7d221505
mov edi, eax
push esi
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
push 0x4000
mov word [edi + esi*2], ax
call fcn.7d221505
mov ebx, edi
mov dword [esp + 0x20], eax
push 0x25
push ebx
mov dword [esp + 0x14], ebx
mov edi, eax
call sub.ntdll.dll_wcschr
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
je 0x7d22fa75
nop
lea ecx, [esi + 2]
push 0x25
push ecx
call sub.ntdll.dll_wcschr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x7d22fa71
mov eax, dword [esp + 0xc]
cmp esi, eax
je 0x7d22f99a
mov ecx, esi
sub ecx, eax
sar ecx, 1
lea esi, [ecx + ecx]
push esi
push eax
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
add edi, esi
mov esi, dword [esp + 0x18]
lea eax, [ebx + 2]
sub ebx, esi
sar ebx, 1
inc ebx
mov dword [esp + 0xc], eax
lea eax, [ebx + ebx]
mov dword [esp + 0x10], eax
cmp ebx, 0x40
ja 0x7d22fa3b
push eax
lea eax, [esp + 0xcc]
push esi
push eax
call sub.ntdll.dll_memcpy
xor eax, eax
add esp, 0xc
mov word [esp + ebx*2 + 0xc8], ax
mov ecx, edi
sub ecx, dword [esp + 0x20]
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
add eax, eax
push eax
push edi
push 0x80000000
lea eax, [esp + 0xd4]
push eax
push 0
call sym.SbieDll.dll_SbieApi_QueryConf
test eax, eax
js 0x7d22fa37
push 8
push str.Device_
push edi
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7d22fa17
push edi
call sym.SbieDll.dll_SbieDll_TranslateNtToDosPath
mov eax, edi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x7d22fa20
sub eax, edx
sar eax, 1
add eax, eax
mov dword [esp + 0x10], eax
jmp 0x7d22fa4e
mov eax, dword [esp + 0x10]
push eax
push esi
push edi
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [esp + 0x10], 0x8000
mov ebx, dword [esp + 0xc]
push 0x25
push ebx
call sub.ntdll.dll_wcschr
add edi, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
test esi, esi
jne 0x7d22f960
jmp 0x7d22fa75
mov ebx, dword [esp + 0xc]
sub edi, ebx
nop word [eax + eax]
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [edi + ebx - 2], ax
test ax, ax
jne 0x7d22fa80
push dword [esp + 0x1c]
call fcn.7d221537
mov ebx, dword [esp + 0x20]
xor eax, eax
mov word [esp + 0x92], ax
xorps xmm0, xmm0
mov word [esp + 0x80], ax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x54]
movlpd qword [esp + 0x58], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xaa], xmm0
movlpd qword [esp + 0xb2], xmm0
mov dword [esp + 0x78], 0x44
mov dword [esp + 0xa4], 0x81
movaps xmmword [esp + 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ebx
mov esi, eax
call fcn.7d221537
test esi, esi
je 0x7d22fb52
push 0x2710
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x30]
call esi
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
push 0x1ff0
inc edi
push ebx
mov eax, edi
mov dword [esp + 0x1c], edi
or eax, 0x20000000
push eax
push str.AutoExec
push 0
call sym.SbieDll.dll_SbieApi_QueryConf
test eax, eax
je 0x7d22f893
push ebx
call fcn.7d221537
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edi
push str._d___08X_
lea eax, [esp + 0xb4]
push 0x10
push eax
call sym.SbieDll.dll_Sbie_snwprintf
lea eax, [esp + 0xbc]
push eax
push 0x89e
call sym.SbieDll.dll_SbieApi_Log
add esp, 0x1c
jmp 0x7d22fb5a