Function at 0x10002c8f
Capabilities:
Acquire debug privileges
Enumerate processes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
push 2
mov dword [ebp - 0x14], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10002cbd
mov dword [esi + 4], 0x1b5e
jmp 0x10002e86
push 0x49
xor eax, eax
pop ecx
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x128
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10002cfc
push dword [ebp - 4]
mov dword [esi + 4], 0x1b5e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10002e86
lea eax, [ebp - 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, esi
call fcn.10003454
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10002d59
mov dword [esi + 4], 0x1b6b
jmp 0x10002e86
push 0x42
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x130]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
jne 0x10002dc3
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x30]
call fcn.1000553d
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push ebx
push eax
mov edi, 0x10c
lea eax, [ebp - 0x130]
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10002e70
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x244]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x130]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
jne 0x10002e5b
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x30]
call fcn.1000553d
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x130]
push edi
push eax
push dword [ebp - 8]
jmp 0x10002de1
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], ebx
pop edi
pop esi
pop ebx
leave
ret