Function at 0x100297d0
Capabilities:
Acquire debug privileges
Enumerate processes
Get common file path

Disassembly:
sub esp, 0x61c
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.1001b690
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x280]
mov dword [esp + 0x27c], 0
rep stosd dword es:[edi], eax
mov ecx, 0xf
lea edi, [esp + 0x51]
mov byte [esp + 0x50], al
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x90], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x1fc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x1fd]
mov byte [esp + 0xf8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xf9]
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 2
stosb byte es:[edi], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x10029899
pop edi
xor eax, eax
pop esi
add esp, 0x61c
ret
push ebx
push 0x400
push 0x40
mov dword [esp + 0x280], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [esp + 0x278]
push eax
push esi
mov byte [ebx], 0x8e
mov dword [esp + 0x14], 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10029e49
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x284]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp eax, 0x100
ja 0x1002994f
je 0x10029944
sub eax, 0x20
je 0x10029939
sub eax, 0x20
je 0x1002992e
sub eax, 0x40
jne 0x1002998e
lea edx, [esp + 0x50]
mov edi, 0x1012019c
jmp 0x10029971
lea edx, [esp + 0x50]
mov edi, 0x10120198
jmp 0x10029971
lea edx, [esp + 0x50]
mov edi, 0x10120190
jmp 0x10029971
lea edx, [esp + 0x50]
mov edi, 0x10120188
jmp 0x10029971
cmp eax, 0x4000
je 0x10029968
cmp eax, 0x8000
jne 0x1002998e
lea edx, [esp + 0x50]
mov edi, 0x1012017c
jmp 0x10029971
lea edx, [esp + 0x50]
mov edi, 0x10120170
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x290]
lea edx, [esp + 0x30]
push ecx
push 0x1012016c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 8
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10029a73
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x4a9]
mov byte [esp + 0x4a8], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x1c]
stosw word es:[edi], ax
push edx
push 0
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x38], 0x80
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push 1
push ecx
call esi
lea edx, [esp + 0x2c]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x4ac]
push eax
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [edi]
lea eax, [esp + 0x9c]
push edx
push eax
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10029a83
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x18]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xd4]
mov dword [esp + 0xd0], 0
push 0x28
rep stosd dword es:[edi], eax
lea eax, [esp + 0xd4]
push eax
push esi
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x10029ad9
mov ecx, dword [esp + 0xdc]
lea edx, [esp + 0x1fc]
shr ecx, 0xa
push ecx
push str._7u_K
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x10029ae9
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x1fc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xf8]
push 0x104
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x10029c31
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x529]
mov byte [esp + 0x528], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3a5]
mov byte [esp + 0x3a4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x528]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.MSVCRT.dll__strnicmp]
push 0xb
lea edx, [esp + 0xfc]
push str.SystemRoot
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x10029bc6
lea edi, [esp + 0x528]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3a4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x103]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x10029c1c
push 4
lea ecx, [esp + 0xfc]
push 0x1011f710
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x10029bf6
push 4
lea ecx, [esp + 0xfc]
push str.__
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x10029c5a
lea edi, [esp + 0xfc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0xf8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3a4]
jmp 0x10029c3d
lea edx, [esp + 0xf8]
mov edi, str.___MNBVCXZ_:LKJHGFDSAPOIUYTREWQ_______
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2a0]
push ecx
call ebp
lea edx, [esp + 0xf8]
mov esi, eax
push edx
call ebp
add esi, eax
lea eax, [esp + 0x1fc]
push eax
call ebp
lea ecx, [esp + 0x90]
add esi, eax
push ecx
call ebp
lea edx, [esp + 0x30]
add esi, eax
push edx
call ebp
add esi, eax
lea eax, [esp + 0x50]
push eax
call ebp
mov ecx, dword [esp + 0x10]
lea esi, [esi + eax + 0xa]
push ebx
add esi, ecx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x10029cbb
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x284]
mov dword [eax + ebx], edx
add eax, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2a0]
push eax
call ebp
mov edx, dword [esp + 0x10]
mov ecx, eax
inc ecx
lea esi, [esp + 0x2a0]
mov eax, ecx
lea edi, [edx + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2a0]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x50]
inc ecx
add edi, ebx
mov edx, ecx
lea eax, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x30]
inc ecx
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0x90]
inc ecx
add edi, ebx
mov edx, ecx
lea eax, [esp + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edi, [ecx + eax + 1]
lea edx, [esp + 0x1fc]
mov dword [esp + 0x10], edi
push edx
call ebp
mov ecx, eax
lea esi, [esp + 0x1fc]
inc ecx
add edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1fc]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0xf8]
push eax
mov dword [esp + 0x14], edi
call ebp
mov ecx, eax
lea esi, [esp + 0xf8]
inc ecx
add edi, ebx
mov edx, ecx
lea eax, [esp + 0xf8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 1]
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x27c]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100298dc
mov esi, dword [esp + 0x20]
pop ebp
mov eax, dword [esp + 0xc]
push 0x42
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.SeDebugPrivilege
call fcn.1001b690
add esp, 8
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x61c
ret