Function at 0x403290
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1988c
call fcn.0040fae0
mov eax, dword [str._q_]
mov edx, dword [ebp + 8]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x19894], eax
xor eax, eax
test edx, edx
mov ecx, 0x61a7
lea edi, [esp + 0xfe4]
mov dword [esp + 0xfe0], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0xffffffff
rep stosd dword es:[edi], eax
je 0x40354d
test esi, esi
je 0x40354d
push eax
call fcn.00408a90
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x403320
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19888]
xor ecx, ebp
call fcn.0040f175
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov edi, eax
call esi
push str.GetModuleFileNameExA
push ebx
mov dword [esp + 0x18], eax
call esi
test edi, edi
mov dword [esp + 0x24], eax
je 0x40352d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40352d
lea eax, [esp + 0xc]
push eax
push 0x186a0
lea ecx, [esp + 0xfe8]
push ecx
mov dword [esp + 0x20], 0
call edi
test eax, eax
je 0x40352d
mov eax, dword [esp + 0xc]
shr eax, 2
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], eax
jbe 0x403529
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x4033a0
mov edx, dword [esp + ebx*4 + 0xfe0]
push edx
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x403426
lea eax, [esp + 0xc]
push eax
push 0xfa0
lea ecx, [esp + 0x48]
push ecx
push esi
call dword [esp + 0x20]
test eax, eax
je 0x403515
mov eax, dword [esp + 0x40]
push 0x104
lea edx, [esp + 0x19684]
push edx
push eax
push esi
call dword [esp + 0x34]
test eax, eax
je 0x403515
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x19688]
push edx
call fcn.00401990
add esp, 0xc
test eax, eax
je 0x403515
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + ebx*4 + 0xfe0]
push eax
push edx
jmp 0x403510
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40351c
mov eax, dword [0x4224e0]
test eax, eax
jne 0x40351c
lea eax, [esp + 0x2c]
push eax
mov esi, 1
push 0x28
mov dword [0x4224e0], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40349b
lea ecx, [esp + 0x34]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0
push eax
mov dword [esp + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + ebx*4 + 0xfe0]
push ecx
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x40351c
lea edx, [esp + 0xc]
push edx
push 0xfa0
lea eax, [esp + 0x48]
push eax
push esi
call dword [esp + 0x20]
test eax, eax
je 0x403515
mov edx, dword [esp + 0x40]
push 0x104
lea ecx, [esp + 0x1978c]
push ecx
push edx
push esi
call dword [esp + 0x34]
test eax, eax
je 0x403515
mov eax, dword [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x19790]
push ecx
call fcn.00401990
add esp, 0xc
test eax, eax
je 0x403515
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + ebx*4 + 0xfe0]
push edx
push eax
call fcn.004029a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
inc ebx
cmp ebx, eax
jb 0x4033a0
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19888]
xor ecx, ebp
call fcn.0040f175
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19894]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x57
pop ebx
call fcn.0040f175
mov esp, ebp
pop ebp
ret