Function at 0x403660
Capabilities:
Create process on windows
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466fee
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x480494]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x14], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40370c
lea ecx, [ebp - 0x150]
call fcn.00401e10
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__tmain__Invoke_CreateToolhelp32Snapshot_Failure._errid_u_n
lea eax, [ebp - 0x150]
push eax
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x150]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x284], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00401ed0
mov eax, dword [ebp - 0x284]
jmp 0x403b34
mov dword [ebp - 0x14c], 0x128
lea ecx, [ebp - 0x14c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x403790
lea ecx, [ebp - 0x154]
call fcn.00401e10
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__tmain__Invoke_Process32First_Failure._errid_u_n
lea eax, [ebp - 0x154]
push eax
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x154]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x288], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.00401ed0
mov eax, dword [ebp - 0x288]
jmp 0x403b34
push str.explorer.exe
lea ecx, [ebp - 0x128]
push ecx
call fcn.004381f7
add esp, 8
test eax, eax
jne 0x4037e0
mov dword [ebp - 0x158], 0
lea edx, [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4037e0
mov ecx, dword [ebp - 0x158]
cmp ecx, dword [ebp - 0x14]
jne 0x4037e0
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x10], edx
jmp 0x4037f4
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403790
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0x201eb
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403870
lea ecx, [ebp - 0x15c]
call fcn.00401e10
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__tmain__Invoke_OpenProcessToken_Failure._errid_u_n
lea edx, [ebp - 0x15c]
push edx
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x15c]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00401ed0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x403acf
lea ecx, [ebp - 0x160]
call fcn.00401e10
mov dword [ebp - 4], 3
call fcn.00403570
test eax, eax
je 0x4038e5
lea ecx, [ebp - 0x28c]
push ecx
call fcn.004030c0
add esp, 4
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x160]
call fcn.00401ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.00401ed0
jmp 0x40392b
lea ecx, [ebp - 0x290]
push ecx
call fcn.00402e00
add esp, 4
mov dword [ebp - 0x2a4], eax
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x160]
call fcn.00401ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x290]
call fcn.00401ed0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x274]
call fcn.00401e50
mov byte [ebp - 4], 6
cmp dword [ebp + 8], 0
jle 0x403986
push 0
push str.EweiGetDefaultBrowser.exe
lea ecx, [ebp - 0x274]
call fcn.00401f30
cmp eax, 0xffffffff
jne 0x403986
push 3
push 0
lea ecx, [ebp - 0x274]
call fcn.00402190
push eax
lea ecx, [ebp - 0x160]
call fcn.00402190
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 0x26c], 0
push 0x103
push 0
lea eax, [ebp - 0x26b]
push eax
call fcn.004397b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x26c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x278]
call fcn.00401e50
mov byte [ebp - 4], 7
push 0x5c
lea ecx, [ebp - 0x278]
call fcn.00403c00
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
add eax, 1
push eax
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x278]
call fcn.004020b0
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x278]
call fcn.00401ef0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x294]
call fcn.00401ed0
push str.EweiDefaultBr.ini
lea ecx, [ebp - 0x278]
call fcn.00403b70
push ecx
mov ecx, esp
mov dword [ebp - 0x298], esp
lea edx, [ebp - 0x278]
push edx
call fcn.00401e30
mov dword [ebp - 0x2b4], eax
lea ecx, [ebp - 0x270]
call fcn.00401da0
mov dword [ebp - 0x2b8], eax
push 1
lea ecx, [ebp - 0x160]
call fcn.00402190
push eax
push str.Path
push str.DefaultBr
lea ecx, [ebp - 0x270]
call fcn.00401560
lea ecx, [ebp - 0x270]
call fcn.00403b50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
call fcn.00401ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.00401ed0
jmp 0x403b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x280], eax
lea ecx, [ebp - 0x27c]
call fcn.00401e10
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x280]
push eax
push str.__tmain__Invoke_ImpersonateLoggedOnUser_Failure._errid_u_n
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00403df0
add esp, 0xc
lea ecx, [ebp - 0x27c]
call fcn.00402190
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.00401ed0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00437ab2
mov esp, ebp
pop ebp
ret