Function at 0x406b80
Capabilities:
Move file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
or ebx, 0xffffffff
test eax, eax
jne 0x406bb9
lea edi, [ebx + 2]
jmp 0x4073d0
lea ecx, [esp + 0x74]
call fcn.00425b97
push 0x47a94c
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040de20
add esp, 0xc
call fcn.00425809
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40745c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
call fcn.00425809
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x407466
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
call fcn.00425809
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x407470
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
push dword [esp + 0x34]
lea esi, [eax + 0x10]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x2c], esi
call fcn.00425dde
test eax, eax
je 0x407346
lea ecx, [esp + 0x74]
call fcn.00425f84
test eax, eax
lea ecx, [esp + 0x74]
setne byte [esp + 0x1b]
call fcn.00426322
test eax, eax
jne 0x40733b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x406c8b
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406c99
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40745c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 1
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], 0x5c
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040e7f0
add esp, 0x14
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x78]
call fcn.00426036
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x1c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x406d05
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406d13
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40745c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esp + 0xc]
add eax, 0x10
mov ecx, dword [ecx]
mov dword [esp + 0x10], eax
push dword [ecx - 0xc]
mov eax, dword [esp + 0x24]
push ecx
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040e7f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [eax - 0x10]
add ecx, 0xfffffff0
add esp, 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], ecx
cmp edx, ecx
je 0x406dc7
add ecx, 0xc
mov dword [esp + 0x28], ecx
cmp dword [ecx], 0
jl 0x406db6
mov eax, dword [esp + 0x20]
mov ecx, dword [edx]
cmp ecx, dword [eax]
mov eax, dword [esp + 0x10]
jne 0x406db6
push edx
call fcn.00416ec0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
add esp, 4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x406da9
mov edx, dword [esp + 0x20]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
add eax, 0x10
mov dword [esp + 0x14], eax
jmp 0x406dc3
push dword [eax - 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.00416dd0
mov edx, dword [esp + 0xc]
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406ddd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x1c]
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406df7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x40]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406e14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x406e29
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406e37
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40745c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x68], 0x5c
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040e7f0
add esp, 0x14
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x78]
call fcn.00426036
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x406ea3
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406eb1
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40745c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov ecx, dword [ecx]
mov dword [esp + 0xc], eax
push dword [ecx - 0xc]
mov eax, dword [esp + 0x14]
push ecx
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040e7f0
mov eax, dword [esp + 0x20]
lea ecx, [edi - 0x10]
lea edx, [eax - 0x10]
add esp, 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ecx
cmp edx, ecx
je 0x406f56
cmp dword [ecx + 0xc], 0
jl 0x406f41
mov edi, dword [esp + 0x1c]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x406f41
push edx
call fcn.00416ec0
mov dword [esp + 0x20], eax
add esp, 4
mov eax, ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x406f34
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esp + 0x1c]
add edi, 0x10
mov dword [esp + 0x2c], edi
jmp 0x406f52
push dword [eax - 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00416dd0
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406f6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x28]
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406f86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406fa3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x74]
push 0x10
lea ecx, [esp + 0x78]
call dword [eax + 0x38]
test eax, eax
je 0x407008
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov ebx, esp
push eax
call fcn.00416ec0
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov ebx, esp
push eax
call fcn.00416ec0
add eax, 0x10
mov dword [ebx], eax
lea eax, [edi - 0x10]
mov ebx, esp
push eax
call fcn.00416ec0
mov ecx, dword [esp + 0x44]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00406b80
test eax, eax
je 0x40742d
or ebx, 0xffffffff
jmp 0x40733b
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x78]
call fcn.00426036
push eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esp + 0x3c]
add eax, 0x16c
push str.temp147_
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0040de20
add esp, 0xc
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0040ddb0
add esp, 0xc
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0040ddb0
add esp, 0xc
lea ecx, [esp + 0x24]
push eax
call fcn.00416f30
mov edx, dword [esp + 0x70]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40707a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x50]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407097
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x68]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4070b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x58]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4070d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x24]
push 0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x407205
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x407205
push ecx
mov ebx, esp
push 0x22
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x48]
push str.takeown__r__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, ebx
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00417500
mov edx, dword [esp + 0x94]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407162
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40717f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ebx, esp
push str.___t__e__g_everyone:f
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x58]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push ebx
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00417500
mov edx, dword [esp + 0x48]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4071d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4071f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
je 0x407446
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40733b
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40733b
push ecx
mov ebx, esp
push 0x22
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x68]
push str.takeown__r__f__
push eax
call fcn.0040deb0
add esp, 0xc
mov edx, eax
mov ecx, ebx
call fcn.0040df30
add esp, 4
lea ecx, [esp + 0x58]
call fcn.00417500
mov edx, dword [esp + 0x58]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40727c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x5c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407299
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ebx, esp
push str.___t__e__g_everyone:f
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x78]
push str.cacls__
push eax
call fcn.0040deb0
add esp, 0xc
push eax
push ebx
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.00417500
mov edx, dword [esp + 0x68]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4072ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x6c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40730a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40733b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x407446
cmp byte [esp + 0x1b], 0
jne 0x406c55
lea ecx, [esp + 0x74]
call fcn.00425d92
mov dword [esp + 0x24], 1
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407370
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40738d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4073a6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4073c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x74]
call fcn.00425d42
mov edi, dword [esp + 0x24]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4073ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407408
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x407422
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x74]
call fcn.00425d92
or ebx, 0xffffffff
mov dword [esp + 0x24], 0
jmp 0x407357
lea ecx, [esp + 0x74]
call fcn.00425d92
mov dword [esp + 0x24], 0
jmp 0x407357
push 0x80004005
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
int3