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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x64b9b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x258], ecx
call fcn.0041f750
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x248], eax
push ecx
xor edi, edi
mov dword [ebp - 0x250], 0
push eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41f8f2
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f8d7
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41f8a2
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x214]
push str.explorer.exe
push eax
call fcn.0059b7f6
add esp, 8
test eax, eax
jne 0x41f88e
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41f88e
cmp dword [ebp - 0x248], edi
je 0x41f8ea
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41f851
xor edi, edi
push esi
call ebx
test edi, edi
je 0x41f8d7
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41f8d7
lea eax, [ebp - 0x240]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41f8f2
push edi
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b967
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x230]
jmp 0x41f8a2
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x41f8d7
lea ecx, [ebp - 0x250]
push ecx
push 4
lea ecx, [ebp - 0x254]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41f953
lea eax, [ebp - 0x24c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x23c]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [ebp - 0x23c]
jmp 0x41f95f
mov esi, dword [ebp - 0x254]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0x2000000
test esi, esi
je 0x41f99d
push 1
push esi
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov esi, dword [ebp - 0x23c]
test eax, eax
je 0x41f99d
mov dword [ebp - 0x248], 0x2000400
jmp 0x41f9a7
mov dword [ebp - 0x244], 0
push 0x44
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.005949a0
add esp, 0xc
mov dword [ebp - 0x2b0], 0x44
xor eax, eax
mov dword [ebp - 0x284], 1
mov word [ebp - 0x280], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x2b0]
push eax
push 0
push dword [ebp - 0x244]
movups xmmword [ebp - 0x268], xmm0
push dword [ebp - 0x248]
push 0
push 0
push 0
push dword [ebp - 0x258]
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x268], 0
mov esi, eax
je 0x41fa2d
push dword [ebp - 0x264]
call ebx
push dword [ebp - 0x268]
call ebx
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x41fa3a
push eax
call ebx
test edi, edi
je 0x41fa41
push edi
call ebx
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x41fa4e
push eax
call ebx
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x41fa5f
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b967
mov esp, ebp
pop ebp
ret