Function at 0x417ac0
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd2eb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
call fcn.00417a50
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x270], eax
push ecx
xor edi, edi
mov dword [ebp - 0x268], 0
push eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x417ca6
xor eax, eax
push eax
push 2
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x417c94
push 0x62e910
lea ecx, [ebp - 0x24c]
call fcn.004063d0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
push edi
mov dword [ebp - 0x248], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x417c34
push str.plor
lea ecx, [ebp - 0x24c]
call fcn.00406310
push str.er.e
lea ecx, [ebp - 0x24c]
call fcn.00406310
push 0x62e930
lea ecx, [ebp - 0x24c]
call fcn.00406310
nop dword [eax]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x224]
push eax
call fcn.005a7904
add esp, 8
test eax, eax
jne 0x417c14
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x417c14
mov eax, dword [ebp - 0x270]
cmp dword [ebp - 0x264], eax
je 0x417c28
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x417bd0
jmp 0x417c34
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
push edi
call esi
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x417c6f
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x417c6f
lea eax, [ebp - 0x254]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x417c9b
push edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417c94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x417e23
lea ecx, [ebp - 0x24c]
call fcn.004063b0
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x417c94
lea ecx, [ebp - 0x268]
push ecx
push 4
lea ecx, [ebp - 0x26c]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x417d07
lea eax, [ebp - 0x274]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x250]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [ebp - 0x250]
jmp 0x417d13
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x2000000
test esi, esi
je 0x417d51
push 1
push esi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov esi, dword [ebp - 0x250]
test eax, eax
je 0x417d51
mov dword [ebp - 0x258], 0x2000400
jmp 0x417d5b
mov dword [ebp - 0x25c], 0
push 0x44
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.0059f570
add esp, 0xc
mov dword [ebp - 0x2d0], 0x44
xor eax, eax
mov dword [ebp - 0x2a4], 1
mov word [ebp - 0x2a0], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 0
push dword [ebp - 0x25c]
movups xmmword [ebp - 0x284], xmm0
push dword [ebp - 0x258]
push 0
push 0
push 0
push dword [ebp - 0x260]
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x284], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x260], eax
je 0x417deb
push dword [ebp - 0x280]
call esi
push dword [ebp - 0x284]
call esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x417df8
push eax
call esi
test edi, edi
je 0x417dff
push edi
call esi
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x417e0c
push eax
call esi
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x417e1d
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret