Function at 0x10003682
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
mov eax, 0x1000753c
call fcn.10006fb0
sub esp, 0x25c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], ecx
mov dword [esi], ebx
push 2
mov dword [edi], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x100036c0
mov dword [esi], ebx
mov dword [edi], 0x1b5e
jmp 0x10003891
push 0x49
xor eax, eax
pop ecx
lea edi, [ebp - 0x264]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0x128
push eax
push dword [ebp + 0xc]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10003703
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [esi], ebx
mov dword [eax], 0x1b5e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003891
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x30]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [ebp - 0x24]
call fcn.10006bb6
mov eax, dword [ebp - 0x10]
push ebx
push 0x1002
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 4], ebx
add eax, 0x2e4
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x1000377e
mov eax, dword [ebp + 0x10]
mov dword [esi], ebx
mov dword [eax], 0x1b6b
jmp 0x10003885
push 0x42
xor eax, eax
pop ecx
lea edi, [ebp - 0x13f]
mov byte [ebp - 0x140], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x254]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x140]
push eax
call edi
lea eax, [ebp - 0x140]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
jne 0x100037ec
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x40]
call fcn.10003613
mov esi, 0x10c
lea eax, [ebp - 0x140]
push esi
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Write
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0xc]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000387c
push esi
lea eax, [ebp - 0x140]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x254]
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x140]
push eax
call edi
lea eax, [ebp - 0x140]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
jne 0x100037f1
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x40]
call fcn.10003613
jmp 0x100037f1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc