Function at 0x407bc0
Capabilities:
Acquire debug privileges
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443dcc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
mov eax, dword [0x4612a8]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x48c], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x78], si
mov ecx, 0x81
lea edi, [esp + 0x7a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
add ebx, 0xbc
stosw word es:[edi], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str..WHD
mov dword [esp + 0x4a0], esi
call edi
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
sub eax, esi
shl eax, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], eax
mov word [esp + eax + 0x78], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esp + 0x2c]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov eax, dword [ebx]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [eax + 0x54]
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x407d92
mov esi, dword [esp + 0x28]
cmp word [esi + 0x78], bx
je 0x407cce
lea eax, [esp + 0x78]
push eax
push str._s__VERYSILENT
push 0x104
lea ecx, [esp + 0x28c]
push ecx
jmp 0x407ce5
lea edx, [esp + 0x78]
push edx
push 0x44c420
push 0x104
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x40]
add esp, 0x10
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407d57
lea edx, [esp + 0x1c]
push edx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x407d4c
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0xa7c]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea edx, [esp + 0x2a0]
push edx
push ebx
mov dword [esp + 0x58], 0x44
mov word [esp + 0x88], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407da0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor al, al
jmp 0x407df0
cmp dword [esi + 0x20], ebx
jne 0x407dd2
mov ecx, dword [esi + 0xa78]
mov eax, dword [esi]
push ebx
push 0x64
push ecx
lea edx, [esp + 0x24]
push edx
push 0x40000000
push ebx
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [eax + 0x5c]
mov eax, dword [esi + 0x20]
push ebx
push 0x64
push 0xc8
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, 1
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x48c]
call fcn.004430ed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret