Function at 0x408110
Capabilities:
Copy file
Delete file
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457b42
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x108c
call fcn.004536d0
mov eax, dword [0x46af24]
xor eax, esp
mov dword [esp + 0x1088], eax
push ebx
push esi
push edi
mov eax, dword [0x46af24]
xor eax, esp
push eax
lea eax, [esp + 0x10a0]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
je 0x40816a
mov eax, dword [edi + 0x68]
push ebx
push ebx
push eax
call dword [sym.imp.mfc100u.dll_AfxMessageBox]
push 0x10000
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x40823e
push 0x10000
push ebx
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [edi + 0x20], ebx
je 0x4081e6
lea ecx, [esp + 0x8c]
call fcn.0044de84
push 0x4607f8
lea ecx, [esp + 0x90]
mov dword [esp + 0x10ac], ebx
call fcn.0044e01e
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x10a8], 0xffffffff
call fcn.0044e096
xor eax, eax
jmp 0x408962
cmp dword [edi + 0x24], ebx
je 0x4082c7
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc88]
mov dword [esp + 0x10ac], 1
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x10000
call dword [sym.imp.mfc100u.dll_new__]
add esp, 4
mov dword [edi + 0x64], eax
cmp eax, ebx
jne 0x408246
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
or eax, 0xffffffff
jmp 0x408962
push 0x10000
push ebx
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x68]
push str._GETENV
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 0x14
call fcn.00407d40
push eax
lea ecx, [esp + 0x18]
call dword [0x4598bc]
mov eax, dword [edi + 0x64]
push ebx
push 0x8000
push eax
push esi
call fcn.0044f914
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.0044ec1f
mov byte [esp + 0x10a8], 2
mov ecx, dword [edi + 0x64]
push ecx
lea ecx, [esp + 0x30]
call fcn.0044f00b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10a8], 1
call fcn.0044ec2f
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
jmp 0x408962
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10a8], 3
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x10a8], 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
cmp dword [edi + 0x50], ebx
je 0x408370
push 0x10000
mov dword [edi + 0x28], 1
call dword [sym.imp.mfc100u.dll_new__]
add esp, 4
push 0x8000
push eax
push ebx
mov dword [edi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [edi + 0x64]
push edx
lea eax, [esp + 0x1c]
push str.__s_
push eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov ecx, dword [edi + 0x68]
mov edx, dword [edi + 0x64]
add esp, 0xc
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x408340
mov ecx, dword [edi + 0x64]
push str._STARTSELF
push ecx
call fcn.0044d23c
mov edx, dword [edi + 0x64]
add esp, 8
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp dword [edi + 0x28], ebx
je 0x408605
mov eax, dword [edi + 0x68]
mov ebx, dword [sym.imp.MSVCR100.dll_wcsstr]
push str._RUNAPP
push eax
call ebx
add esp, 8
test eax, eax
je 0x4083c7
mov esi, dword [esp + 0x1c]
call fcn.00407d40
push eax
lea ecx, [esp + 0x14]
call dword [0x4598bc]
push str._null_
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x4083c7
push 0x45f664
lea ecx, [esp + 0x14]
call dword [0x4598bc]
mov eax, dword [edi + 0x68]
push str._RUNARG
push eax
call ebx
add esp, 8
test eax, eax
je 0x4083ed
mov esi, dword [esp + 0x1c]
call fcn.00407d40
push eax
lea ecx, [esp + 0x1c]
call dword [0x4598bc]
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x4083fc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], esi
je 0x408409
mov dword [esp + 0x14], eax
cmp dword [edi + 0x50], esi
jne 0x408427
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push esi
push esi
push eax
push ecx
call fcn.0044f572
add esp, 0x10
jmp 0x4085dc
push 0x7e
lea eax, [esp + 0xc0a]
xor edx, edx
push esi
push eax
mov word [esp + 0xc10], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.mfc100u.dll_new]
push 0x208
mov edi, eax
call ebx
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x10a8], 5
cmp eax, esi
je 0x408479
mov ecx, eax
call fcn.0044de84
mov esi, eax
mov byte [esp + 0x10a8], 4
test esi, esi
je 0x4084de
push edi
mov edi, dword [sym.imp.MSVCR100.dll__snwprintf]
push str.AVKernelObject_08x
lea ecx, [esp + 0xc0c]
push 0x3f
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0xc04]
push edx
mov ecx, esi
call fcn.0044de8a
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
push edx
push eax
call fcn.0044f32f
add esp, 0x1c
test eax, eax
jne 0x4084f9
call fcn.00405e70
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
jmp 0x408962
mov ecx, dword [esp + 0x2c]
push 0x208
mov dword [esp + 0x2c], ecx
call ebx
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x10a8], 6
test eax, eax
je 0x408526
mov ecx, eax
call fcn.0044de84
mov ebx, eax
jmp 0x408528
xor ebx, ebx
mov byte [esp + 0x10a8], 4
mov edx, dword [esp + 0x34]
push edx
push str.AVKernelObject_08x
lea eax, [esp + 0xc0c]
push 0x3f
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
add esp, 0x10
push 0x2710
push 0
lea ecx, [esp + 0x2c]
push ecx
push 2
call edi
test eax, eax
je 0x4085aa
cmp eax, 1
je 0x4085c1
cmp eax, 0x102
jne 0x408596
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4085c1
lea ecx, [esp + 0xc04]
push ecx
mov ecx, ebx
call fcn.0044dfc9
test eax, eax
je 0x4085c1
push 0x2710
push 0
lea edx, [esp + 0x2c]
push edx
push 2
call edi
test eax, eax
jne 0x408563
lea eax, [esp + 0xc04]
push eax
mov ecx, ebx
call fcn.0044e01e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405e70
test ebx, ebx
je 0x4085dc
mov esi, ebx
call fcn.00405e70
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
jmp 0x408962
cmp dword [edi + 0x2c], ebx
je 0x4086b0
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x10a8], 7
mov eax, dword [edi + 0x68]
mov ebx, dword [sym.imp.MSVCR100.dll_wcsstr]
push str._OPEN
push eax
call ebx
mov esi, dword [esp + 0x24]
add esp, 8
call fcn.00407d40
push eax
lea ecx, [esp + 0x18]
call dword [0x4598bc]
mov edi, dword [edi + 0x68]
push str._RUNARG
push edi
call ebx
add esp, 8
test eax, eax
je 0x40867e
call fcn.00407d40
push eax
lea ecx, [esp + 0x1c]
call dword [0x4598bc]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0044f54c
add esp, 8
jmp 0x40868b
mov edx, dword [esp + 0x14]
push edx
call fcn.0044f528
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
jmp 0x408962
cmp dword [edi + 0x30], ebx
je 0x4087a9
lea ecx, [esp + 0x8c]
call fcn.0044de84
mov byte [esp + 0x10a8], 8
mov eax, dword [edi + 0x68]
mov ebx, dword [sym.imp.MSVCR100.dll_wcsstr]
push str._SHOWHELP
push eax
call ebx
mov esi, dword [esp + 0x24]
add esp, 8
call fcn.00407d40
push eax
lea ecx, [esp + 0x14]
call dword [0x4598bc]
mov edi, dword [edi + 0x68]
push str._HELPCMD
push edi
call ebx
add eax, 0x12
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
push 0
push eax
mov eax, dword [esp + 0x24]
push 0xf
push eax
call fcn.0044f131
add esp, 0x1c
push 0x4607f8
lea ecx, [esp + 0x90]
mov esi, eax
call fcn.0044df18
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push esi
call edi
test eax, eax
je 0x408760
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x8c]
call fcn.0044e00e
test eax, eax
jne 0x408760
push 0x3e8
call ebx
push esi
call edi
test eax, eax
jne 0x408742
lea ecx, [esp + 0x8c]
call fcn.0044dfb4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10a8], 4
call fcn.0044e096
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
jmp 0x408962
cmp dword [edi + 0x38], ebx
jne 0x4087b7
cmp dword [edi + 0x54], ebx
je 0x40893f
cmp dword [edi + 0x3c], ebx
jne 0x40893f
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov bl, 0xa
lea ecx, [esp + 0x294]
mov byte [esp + 0x10a8], bl
call fcn.004491f7
push 0x104
lea edx, [esp + 0xc88]
push edx
push 0
mov byte [esp + 0x10b4], 0xb
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xe8c]
push 0x104
push eax
call fcn.004418ff
add esp, 8
lea ecx, [esp + 0x294]
call fcn.0044982f
push eax
lea ecx, [esp + 0x14]
call dword [0x4598bc]
lea ecx, [esp + 0xe8c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push str..exe
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call dword [0x459688]
mov eax, dword [edi + 0x68]
push eax
lea ecx, [esp + 0x1c]
call dword [0x4598bc]
push str.__RENAMED
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0xc8c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4088cb
lea ecx, [esp + 0x294]
mov byte [esp + 0x10a8], bl
call fcn.00449491
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
jmp 0x408949
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
push 0x45f670
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call dword [0x459688]
mov edx, dword [esp + 0x1c]
push 1
push 0
push edx
push 0
call fcn.0044f572
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [esp + 0x24]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x294]
mov byte [esp + 0x10a8], bl
call fcn.00449491
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
jmp 0x40868b
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
mov ecx, dword [esp + 0x10a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1088]
xor ecx, esp
call fcn.004534b8
mov esp, ebp
pop ebp
ret