Function at 0x10015b70
Capabilities:
Create process on windows
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c169
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x240], esi
mov ebx, ecx
mov dword [ebp - 0x234], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x21d], al
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x280]
push 0x3c
push eax
call fcn.100262e0
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, 0x10
mov dword [ebp - 0x280], 0x3c
mov dword [ebp - 0x27c], 0x440
call fcn.10009ac0
add eax, 0x10
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 1
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.10009ac0
lea edi, [eax + 0x10]
mov dword [ebp - 0x22c], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x23c]
push ecx
push eax
mov ecx, ebx
call fcn.10016370
mov ebx, eax
mov byte [ebp - 4], 4
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x10015fd5
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x10015c5c
push esi
mov ecx, ebx
call fcn.10007c30
lea eax, [esi + 1]
push eax
push dword [ebx]
call fcn.1004b6a2
mov eax, dword [ebx]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x10015fd5
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + esi*2], cx
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.10009ac0
lea esi, [eax + 0x10]
mov dword [ebp - 0x244], esi
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10015cb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, byte [ebp - 0x21d]
test bl, bl
je 0x10015d8c
mov ecx, str..bat
mov eax, esi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10015cf6
test dx, dx
je 0x10015cf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10015cf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10015cd0
xor eax, eax
jmp 0x10015cfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10015d35
mov ecx, str..cmd
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10015d2c
test dx, dx
je 0x10015d28
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10015d2c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10015d06
xor eax, eax
jmp 0x10015d31
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10015d8c
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push str._sSystem32cmd.exe
push eax
call fcn.100107e0
mov eax, dword [ebp - 0x240]
add esp, 0xc
push dword [eax]
mov eax, dword [ebp - 0x234]
push dword [eax]
lea eax, [ebp - 0x22c]
push str._C____s___s_
push eax
call fcn.100107e0
mov edi, dword [ebp - 0x22c]
add esp, 0x10
mov eax, dword [ebp - 0x228]
mov ecx, str.open
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 5
test bl, bl
mov dword [ebp - 0x264], eax
mov eax, str.runas
cmove eax, ecx
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x268]
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov dword [ebp - 0x268], eax
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x26c]
cmovne eax, edi
mov dword [ebp - 0x26c], eax
test bl, bl
je 0x10015dfb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x278], eax
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x280]
push eax
call ebx
test eax, eax
jne 0x10015e3b
mov eax, dword [ebp - 0x260]
cmp eax, 0x1f
je 0x10015e1e
cmp eax, 0x1b
jne 0x10015e3b
and dword [ebp - 0x27c], 0xfffffbff
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - 0x274], 0
call ebx
push dword [ebp - 0x244]
lea eax, [ebp - 0x280]
lea edx, [ebp - 0x224]
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x28c]
call fcn.100164b0
add esp, 4
mov byte [ebp - 4], 9
mov ebx, dword [ebp - 0x248]
test ebx, ebx
je 0x10015f1d
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call eax
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ebx, dword [ebp - 0x248]
test ebx, ebx
je 0x10015f1d
cmp dword [ebp + 0xc], 2
jne 0x10015f1d
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015f17
push ebx
call eax
mov dword [ebp - 0x224], eax
xor ebx, ebx
nop word [eax + eax]
cmp ebx, 0x14
jge 0x10015f17
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push 0x10015fe0
mov dword [ebp - 0x234], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x234]
inc ebx
test eax, eax
je 0x10015ed0
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ebx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10015f4d
mov dword [eax], 0xffffffff
test ebx, ebx
je 0x10015f4d
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28c]
call fcn.10016040
mov byte [ebp - 4], 3
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10015f7a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10015f95
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10015fb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10044a98
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10005390
int3