Function at 0x401000
Capabilities:
Accept command line arguments
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
push 1
mov edi, 0xfffffffe
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4010a2
lea eax, [esp + 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401098
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0x10
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x80], 1
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x40135a
cmp dword [esp + 0x20], 4
jne 0x401353
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401353
mov eax, dword [ebx + 4]
push str.WinTrust.dll
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401353
push 0xa5631e9
push 0x89a19b80
mov edx, str.Wae_dx_npZsvuq
mov ecx, esi
call fcn.00401500
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401130
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401353
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x28], 0x10
push ecx
push 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x40], 0x34
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x100
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0xaac56b
mov dword [esp + 0x78], 0x11d0cd44
mov dword [esp + 0x7c], 0xc000c28c
mov dword [esp + 0x80], 0xee95c24f
call eax
mov esi, eax
mov dword [esp + 0x50], 2
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x6c]
push eax
push 0
call dword [esp + 0x20]
test esi, esi
jne 0x401353
mov esi, dword [ebx + 4]
push 0xa
push 0
push dword [ebx + 8]
mov dword [esp + 0x1c], esi
call fcn.00404da6
add esp, 0xc
mov dword [esp + 0x14], eax
push 0xa
push 0
push dword [ebx + 0xc]
call fcn.00404da6
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401242
lea edi, [eax - 2]
jmp 0x401353
cmp dword [esp + 0x14], 0
je 0x4012fe
push str.USER32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4012f7
cmp dword [esp + 0x10], 0
je 0x4012f7
push str._dummy_debug_proc_12
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4012f7
mov ecx, dword [esp + 0x10]
mov edx, str._bsfbkmwuKfmfOvI
push 0xead29360
push 0x2fcf9778
call fcn.00401500
add esp, 8
push edi
push esi
push dword [esp + 0x1c]
push 3
call eax
mov ebx, eax
test ebx, ebx
jne 0x4012c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x1c]
mov edi, eax
jmp 0x401353
mov esi, 8
nop dword [eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0
push 0x5b0
push edi
call dword [sym.imp.USER32.dll_PostThreadMessageW]
sub esi, 1
jne 0x4012d0
mov ebx, dword [esp + 0x1c]
xor edi, edi
jmp 0x401353
mov edi, 0xfffffffc
jmp 0x401353
push 0xc82efdf7
push 0x8201df87
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, str.HxjcQrmkb
mov ecx, eax
call fcn.00401500
add esp, 8
push edi
push 0
push 0x1fffff
call eax
mov esi, eax
test esi, esi
je 0x40134e
mov edx, dword [esp + 0x10]
sub esp, 0x3c
mov ecx, esi
call fcn.00401380
add esp, 0x3c
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401353
mov edi, 0xfffffffd
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x284]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004015af
mov esp, ebp
pop ebp
ret