Function at 0x1003e530
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad624
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84c], eax
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x420]
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x100e0ea0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100837f0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
add esp, 0xc
push str.Utils
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.ComputerZ.set
push eax
lea eax, [ebp - 0x830]
push eax
call esi
lea ecx, [ebp - 0x848]
call fcn.1000ce60
lea eax, [ebp - 0x840]
mov dword [ebp - 4], 0
push eax
push str.360tray.exe
mov dword [ebp - 0x840], 0
call fcn.1003f180
mov esi, eax
mov dword [ebp - 0x840], 0
lea eax, [ebp - 0x840]
push eax
push str.360sd.exe
call fcn.1003f180
add esp, 0x10
test esi, esi
jne 0x1003e778
test eax, eax
jne 0x1003e778
mov dword [ebp - 0x844], eax
lea ecx, [ebp - 0x840]
lea eax, [ebp - 0x218]
push eax
call fcn.10009b50
lea eax, [ebp - 0x844]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x830]
push 0x100b61a0
push eax
call fcn.1003d660
mov edx, dword [ebp - 0x840]
or edi, 0xffffffff
add esp, 0x14
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e6db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.rundll.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp - 0x844], 0
jne 0x1003e71f
push 1
push dword [ebp - 0x848]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1003e71f
lea ecx, [ebp - 0x848]
call fcn.1000a6b0
jmp 0x1003eb6e
mov esi, dword [ebp - 0x848]
lea ecx, [ebp - 0x218]
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop dword [eax]
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1003e9d0
movzx eax, word [ecx + esi]
test ax, ax
je 0x1003e9d0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1003e740
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x1003eb6e
lea eax, [ebp - 0x854]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
je 0x1003e7dc
lea eax, [ebp - 0x85c]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x831], 1
test al, al
jne 0x1003e7e3
mov byte [ebp - 0x831], 0
mov ecx, dword [ebp - 0x838]
or edi, 0xffffffff
test cl, 2
je 0x1003e829
mov esi, dword [ebp - 0x858]
and ecx, 0xfffffffd
mov dword [ebp - 0x838], ecx
test esi, esi
je 0x1003e829
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003e829
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003e823
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x838]
mov esi, dword [ebp - 0x850]
and ecx, 0xfffffffe
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], ecx
test esi, esi
je 0x1003e862
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003e862
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003e862
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x831], 0
je 0x1003e8e2
lea eax, [ebp - 0x85c]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x950]
mov byte [ebp - 4], 3
call fcn.10015e70
mov esi, eax
push str.has_install_safe.
push esi
mov byte [ebp - 4], 4
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x950]
call fcn.10012280
mov esi, dword [ebp - 0x858]
or edi, 0xffffffff
mov byte [ebp - 4], 0
test esi, esi
je 0x1003e8e2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003e8e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003e8e2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push str.Couponbox.exe
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x850]
call fcn.10009b50
push eax
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 5
call fcn.10009ac0
mov edx, dword [ebp - 0x850]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003e954
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003e972
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.rundll.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
push dword [ebp - 0x848]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1003e9e2
mov esi, dword [ebp - 0x848]
lea ecx, [ebp - 0x218]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1003e9d0
movzx eax, word [ecx + esi]
test ax, ax
je 0x1003e9d0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1003e9b2
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x1003eb6e
lea eax, [ebp - 0x854]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [ebp - 0x838]
or ecx, 4
mov byte [ebp - 4], 6
cmp dword [eax], 0
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
je 0x1003ea4e
lea eax, [ebp - 0x85c]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [ebp - 0x838]
or ecx, 8
mov dword [ebp - 4], 7
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x831], 1
test al, al
jne 0x1003ea55
mov byte [ebp - 0x831], 0
mov ecx, dword [ebp - 0x838]
test cl, 8
je 0x1003ea98
mov esi, dword [ebp - 0x858]
and ecx, 0xfffffff7
mov dword [ebp - 0x838], ecx
test esi, esi
je 0x1003ea98
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003ea98
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003ea92
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x838]
mov esi, dword [ebp - 0x850]
and ecx, 0xfffffffb
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], ecx
test esi, esi
je 0x1003ead1
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003ead1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003ead1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x831], 0
je 0x1003eb6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x85c]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x950]
mov byte [ebp - 4], 8
call fcn.10015e70
mov esi, eax
push str.copyfile_false__code:
push esi
mov byte [ebp - 4], 9
call fcn.10012080
add esp, 8
mov ecx, esi
push dword [ebp - 0x850]
call fcn.10011d70
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x950]
call fcn.10012280
mov esi, dword [ebp - 0x858]
or edi, 0xffffffff
mov byte [ebp - 4], 0
test esi, esi
je 0x1003eb6e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003eb6e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003eb6e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10036800
add esp, 8
test eax, eax
jne 0x1003eb8a
xor esi, esi
jmp 0x1003f12a
lea ecx, [ebp - 0x840]
call fcn.1000ce60
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x84c]
mov byte [ebp - 4], 0xb
push dword [eax]
lea eax, [ebp - 0x218]
push 0x100b61a8
push str.PluginCouponHelper.tpi
push eax
lea eax, [ebp - 0x840]
push str.__s____dll__s____entry_s___name_s___length_d
push eax
call fcn.10021c80
lea eax, [ebp - 0x854]
push eax
call fcn.1003b6a0
add esp, 0x20
mov ecx, dword [ebp - 0x838]
or ecx, 0x10
mov byte [ebp - 4], 0xc
cmp dword [eax], 0
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
je 0x1003ec32
lea eax, [ebp - 0x85c]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [ebp - 0x838]
or ecx, 0x20
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x831], 1
test al, al
jne 0x1003ec39
mov byte [ebp - 0x831], 0
mov ecx, dword [ebp - 0x838]
test cl, 0x20
je 0x1003ec7c
mov esi, dword [ebp - 0x858]
and ecx, 0xffffffdf
mov dword [ebp - 0x838], ecx
test esi, esi
je 0x1003ec7c
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003ec7c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003ec76
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x838]
mov esi, dword [ebp - 0x850]
and ecx, 0xffffffef
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x838], ecx
test esi, esi
je 0x1003ecb5
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1003ecb5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1003ecb5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x831], 0
mov esi, dword [ebp - 0x840]
je 0x1003ed62
lea eax, [ebp - 0x85c]
push eax
call fcn.1003b6a0
add esp, 4
mov eax, dword [eax]
lea ecx, [ebp - 0x950]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x850], eax
call fcn.10015e70
mov edi, eax
push str.cmdline:
push edi
mov byte [ebp - 4], 0xf
call fcn.10012080
test esi, esi
mov edx, 0x100b38d8
cmovne edx, esi
push edx
push edi
call fcn.10010030
mov ecx, dword [ebp - 0x850]
add esp, 0x10
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x950]
call fcn.10012280
mov ecx, dword [ebp - 0x858]
or edi, 0xffffffff
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x850], ecx
test ecx, ecx
je 0x1003ed62
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1003ed62
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x850]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1003ed62
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 4], 1
jle 0x1003ed7c
push dword [esi - 0xc]
lea ecx, [ebp - 0x840]
call fcn.1000a580
mov esi, dword [ebp - 0x840]
push 0x44
lea eax, [ebp - 0x8b8]
mov dword [ebp - 0x844], 0
push 0
push eax
call fcn.100837f0
add esp, 0xc
mov dword [ebp - 0x8b8], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x88c], 0x81
mov eax, 1
movups xmmword [ebp - 0x86c], xmm0
mov word [ebp - 0x888], ax
call fcn.1003cf50
mov dword [ebp - 0x83c], eax
test eax, eax
je 0x1003ee4b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1003edf4
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1003ee3f
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003ee3f
lea ecx, [ebp - 0x86c]
push ecx
lea ecx, [ebp - 0x8b8]
push ecx
push 0
push 0
push 0
push esi
push 0
push 0
push dword [ebp - 0x83c]
call eax
test eax, eax
je 0x1003ee3f
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x844], 1
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi - 8]
push esi
call fcn.1008ab87
add esp, 8
test eax, eax
js 0x1003f169
cmp eax, dword [esi - 8]
jg 0x1003f169
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x844], ecx
jne 0x1003f109
lea ecx, [ebp - 0x850]
call fcn.1000ce60
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x84c]
mov byte [ebp - 4], 0x10
push dword [eax]
lea eax, [ebp - 0x850]
push 0x100b61a8
push str.PluginCouponHelper.tpi
push str.__dll__s____entry_s___name_s___length_d
push eax
call fcn.10021c80
push 0x3c
lea eax, [ebp - 0x8b0]
push 0
push eax
call fcn.100837f0
mov edi, dword [ebp - 0x850]
lea eax, [ebp - 0x218]
add esp, 0x24
mov dword [ebp - 0x8a0], eax
lea eax, [ebp - 0x8b0]
mov dword [ebp - 0x8b0], 0x3c
mov dword [ebp - 0x8a8], 0
mov dword [ebp - 0x8ac], pe_nt_image_headers32
push eax
mov dword [ebp - 0x89c], edi
mov dword [ebp - 0x894], 5
mov dword [ebp - 0x8a4], 0x100b58cc
call fcn.10036e50
mov dword [ebp - 0x844], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x864]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [ebp - 0x838]
or ecx, 0x40
mov byte [ebp - 4], 0x11
cmp dword [eax], 0
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
je 0x1003ef9c
lea eax, [ebp - 0x874]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [ebp - 0x838]
or ecx, 0x80
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x83c], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x831], 1
test al, al
jne 0x1003efa3
mov byte [ebp - 0x831], 0
mov edx, dword [ebp - 0x870]
mov dword [ebp - 0x84c], edx
test edx, edx
je 0x1003efe2
mov ecx, dword [ebp - 0x838]
test cl, cl
jns 0x1003efe2
or eax, 0xffffffff
lock xadd dword [edx + 4], eax
jne 0x1003efe2
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x84c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1003efe2
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x84c], ecx
test ecx, ecx
je 0x1003f01c
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1003f01c
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x84c]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1003f01c
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x831], 0
je 0x1003f0eb
lea eax, [ebp - 0x864]
push eax
call fcn.1003b6a0
add esp, 4
mov eax, dword [eax]
lea ecx, [ebp - 0x950]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x84c], eax
call fcn.10015e70
mov dword [ebp - 0x83c], eax
push str.ShellExecuteEx_api__errcode
push eax
mov byte [ebp - 4], 0x14
call fcn.10012080
mov ecx, dword [ebp - 0x83c]
add esp, 8
push dword [ebp - 0x858]
call fcn.10011d70
push str.__bRet
push dword [ebp - 0x83c]
call fcn.10012080
mov ecx, dword [ebp - 0x83c]
add esp, 8
push dword [ebp - 0x844]
call fcn.10015fc0
mov ecx, dword [ebp - 0x84c]
push dword [ebp - 0x83c]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x950]
call fcn.10012280
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x858], ecx
test ecx, ecx
je 0x1003f0eb
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1003f0eb
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x858]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x1003f0eb
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0xb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f109
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003f124
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x844]
mov eax, dword [ebp - 0x848]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1003f14c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000a7c0
int3