Function at 0x10005f50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412dd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100c2004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005fa3
cmp dword [ebp - 0x1c], 0
je 0x10005fe9
xor al, al
jmp 0x1000614d
call fcn.100151f0
mov esi, eax
mov ecx, dword [esi]
cmp ecx, 1
jl 0x10005fe9
call fcn.10015310
cmp byte [eax + 4], 0
je 0x10005fc3
xor ecx, ecx
cmp dword [eax], 1
jmp 0x10005fcb
mov eax, dword [esi + 4]
xor ecx, ecx
cmp eax, 1
setge cl
test cl, cl
je 0x10005fe9
call ebx
push eax
push edi
push str.AllProcessesInjector::ShouldSkipCriticalProcess
push str._WH____S_:_ProcessIdToSessionId_failed_for__u:__u_n
push esi
call fcn.100011c0
add esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10006084
mov esi, dword [ebp + 4]
call ebx
cmp eax, 0x3f0
jne 0x1000616b
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
mov ecx, dword [ebp + 4]
test eax, eax
je 0x1000617c
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000605d
cmp esi, 0xffffffff
je 0x1000605d
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov ecx, dword [ebp + 4]
test eax, eax
je 0x1000618b
lea eax, [ebp - 0x34]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp + 4]
test eax, eax
je 0x1000619a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
push 0
push 0
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp + 4]
test eax, eax
je 0x100061a9
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x38], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x18]
push 0
push 0x10047a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x10006114
call ebx
cmp eax, 5
jne 0x100061b8
test esi, esi
sete bl
test esi, esi
je 0x1000611e
push esi
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [eax + 0xc], 2
lea eax, [ebp - 0x14]
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000614b
cmp ecx, 0xffffffff
je 0x1000614b
push ecx
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002db4b
mov esp, ebp
pop ebp
ret 4
push str.engine_all_processes_injector.cpp
mov edx, 0xdf
mov ecx, esi
call fcn.10008fa0
push str.engine_all_processes_injector.cpp
mov edx, 0xe0
call fcn.10008fa0
push str.engine_all_processes_injector.cpp
mov edx, 0xe2
call fcn.10008fa0
push str.engine_all_processes_injector.cpp
mov edx, 0xe7
call fcn.10008fa0
push str.engine_all_processes_injector.cpp
mov edx, 0xef
call fcn.10008fa0
mov ecx, dword [ebp + 4]
mov edx, 0xf8
push str.engine_all_processes_injector.cpp
call fcn.10008fa0
int3