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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x8e4
mov eax, dword [0x50b0c0]
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 0x45dcda
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.004a6623
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.0042af70
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 1
call fcn.00460f70
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8d8]
cmp ecx, 7
jbe 0x45d2e7
mov edx, dword [ebp - 0x8ec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45d2dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dcfc
push ecx
push edx
call fcn.004a6653
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.004a6623
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.0042af70
push eax
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 3
call fcn.00460f70
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8d8]
cmp ecx, 7
jbe 0x45d3b0
mov edx, dword [ebp - 0x8ec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45d3a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd01
push ecx
push edx
call fcn.004a6653
add esp, 8
cmp dword [ebp - 0x62c], 0
je 0x45db20
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 0x45d402
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, 0x7ffffffe
ja 0x45dd0b
cmp esi, 7
ja 0x45d432
mov dword [ebp - 0x670], esi
mov dword [ebp - 0x66c], 7
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x680], xmm0
jmp 0x45d49f
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x45d445
mov eax, SysReAllocString
jmp 0x45d450
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.0042b3b0
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.004a81b0
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.0042b090
sub dword [ebp - 0x62c], 1
jne 0x45d4c9
mov dword [ebp - 0x630], 0
jmp 0x45d4cf
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 0x45d511
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, 0x7ffffffe
ja 0x45dd0b
cmp esi, 7
ja 0x45d541
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x654], 7
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x668], xmm0
jmp 0x45d5ae
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x45d554
mov eax, SysReAllocString
jmp 0x45d55f
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.0042b3b0
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.004a81b0
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.0042b090
sub dword [ebp - 0x640], 1
jne 0x45d5d8
mov dword [ebp - 0x644], 0
jmp 0x45d5de
inc dword [ebp - 0x644]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004a8730
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 0x4f1270
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x628]
push 0x4f2b00
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x8d0]
push 0
push eax
call fcn.004a8730
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 0x45da72
nop word [eax + eax]
cmp word [ebp - 0x8a4], 0x2e
je 0x45da55
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a8730
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 0x4f2b08
push eax
call edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a8730
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 0x4f2b08
push eax
call edi
add esp, 0x38
test byte [ebp - 0x8d0], 0x10
je 0x45da3f
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 0x45d730
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x45dd0b
cmp esi, 7
ja 0x45d785
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.004a81b0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x8ec], ax
jmp 0x45d7ef
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x45d798
mov eax, SysReAllocString
jmp 0x45d7a3
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.0042b3b0
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.004a81b0
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 0x45d81e
push ecx
lea ecx, [ebp - 0x63c]
call fcn.004613c0
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 0x45d869
push 0x18
call fcn.004a6623
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 0x45d8c0
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x45dd0b
cmp esi, 7
ja 0x45d915
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.004a81b0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x8ec], ax
jmp 0x45d97f
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x45d928
mov eax, SysReAllocString
jmp 0x45d933
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.0042b3b0
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.004a81b0
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 0x45d9ae
push ecx
lea ecx, [ebp - 0x650]
call fcn.004613c0
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 0x45d9f9
push 0x18
call fcn.004a6623
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 0x45da55
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 0x45d670
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x654]
cmp ecx, 7
jbe 0x45dab6
mov edx, dword [ebp - 0x668]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45daac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dcfc
push ecx
push edx
call fcn.004a6653
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 0x45db13
mov edx, dword [ebp - 0x680]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45db09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dcfc
push ecx
push edx
call fcn.004a6653
add esp, 8
cmp dword [ebp - 0x62c], 0
jne 0x45d3c0
mov ecx, dword [ebp - 0x640]
test ecx, ecx
je 0x45db6b
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.0042b090
mov ecx, dword [ebp - 0x640]
sub ecx, 1
mov dword [ebp - 0x640], ecx
jne 0x45db30
mov dword [ebp - 0x644], 0
mov ecx, dword [ebp - 0x64c]
test ecx, ecx
je 0x45dbe3
mov esi, dword [ebp - 0x648]
test esi, esi
jle 0x45dba4
nop
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x45db9a
push 0x18
push eax
call fcn.004a6653
mov ecx, dword [ebp - 0x64c]
add esp, 8
test esi, esi
jg 0x45db80
mov esi, dword [ebp - 0x648]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x45dbc5
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd06
push esi
push ecx
call fcn.004a6653
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.004a6653
mov ecx, dword [ebp - 0x62c]
add esp, 8
test ecx, ecx
je 0x45dc4b
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.0042b090
mov ecx, dword [ebp - 0x62c]
sub ecx, 1
mov dword [ebp - 0x62c], ecx
jne 0x45dc10
mov dword [ebp - 0x630], 0
mov ecx, dword [ebp - 0x638]
test ecx, ecx
je 0x45dcbf
mov esi, dword [ebp - 0x634]
test esi, esi
jle 0x45dc84
nop
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x45dc7a
push 0x18
push eax
call fcn.004a6653
mov ecx, dword [ebp - 0x638]
add esp, 8
test esi, esi
jg 0x45dc60
mov esi, dword [ebp - 0x634]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x45dca1
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd06
push esi
push ecx
call fcn.004a6653
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.004a6653
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.004a69a0
mov esp, ebp
pop ebp
ret 8
call fcn.004abd0f
call fcn.004abd0f
call fcn.004abd0f
call fcn.0042a670
int3