Function at 0x10096790
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018edf1
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x101ed40c]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x260]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100967fe
push str.Failed_to_open_process_token.
push 0x101f3da8
call fcn.100880a0
push eax
call fcn.10088820
add esp, 0xc
jmp 0x10096884
lea eax, [ebp - 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1009681a
push str.Failed_to_lookup_privilege_value.
jmp 0x10096869
mov eax, dword [ebp - 0x18]
push 0
push 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x260]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10096857
push str.Failed_to_adjust_token_privileges.
jmp 0x10096869
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x1009687c
push str.The_token_does_not_have_the_specified_privilege.
push 0x101f3da8
call fcn.100880a0
push eax
call fcn.10088820
add esp, 0xc
push dword [ebp - 0x260]
call ebx
cmp dword [esi + 0x14], 8
jb 0x1009688c
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100968a5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.10044c60
push 0
push 2
mov dword [ebp - 0x25c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, dword [ebp - 0x30]
mov edi, eax
cmp edi, 0xffffffff
je 0x1009696a
lea eax, [ebp - 0x25c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10096962
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10096900
mov ecx, dword [ebp - 0x20]
lea esi, [ebp - 0x30]
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x1c], 8
cmovae esi, ebx
cmp ecx, eax
jne 0x10096951
mov edx, ecx
lea ecx, [ebp - 0x238]
test edx, edx
je 0x10096941
mov eax, ecx
sub esi, eax
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x10096951
add ecx, 2
sub edx, 1
jne 0x10096930
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
mov esi, dword [ebp - 0x254]
jmp 0x1009696c
lea eax, [ebp - 0x25c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100968f0
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
xor esi, esi
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x100969a3
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x10096999
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10096b57
push ecx
push ebx
call fcn.1012659a
add esp, 8
test esi, esi
jne 0x100969c6
push str.Explorer_process_not_found_
push 0x101f3da8
call fcn.100880a0
push eax
call fcn.10088820
add esp, 0xc
xor eax, eax
jmp 0x10096b3b
push 4
call fcn.100976a0
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x264], edx
call fcn.100976a0
mov ebx, eax
add esp, 8
mov eax, edx
mov ecx, ebx
or ecx, eax
mov dword [ebp - 0x260], eax
jne 0x100969f6
push str.Failed_to_retrieve_Explorer_process_start_time_
jmp 0x100969ac
call fcn.100ca860
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10096b00
push 0x51
push str.d:jenkins.jenkinsworkspacepcmanage_ownpop_native_rightsplugin_rightsutils.cpp
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], al
call fcn.10044b60
push 3
push 0x1019eb18
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], 0
call fcn.10044b60
mov byte [ebp - 4], 1
call fcn.100ca860
mov edi, eax
lea ecx, [ebp - 0xc8]
push 0x352
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.100461a0
mov esi, eax
push str.explorer
push esi
mov byte [ebp - 4], 2
call fcn.10047780
add esp, 8
mov ecx, esi
push dword [ebp - 0x260]
push ebx
call fcn.100475e0
push 0x101a3b24
push esi
call fcn.10047780
add esp, 8
mov ecx, esi
push dword [ebp - 0x264]
push dword [ebp - 0x14]
call fcn.100475e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xc8]
call fcn.100478a0
lea ecx, [ebp - 0x27c]
call fcn.10042450
lea ecx, [ebp - 0x294]
call fcn.10042450
push 0
push 0x989680
push dword [ebp - 0x260]
push ebx
call fcn.10126ba0
push 0
push 0x989680
push dword [ebp - 0x264]
mov edi, eax
mov esi, edx
push dword [ebp - 0x14]
call fcn.10126ba0
sub edi, eax
sbb esi, edx
mov eax, esi
cdq
xor eax, edx
xor edi, edx
sub edi, edx
mov eax, edi
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.10126919
mov esp, ebp
pop ebp
ret
call fcn.101513dc
int3