Function at 0x10015480
Capabilities:
Create process on windows
Link many functions at runtime
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push 0x40
mov dword [esp + 0x44], eax
lea eax, [esp + 0x76]
xor edx, edx
push esi
push eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], esi
mov word [esp + 0x7c], dx
call fcn.10116880
add esp, 0xc
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
call sym.EncDec.dll_IsSystemUser
test eax, eax
je 0x10015522
push 0x103
lea ecx, [esp + 0x1c5]
push esi
push ecx
mov byte [esp + 0x1cc], 0
call fcn.10116880
add esp, 0xc
push esi
lea edx, [esp + 0x1c4]
push esi
push edx
xor edx, edx
xor ecx, ecx
call fcn.10068d50
add esp, 0xc
test eax, eax
jne 0x1001587d
mov dword [esp + 0x10], 1
mov ecx, str.Rstrtmgr.dll
call fcn.10032000
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, esi
je 0x10015870
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RmStartSession
push ebx
call esi
push str.RmRegisterResources
push ebx
mov edi, eax
call esi
push str.RmGetList
push ebx
mov dword [esp + 0x1c], eax
call esi
push str.RmShutdown
push ebx
mov dword [esp + 0x30], eax
call esi
push str.RmRestart
push ebx
mov dword [esp + 0x38], eax
call esi
push str.RmEndSession
push ebx
mov dword [esp + 0x2c], eax
call esi
mov dword [esp + 0x3c], eax
test edi, edi
je 0x10015869
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10015869
cmp dword [esp + 0x28], 0
je 0x10015869
cmp dword [esp + 0x30], 0
je 0x10015869
cmp dword [esp + 0x24], 0
je 0x10015869
test eax, eax
je 0x10015869
lea eax, [esp + 0x70]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
jne 0x10015765
lea edx, [esp + 0x50]
push edx
call fcn.100321f0
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
test ecx, ecx
jbe 0x1001575c
mov edx, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
push 1
push 0
push 0
push edx
call esi
test eax, eax
jne 0x1001575c
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call dword [esp + 0x3c]
test eax, eax
je 0x10015699
cmp eax, 0xea
jne 0x1001574b
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x1001566d
push ebx
call fcn.1010d9f8
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 0x29c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010ccc2
mov ebx, eax
mov eax, esi
add esp, 4
inc esi
cmp eax, 3
jb 0x10015630
jmp 0x1001574b
cmp dword [esp + 0x14], 0
jne 0x1001574b
mov ecx, dword [esp + 0xc]
push 0
push 1
push ecx
call dword [esp + 0x3c]
test eax, eax
jne 0x1001574b
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x100156de
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100156de
mov edx, dword [ebp + 0x10]
push edx
push eax
push 3
push 0
push str.IconStreams
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
call dword [esp + 0x30]
test eax, eax
jne 0x10015743
xor edi, edi
mov esi, 0x64
call fcn.100326d0
lea ecx, [esp + 0x60]
push ecx
call fcn.100321f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
test ecx, ecx
jne 0x10015731
inc edi
cmp edi, 0x28
mov dword [esp + 0x18], 1
jl 0x100156f1
mov dword [esp + 0x34], 1
jmp 0x1001574b
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 1
jmp 0x1001574b
mov dword [esp + 0x18], 1
test ebx, ebx
je 0x10015758
push ebx
call fcn.1010d9f8
add esp, 4
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
push ecx
call dword [esp + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x18], 0
je 0x10015841
push 0x103
lea edx, [esp + 0x1c5]
push 0
push edx
mov byte [esp + 0x1cc], 0
call fcn.10116880
add esp, 0xc
push 0x103
lea eax, [esp + 0xbd]
push 0
push eax
mov byte [esp + 0xc4], 0
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 0x1c0]
push 0x104
push ecx
call fcn.10042f40
add esp, 8
lea edx, [esp + 0x1c0]
push edx
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xb8]
call fcn.10049c40
push str.explorer.exe
lea ecx, [esp + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
xor edx, edx
lea ecx, [esp + 0xc0]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1001582a
push 0xa
lea edx, [esp + 0xbc]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x10015841
lea eax, [esp + 0xb8]
push eax
push str.Unable_to_locate_explorer___s__
push 0
call fcn.10053700
add esp, 0xc
cmp dword [esp + 0x10], 1
jne 0x1001584e
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 1
jne 0x1001587d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1010d699
mov esp, ebp
pop ebp
ret 0xc