Function at 0x100095d0
Capabilities:
Acquire debug privileges
Enumerate processes
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c4
mov eax, dword [0x10032014]
xor eax, esp
mov dword [esp + 0x5c0], eax
push ebx
push esi
push edi
push 0x124
lea eax, [esp + 0x28]
push 0
push eax
call fcn.100146a0
add esp, 0xc
lea eax, [esp + 0x158]
push 0x104
push 0
push eax
call fcn.100146a0
add esp, 0xc
lea eax, [esp + 0xc]
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
je 0x10009687
lea eax, [esp + 0x14c]
mov dword [esp + 0x148], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x160], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [esp + 0x154]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
call ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x100096b3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c0]
xor ecx, esp
call fcn.10012425
mov esp, ebp
pop ebp
ret
push 0x400
push 0x40
mov dword [esp + 0x28], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [esp + 0x10], 1
lea eax, [esp + 0x20]
mov dword [esp + 0xc], esi
push eax
push edi
mov byte [esi], 0x7d
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10009949
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop
push dword [esp + 0x28]
push 0
push 0x410
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10009924
cmp eax, 4
je 0x10009924
cmp eax, 8
je 0x10009924
push eax
push 0
push 0x410
mov byte [esp + 0x164], 0
call esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1000983b
push 0x104
lea ecx, [esp + 0x2cc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x1000982b
lea eax, [esp + 0x3d0]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10009815
cmp byte [esp + 0x3d0], 0
je 0x10009815
lea esi, [esp + 0x3d0]
push 0x1002e604
push esi
call ebx
test eax, eax
je 0x1000980d
push 0x1002e608
push esi
call ebx
test eax, eax
je 0x1000980d
movzx eax, byte [esi]
mov byte [esp + 0x14], al
movzx eax, byte [esi + 1]
mov byte [esp + 0x15], al
lea eax, [esp + 0x260]
push 0x64
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x1e], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x1000982b
lea eax, [esp + 0x260]
push eax
call edi
mov edi, eax
lea eax, [esp + 0x260]
push edi
push eax
lea eax, [esp + 0x2d0]
push eax
call fcn.10016978
add esp, 0xc
test eax, eax
je 0x1000987c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, 4
cmp byte [esi], 0
jne 0x10009795
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x44]
push eax
call edi
mov esi, eax
lea eax, [esp + 0x158]
push eax
call edi
push dword [esp + 0xc]
add eax, esi
mov esi, dword [esp + 0x14]
add esi, 6
add esi, eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x100098a9
push 0x42
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
mov dword [esp + 0xc], esi
jmp 0x100098ad
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x2c8]
add eax, edi
push eax
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x1000982b
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov dword [ecx + esi], eax
lea eax, [esp + 0x44]
add ecx, 4
push eax
mov dword [esp + 0x14], ecx
call edi
inc eax
push eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x18]
add eax, esi
push eax
call fcn.10014120
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call edi
mov esi, dword [esp + 0x10]
inc esi
add esi, eax
lea eax, [esp + 0x158]
push eax
call edi
inc eax
push eax
lea eax, [esp + 0x15c]
push eax
mov eax, dword [esp + 0x14]
add eax, esi
push eax
call fcn.10014120
add esp, 0xc
lea eax, [esp + 0x158]
push eax
call edi
inc esi
add eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10009700
mov esi, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
push 0x42
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100099c1
lea eax, [esp + 0x14c]
mov dword [esp + 0x148], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x160], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [esp + 0x154]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x18]
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x5cc]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10012425
mov esp, ebp
pop ebp
ret