Function at 0x41f510
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x4c206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], esi
call fcn.0041f490
test eax, eax
jne 0x41f56a
push 1
push esi
push eax
push ebx
push 0x4ab538
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
pop esi
setg cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f78d
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x238], 0
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00471be0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41f606
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.0047a61e
add esp, 8
test eax, eax
je 0x41f5f8
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x41f5d0
jmp 0x41f608
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
jmp 0x41f608
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x238]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41f78d
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41f651
call ebx
push edi
call esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x234]
call esi
mov edi, dword [ebp - 0x23c]
test edi, edi
je 0x41f78f
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4c7c00]
cmp eax, dword [ecx + 4]
jle 0x41f6da
push 0x4c7c00
call fcn.004593a8
add esp, 4
cmp dword [0x4c7c00], 0xffffffff
jne 0x41f6da
push 0x4ab690
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x4c7c00
mov dword [0x4c7c04], eax
call fcn.0045935e
add esp, 4
mov eax, dword [0x4c7c04]
test eax, eax
jne 0x41f6f9
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x41f6e3
push 0x40
lea eax, [ebp - 0x294]
mov dword [ebp - 0x298], 0x44
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x254], xmm0
call fcn.00471be0
add esp, 0xc
mov dword [ebp - 0x290], str.winsta0default
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x240]
push 0
push 0x20
push 0
push dword [ebp - 0x244]
push 1
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x41f777
push dword [ebp - 0x254]
call esi
push dword [ebp - 0x250]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004591b7
mov esp, ebp
pop ebp
ret