Function at 0x454f20
Capabilities:
Copy file
Create directory
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cce0d
mov eax, dword fs:[0]
push eax
sub esp, 0x8e4
mov eax, dword [0x4f80c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x455a0a
xorps xmm0, xmm0
mov dword [ebp - 0x62c], eax
movups xmmword [ebp - 0x63c], xmm0
push 8
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
call fcn.004989e3
lea ecx, [ebp - 0x63c]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x63c], eax
mov dword [eax], ecx
push esi
lea ecx, [ebp - 0x8ec]
mov dword [ebp - 4], 0
call fcn.00426000
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 1
call fcn.00458920
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8d8]
cmp ecx, 7
jbe 0x455017
mov edx, dword [ebp - 0x8ec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45500d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455a2c
push ecx
push edx
call fcn.00498a13
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x640], 0
movups xmmword [ebp - 0x650], xmm0
push 8
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x640], 0
call fcn.004989e3
lea ecx, [ebp - 0x650]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x650], eax
mov dword [eax], ecx
push edi
lea ecx, [ebp - 0x8ec]
mov byte [ebp - 4], 2
call fcn.00426000
push eax
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 3
call fcn.00458920
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8d8]
cmp ecx, 7
jbe 0x4550e0
mov edx, dword [ebp - 0x8ec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4550d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455a31
push ecx
push edx
call fcn.00498a13
add esp, 8
cmp dword [ebp - 0x62c], 0
je 0x455850
nop dword [eax]
mov ecx, dword [ebp - 0x634]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x630]
mov esi, dword [ebp - 0x638]
lea eax, [ecx - 1]
and eax, edx
mov esi, dword [esi + eax*4]
mov edi, esi
movups xmmword [ebp - 0x680], xmm0
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], 0
cmp dword [esi + 0x14], 7
jbe 0x455132
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, 0x7ffffffe
ja 0x455a3b
cmp esi, 7
ja 0x455162
mov dword [ebp - 0x670], esi
mov dword [ebp - 0x66c], 7
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x680], xmm0
jmp 0x4551cf
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x455175
mov eax, SysReAllocString
jmp 0x455180
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x8d4], eax
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.00426440
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x66c], ecx
lea ecx, [esi*2 + 2]
push ecx
push edi
push eax
mov dword [ebp - 0x680], eax
mov dword [ebp - 0x670], esi
call fcn.0049a3e0
mov edx, dword [ebp - 0x630]
add esp, 0x14
mov ecx, dword [ebp - 0x634]
dec ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x638]
and ecx, edx
mov ecx, dword [eax + ecx*4]
call fcn.00426120
sub dword [ebp - 0x62c], 1
jne 0x4551f9
mov dword [ebp - 0x630], 0
jmp 0x4551ff
inc dword [ebp - 0x630]
mov ecx, dword [ebp - 0x648]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x644]
mov esi, dword [ebp - 0x64c]
lea eax, [ecx - 1]
and eax, edx
mov esi, dword [esi + eax*4]
mov edi, esi
movups xmmword [ebp - 0x668], xmm0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
cmp dword [esi + 0x14], 7
jbe 0x455241
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, 0x7ffffffe
ja 0x455a3b
cmp esi, 7
ja 0x455271
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x654], 7
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x668], xmm0
jmp 0x4552de
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x455284
mov eax, SysReAllocString
jmp 0x45528f
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x8d4], eax
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x668]
push eax
call fcn.00426440
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x654], ecx
lea ecx, [esi*2 + 2]
push ecx
push edi
push eax
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x658], esi
call fcn.0049a3e0
mov edx, dword [ebp - 0x644]
add esp, 0x14
mov ecx, dword [ebp - 0x648]
dec ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x64c]
and ecx, edx
mov ecx, dword [eax + ecx*4]
call fcn.00426120
sub dword [ebp - 0x640], 1
jne 0x455308
mov dword [ebp - 0x644], 0
jmp 0x45530e
inc dword [ebp - 0x644]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0049a960
cmp dword [ebp - 0x66c], 7
lea eax, [ebp - 0x680]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmova eax, dword [ebp - 0x680]
push eax
lea eax, [ebp - 0x628]
push 0x4e10a8
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x628]
push 0x4e1f84
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x8d0]
push 0
push eax
call fcn.0049a960
add esp, 0xc
lea eax, [ebp - 0x8d0]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x8f0], esi
cmp esi, 0xffffffff
je 0x4557a2
nop word [eax + eax]
cmp word [ebp - 0x8a4], 0x2e
je 0x455785
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049a960
cmp dword [ebp - 0x66c], 7
lea ecx, [ebp - 0x8a4]
push ecx
lea eax, [ebp - 0x680]
cmova eax, dword [ebp - 0x680]
push eax
lea eax, [ebp - 0x420]
push 0x4e1f8c
push eax
call edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049a960
cmp dword [ebp - 0x654], 7
lea ecx, [ebp - 0x8a4]
push ecx
lea eax, [ebp - 0x668]
cmova eax, dword [ebp - 0x668]
push eax
lea eax, [ebp - 0x218]
push 0x4e1f8c
push eax
call edi
add esp, 0x38
test byte [ebp - 0x8d0], 0x10
je 0x45576f
xorps xmm0, xmm0
mov dword [ebp - 0x8dc], 0
lea esi, [ebp - 0x420]
mov dword [ebp - 0x8d8], 0
movups xmmword [ebp - 0x8ec], xmm0
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x455460
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x455a3b
cmp esi, 7
ja 0x4554b5
mov dword [ebp - 0x8dc], esi
lea eax, [ebp - 0x420]
add esi, esi
mov dword [ebp - 0x8d8], 7
push esi
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.0049a3e0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x8ec], ax
jmp 0x45551f
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4554c8
mov eax, SysReAllocString
jmp 0x4554d3
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x8d4], eax
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.00426440
mov ecx, dword [ebp - 0x8d4]
mov edi, eax
mov dword [ebp - 0x8dc], esi
lea eax, [ebp - 0x420]
add esi, esi
mov dword [ebp - 0x8ec], edi
push esi
push eax
push edi
mov dword [ebp - 0x8d8], ecx
call fcn.0049a3e0
add esp, 0x14
xor eax, eax
mov word [edi + esi], ax
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x62c]
mov edx, dword [ebp - 0x634]
lea eax, [esi + 1]
cmp edx, eax
ja 0x45554e
push ecx
lea ecx, [ebp - 0x63c]
call fcn.00458df0
mov esi, dword [ebp - 0x62c]
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x630]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x630], ecx
lea edi, [ecx + esi]
mov ecx, dword [ebp - 0x638]
and eax, edi
lea esi, [eax*4]
cmp dword [esi + ecx], 0
jne 0x455599
push 0x18
call fcn.004989e3
mov ecx, dword [ebp - 0x638]
add esp, 4
mov dword [esi + ecx], eax
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x638]
movups xmm0, xmmword [ebp - 0x8ec]
lea eax, [edx - 1]
and eax, edi
lea esi, [ebp - 0x218]
mov eax, dword [ecx + eax*4]
lea ecx, [esi + 2]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8dc]
movq qword [eax + 0x10], xmm0
xorps xmm0, xmm0
inc dword [ebp - 0x62c]
mov byte [ebp - 4], 5
movups xmmword [ebp - 0x8ec], xmm0
mov dword [ebp - 0x8dc], 0
mov dword [ebp - 0x8d8], 0
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4555f0
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x455a3b
cmp esi, 7
ja 0x455645
mov dword [ebp - 0x8dc], esi
lea eax, [ebp - 0x218]
add esi, esi
mov dword [ebp - 0x8d8], 7
push esi
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.0049a3e0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x8ec], ax
jmp 0x4556af
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x455658
mov eax, SysReAllocString
jmp 0x455663
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x8d4], eax
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x8ec]
push eax
call fcn.00426440
mov ecx, dword [ebp - 0x8d4]
mov edi, eax
mov dword [ebp - 0x8dc], esi
lea eax, [ebp - 0x218]
add esi, esi
mov dword [ebp - 0x8ec], edi
push esi
push eax
push edi
mov dword [ebp - 0x8d8], ecx
call fcn.0049a3e0
add esp, 0x14
xor eax, eax
mov word [esi + edi], ax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x640]
mov edx, dword [ebp - 0x648]
lea eax, [esi + 1]
cmp edx, eax
ja 0x4556de
push ecx
lea ecx, [ebp - 0x650]
call fcn.00458df0
mov esi, dword [ebp - 0x640]
mov edx, dword [ebp - 0x648]
mov ecx, dword [ebp - 0x644]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x644], ecx
lea edi, [ecx + esi]
mov ecx, dword [ebp - 0x64c]
and eax, edi
lea esi, [eax*4]
cmp dword [esi + ecx], 0
jne 0x455729
push 0x18
call fcn.004989e3
mov ecx, dword [ebp - 0x64c]
add esp, 4
mov dword [ecx + esi], eax
mov edx, dword [ebp - 0x648]
mov ecx, dword [ebp - 0x64c]
movups xmm0, xmmword [ebp - 0x8ec]
lea eax, [edx - 1]
and eax, edi
push 0
mov eax, dword [ecx + eax*4]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8dc]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x218]
inc dword [ebp - 0x640]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp - 0x8f0]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x455785
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x8d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4553a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x654]
cmp ecx, 7
jbe 0x4557e6
mov edx, dword [ebp - 0x668]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4557dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455a2c
push ecx
push edx
call fcn.00498a13
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x66c]
mov word [ebp - 0x668], ax
mov dword [ebp - 0x654], 7
mov dword [ebp - 0x658], eax
cmp ecx, 7
jbe 0x455843
mov edx, dword [ebp - 0x680]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x455839
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455a2c
push ecx
push edx
call fcn.00498a13
add esp, 8
cmp dword [ebp - 0x62c], 0
jne 0x4550f0
mov ecx, dword [ebp - 0x640]
test ecx, ecx
je 0x45589b
nop word [eax + eax]
mov eax, dword [ebp - 0x644]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x648]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x64c]
mov ecx, dword [eax + ecx*4]
call fcn.00426120
mov ecx, dword [ebp - 0x640]
sub ecx, 1
mov dword [ebp - 0x640], ecx
jne 0x455860
mov dword [ebp - 0x644], 0
mov ecx, dword [ebp - 0x64c]
test ecx, ecx
je 0x455913
mov esi, dword [ebp - 0x648]
test esi, esi
jle 0x4558d4
nop
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x4558ca
push 0x18
push eax
call fcn.00498a13
mov ecx, dword [ebp - 0x64c]
add esp, 8
test esi, esi
jg 0x4558b0
mov esi, dword [ebp - 0x648]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x4558f5
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455a36
push esi
push ecx
call fcn.00498a13
add esp, 8
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x648], 0
mov eax, dword [ebp - 0x650]
push 8
push eax
mov dword [ebp - 0x650], 0
call fcn.00498a13
mov ecx, dword [ebp - 0x62c]
add esp, 8
test ecx, ecx
je 0x45597b
nop dword [eax + eax]
mov eax, dword [ebp - 0x630]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x634]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x638]
mov ecx, dword [eax + ecx*4]
call fcn.00426120
mov ecx, dword [ebp - 0x62c]
sub ecx, 1
mov dword [ebp - 0x62c], ecx
jne 0x455940
mov dword [ebp - 0x630], 0
mov ecx, dword [ebp - 0x638]
test ecx, ecx
je 0x4559ef
mov esi, dword [ebp - 0x634]
test esi, esi
jle 0x4559b4
nop
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x4559aa
push 0x18
push eax
call fcn.00498a13
mov ecx, dword [ebp - 0x638]
add esp, 8
test esi, esi
jg 0x455990
mov esi, dword [ebp - 0x634]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x4559d1
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455a36
push esi
push ecx
call fcn.00498a13
add esp, 8
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov eax, dword [ebp - 0x63c]
push 8
push eax
mov dword [ebp - 0x63c], 0
call fcn.00498a13
add esp, 8
mov eax, 1
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.00498d60
mov esp, ebp
pop ebp
ret 8
call fcn.0049df3f
call fcn.0049df3f
call fcn.0049df3f
call fcn.00425700
int3