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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063e59
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x100ad040]
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 - 0x244], esi
mov ebx, ecx
mov dword [ebp - 0x234], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x221], al
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x284]
push 0x3c
push eax
call fcn.1002d240
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, 0x10
mov dword [ebp - 0x284], 0x3c
mov dword [ebp - 0x280], 0x440
call fcn.10009d60
add eax, 0x10
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 1
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.10009d60
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.100170b0
mov ebx, eax
mov byte [ebp - 4], 4
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x10016c3b
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x1001684c
push esi
mov ecx, ebx
call fcn.10007d60
lea eax, [esi + 1]
push eax
push dword [ebx]
call fcn.10053f62
mov eax, dword [ebx]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x10016c3b
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.10009d60
lea esi, [eax + 0x10]
mov dword [ebp - 0x248], esi
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x100168bb
mov eax, dword [ecx]
mov dword [ebp - 0x240], eax
push ecx
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x1006e578]
mov ecx, dword [ebp - 0x240]
call ebx
mov bl, byte [ebp - 0x221]
test bl, bl
je 0x1001698c
mov ecx, str..bat
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100168f6
test dx, dx
je 0x100168f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100168f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100168d0
xor eax, eax
jmp 0x100168fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10016935
mov ecx, str..cmd
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001692c
test dx, dx
je 0x10016928
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001692c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10016906
xor eax, eax
jmp 0x10016931
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1001698c
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.10011410
mov eax, dword [ebp - 0x244]
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.10011410
mov edi, dword [ebp - 0x22c]
add esp, 0x10
mov eax, dword [ebp - 0x228]
mov ecx, str.open
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 5
test bl, bl
mov dword [ebp - 0x268], eax
mov eax, str.runas
cmove eax, ecx
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov dword [ebp - 0x26c], eax
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x270]
cmovne eax, edi
mov dword [ebp - 0x270], eax
test bl, bl
je 0x100169fb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10016a3d
mov eax, dword [ebp - 0x264]
cmp eax, 0x1f
je 0x10016a1c
cmp eax, 0x1b
jne 0x10016a3d
and dword [ebp - 0x280], 0xfffffbff
lea eax, [ebp - 0x284]
push eax
mov dword [ebp - 0x278], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 0x248]
lea eax, [ebp - 0x284]
lea edx, [ebp - 0x220]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x290]
call fcn.10017230
add esp, 4
mov byte [ebp - 4], 9
mov ebx, dword [ebp - 0x24c]
mov dword [ebp - 0x220], ebx
test ebx, ebx
je 0x10016b5c
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x220]
mov ebx, eax
mov ecx, eax
call dword [0x1006e578]
call ebx
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ebx, dword [ebp - 0x24c]
test ebx, ebx
je 0x10016b5c
cmp dword [ebp + 0xc], 2
jne 0x10016b5c
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x10016b56
push ebx
mov ecx, eax
call dword [0x1006e578]
call dword [ebp - 0x220]
mov dword [ebp - 0x220], eax
xor ebx, ebx
nop dword [eax + eax]
cmp ebx, 0x14
jge 0x10016b56
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x238]
push eax
push 0x10016c50
mov dword [ebp - 0x234], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x234]
inc ebx
test eax, eax
je 0x10016b00
push 0x4003
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10016b8c
mov dword [eax], 0xffffffff
test ebx, ebx
je 0x10016b8c
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x290]
call fcn.10016cb0
mov byte [ebp - 4], 3
or ebx, 0xffffffff
lea ecx, [esi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10016bc8
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, ebx
call esi
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10016bef
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10016c1d
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
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.1004d46a
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10005390
int3