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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf0bd
mov eax, dword fs:[0]
push eax
sub esp, 0x8e0
mov eax, dword [0x5000a8]
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 0x454ae2
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.0049cf47
lea ecx, [ebp - 0x63c]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x63c], eax
mov dword [eax], ecx
mov ecx, esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x668], 0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 7
mov word [ebp - 0x668], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4541c3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x668]
call fcn.004263f0
lea eax, [ebp - 0x668]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x63c]
call fcn.00457ef0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x654]
cmp edx, 8
jb 0x454239
mov ecx, dword [ebp - 0x668]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45422f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454b04
push edx
push ecx
call fcn.0049cf77
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.0049cf47
lea ecx, [ebp - 0x650]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x650], eax
mov dword [eax], ecx
mov ecx, edi
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x668], 0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 7
mov word [ebp - 0x668], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4542d0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x668]
call fcn.004263f0
lea eax, [ebp - 0x668]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x650]
call fcn.00457ef0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x654]
cmp edx, 8
jb 0x454346
mov ecx, dword [ebp - 0x668]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45433c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454b04
push edx
push ecx
call fcn.0049cf77
add esp, 8
cmp dword [ebp - 0x62c], 0
je 0x454920
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp - 0x630]
mov esi, dword [ebp - 0x638]
lea eax, [ecx - 1]
and eax, edx
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x668], 0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x8d4], eax
jb 0x45439c
mov edi, dword [edi]
cmp eax, 8
jae 0x4543b7
movups xmm0, xmmword [edi]
mov dword [ebp - 0x654], 7
movups xmmword [ebp - 0x668], xmm0
jmp 0x454415
mov esi, eax
lea ecx, [ebp - 0x668]
or esi, 7
mov eax, SysReAllocString
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.004267d0
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x668], eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push eax
call fcn.0049e850
mov eax, dword [ebp - 0x8d4]
add esp, 0xc
mov edx, dword [ebp - 0x630]
mov ecx, dword [ebp - 0x634]
mov dword [ebp - 0x654], esi
mov esi, dword [ebp - 0x638]
mov dword [ebp - 0x658], eax
dec ecx
mov byte [ebp - 4], 4
and ecx, edx
mov ecx, dword [esi + ecx*4]
call fcn.00426390
sub dword [ebp - 0x62c], 1
jne 0x45443f
mov dword [ebp - 0x630], 0
jmp 0x454445
inc dword [ebp - 0x630]
mov ecx, dword [ebp - 0x648]
mov edx, dword [ebp - 0x644]
mov esi, dword [ebp - 0x64c]
lea eax, [ecx - 1]
and eax, edx
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x680], 0
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], 0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x8d4], eax
jb 0x45448e
mov edi, dword [edi]
cmp eax, 8
jae 0x4544a9
movups xmm0, xmmword [edi]
mov dword [ebp - 0x66c], 7
movups xmmword [ebp - 0x680], xmm0
jmp 0x454507
mov esi, eax
lea ecx, [ebp - 0x680]
or esi, 7
mov eax, SysReAllocString
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.004267d0
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x680], eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push eax
call fcn.0049e850
mov eax, dword [ebp - 0x8d4]
add esp, 0xc
mov edx, dword [ebp - 0x644]
mov ecx, dword [ebp - 0x648]
mov dword [ebp - 0x66c], esi
mov esi, dword [ebp - 0x64c]
mov dword [ebp - 0x670], eax
dec ecx
mov byte [ebp - 4], 5
and ecx, edx
mov ecx, dword [esi + ecx*4]
call fcn.00426390
sub dword [ebp - 0x640], 1
jne 0x454531
mov dword [ebp - 0x644], 0
jmp 0x454537
inc dword [ebp - 0x644]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0049edd0
cmp dword [ebp - 0x654], 8
lea eax, [ebp - 0x668]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
cmovae eax, dword [ebp - 0x668]
push eax
lea eax, [ebp - 0x628]
push 0x4e8dec
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x628]
push 0x4e9c30
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x8d0]
push 0
push eax
call fcn.0049edd0
add esp, 0xc
lea eax, [ebp - 0x8d0]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x454872
nop dword [eax]
cmp word [ebp - 0x8a4], 0x2e
je 0x454855
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049edd0
cmp dword [ebp - 0x654], 8
lea ecx, [ebp - 0x8a4]
push ecx
lea eax, [ebp - 0x668]
cmovae eax, dword [ebp - 0x668]
push eax
lea eax, [ebp - 0x420]
push 0x4e9c38
push eax
call esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049edd0
cmp dword [ebp - 0x66c], 8
lea ecx, [ebp - 0x8a4]
push ecx
lea eax, [ebp - 0x680]
cmovae eax, dword [ebp - 0x680]
push eax
lea eax, [ebp - 0x218]
push 0x4e9c38
push eax
call esi
add esp, 0x38
test byte [ebp - 0x8d0], 0x10
je 0x45483f
xor eax, eax
mov dword [ebp - 0x8ec], 0
mov word [ebp - 0x8ec], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x8dc], 0
lea edx, [eax + 2]
mov dword [ebp - 0x8d8], 7
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454690
sub eax, edx
lea ecx, [ebp - 0x8ec]
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004263f0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x634]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x4546e1
push ecx
lea ecx, [ebp - 0x63c]
call fcn.004588e0
mov edx, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x634]
mov eax, dword [ebp - 0x630]
dec ecx
and eax, ecx
mov dword [ebp - 0x630], eax
add eax, edx
and ecx, eax
mov eax, dword [ebp - 0x638]
lea esi, [ecx*4]
cmp dword [esi + eax], 0
jne 0x454720
push 0x18
call fcn.0049cf47
mov ecx, dword [ebp - 0x638]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [ebp - 0x638]
mov eax, dword [esi + eax]
lea ecx, [ebp - 0x218]
movups xmm0, xmmword [ebp - 0x8ec]
lea edx, [ecx + 2]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8dc]
movq qword [eax + 0x10], xmm0
inc dword [ebp - 0x62c]
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x8ec], 0
mov dword [ebp - 0x8dc], 0
mov dword [ebp - 0x8d8], 7
mov word [ebp - 0x8ec], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454774
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8ec]
call fcn.004263f0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x648]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x4547c5
push ecx
lea ecx, [ebp - 0x650]
call fcn.004588e0
mov edx, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x648]
mov eax, dword [ebp - 0x644]
dec ecx
and eax, ecx
mov dword [ebp - 0x644], eax
add eax, edx
and eax, ecx
lea esi, [eax*4]
mov eax, dword [ebp - 0x64c]
cmp dword [esi + eax], 0
jne 0x454804
push 0x18
call fcn.0049cf47
mov ecx, dword [ebp - 0x64c]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [ebp - 0x64c]
mov eax, dword [esi + eax]
movups xmm0, xmmword [ebp - 0x8ec]
push 0
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 [sym.imp.USER32.dll_wsprintfW]
jmp 0x454855
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 edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4545c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x66c]
cmp edx, 8
jb 0x4548b6
mov ecx, dword [ebp - 0x680]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4548ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454b04
push edx
push ecx
call fcn.0049cf77
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov edx, dword [ebp - 0x654]
mov word [ebp - 0x680], ax
mov dword [ebp - 0x66c], 7
mov dword [ebp - 0x670], eax
cmp edx, 8
jb 0x454913
mov ecx, dword [ebp - 0x668]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x454909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454b04
push edx
push ecx
call fcn.0049cf77
add esp, 8
cmp dword [ebp - 0x62c], 0
jne 0x454353
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x454971
mov ecx, 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.00426390
mov eax, dword [ebp - 0x640]
mov edx, 0
mov ecx, dword [ebp - 0x644]
sub eax, 1
mov dword [ebp - 0x640], eax
cmove ecx, edx
mov dword [ebp - 0x644], ecx
test eax, eax
jne 0x454930
mov esi, dword [ebp - 0x648]
mov ecx, dword [ebp - 0x64c]
test esi, esi
je 0x4549a5
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x45499b
push 0x18
push eax
call fcn.0049cf77
mov ecx, dword [ebp - 0x64c]
add esp, 8
test esi, esi
jne 0x454981
mov esi, dword [ebp - 0x648]
test ecx, ecx
je 0x4549d4
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x4549ca
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454b04
push esi
push ecx
call fcn.0049cf77
add esp, 8
mov eax, dword [ebp - 0x650]
push 8
push eax
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x650], 0
call fcn.0049cf77
mov eax, dword [ebp - 0x62c]
add esp, 8
test eax, eax
je 0x454a54
mov ecx, 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.00426390
mov eax, dword [ebp - 0x62c]
mov edx, 0
mov ecx, dword [ebp - 0x630]
sub eax, 1
mov dword [ebp - 0x62c], eax
cmove ecx, edx
mov dword [ebp - 0x630], ecx
test eax, eax
jne 0x454a13
mov esi, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x638]
test esi, esi
je 0x454a88
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x454a7e
push 0x18
push eax
call fcn.0049cf77
mov ecx, dword [ebp - 0x638]
add esp, 8
test esi, esi
jne 0x454a64
mov esi, dword [ebp - 0x634]
test ecx, ecx
je 0x454ab3
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x454aa9
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454b04
push esi
push ecx
call fcn.0049cf77
add esp, 8
mov eax, dword [ebp - 0x63c]
push 8
push eax
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x63c], 0
call fcn.0049cf77
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.0049d3ed
mov esp, ebp
pop ebp
ret 8
call fcn.004a1aff
int3