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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f09f4
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x294], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
push 0
push eax
push ecx
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x28c], eax
call esi
test eax, eax
jne 0x47fecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47feaa
push dword [ebp - 0x28c]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47fecf
mov ecx, dword [ebp - 0x28c]
lea edx, [eax + 2]
call fcn.005e4c40
push 0
push dword [ebp - 0x28c]
push dword [ebp - 0x290]
call esi
test eax, eax
jne 0x47fecf
push 0
push 0
push dword [ebp - 0x28c]
mov ecx, ebx
push str.Error__Could_not_create_destination_directory:
call fcn.0045a700
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
xor al, al
jmp 0x4802d7
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
sub esp, 8
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6249f8
push dword [ebp - 0x290]
call fcn.005dc520
push 0x260
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 1
push 0
push eax
mov byte [ebp - 0x298], 1
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push 0x250
mov esi, eax
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.00420090
add esp, 0xc
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, eax
mov dword [ebp - 0x38], ebx
cmp ebx, 0xffffffff
je 0x480005
mov ecx, 1
mov dword [ebp - 0x34], ecx
nop dword [eax]
cmp word [ebp - 0x25c], 0x2e
jne 0x47ffb6
mov ax, word [ebp - 0x25a]
test ax, ax
je 0x47ffe0
cmp ax, 0x2e
jne 0x47ffb6
cmp word [ebp - 0x258], 0
je 0x47ffe0
test ecx, ecx
je 0x480005
mov eax, dword [ebp - 0x288]
test cl, 1
je 0x47ffcc
test eax, 0x400
jne 0x47ffe0
test cl, 2
je 0x47ffd7
test al, 0x10
je 0x480005
jmp 0x47ffe0
test cl, 4
je 0x480005
test al, 0x10
jne 0x480005
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47fffa
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
jmp 0x47ff90
push dword [ebp - 0x38]
call esi
or ebx, 0xffffffff
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 2
cmp ebx, 0xffffffff
je 0x4802bf
add dword [edi + 0x30], 1
push 0
adc dword [edi + 0x34], 0
push 0x1f4
push dword [edi + 0x4c]
push dword [edi + 0x48]
call fcn.0042fc20
push dword [edi + 0x54]
push dword [edi + 0x50]
push edx
push eax
call fcn.0042fd90
push 0
push 0x1f4
push dword [edi + 0x34]
mov esi, eax
push dword [edi + 0x30]
call fcn.0042fc20
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edx
push eax
call fcn.0042fd90
add esi, eax
cmp dword [edi], 0
mov dword [edi + 0x10], esi
jne 0x4802b1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
push eax
push 0x624284
push dword [ebp - 0x290]
lea ecx, [ebp - 0x1c]
call fcn.005dc200
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
push eax
push 0x624284
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x28]
call fcn.005dc200
test byte [ebp - 0x288], 0x10
je 0x480182
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x48010d
push ebx
mov edx, 0x670fb4
lea ecx, [ebp - 0x25c]
call fcn.005d8ad0
test eax, eax
je 0x48026b
push ebx
mov edx, str.Package_Cache
lea ecx, [ebp - 0x25c]
call fcn.005d8ad0
test eax, eax
je 0x48026b
mov edx, str.Comms
jmp 0x480131
cmp ebx, 1
jne 0x480146
push 0
mov edx, str.Windows
lea ecx, [ebp - 0x25c]
call fcn.005d8ad0
test eax, eax
je 0x48026b
mov edx, str.WindowsApps
push 0
lea ecx, [ebp - 0x25c]
call fcn.005d8ad0
test eax, eax
je 0x48026b
lea eax, [ebx + 1]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, dword [ebp - 0x294]
push eax
call fcn.0047fe10
mov edx, dword [ebp - 0x298]
movzx ecx, dl
movzx eax, al
imul eax, ecx
mov dword [ebp - 0x298], eax
jmp 0x48026b
cmp byte [edi + 0xb4], 0
lea ecx, [ebp - 0x28]
je 0x4801c9
push 1
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x480209
push eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, dword [ebp - 0x294]
push eax
push str.Error__Could_not_move_file:
call fcn.0045a700
jmp 0x48026b
push 0x1800
push edi
push 0
push 0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x480209
push eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ecx, dword [ebp - 0x294]
push eax
push str.Error__Could_not_copy_file:
call fcn.0045a700
jmp 0x48026b
mov eax, dword [ebp - 0x268]
add dword [edi + 0x48], eax
mov ecx, dword [ebp - 0x26c]
adc dword [edi + 0x4c], ecx
push 0
push 0x1f4
push dword [edi + 0x4c]
mov dword [ebp - 0x2c], ecx
push dword [edi + 0x48]
mov dword [ebp - 0x30], eax
call fcn.0042fc20
push dword [edi + 0x54]
push dword [edi + 0x50]
push edx
push eax
call fcn.0042fd90
push 0
push 0x1f4
push dword [edi + 0x34]
mov esi, eax
push dword [edi + 0x30]
call fcn.0042fc20
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edx
push eax
call fcn.0042fd90
add esi, eax
cmp dword [edi], 0
mov dword [edi + 0x10], esi
jne 0x4802ae
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x4802bf
lea ecx, [ebp - 0x288]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48029c
lea ecx, [ebp - 0x288]
call fcn.004011a0
test al, al
je 0x4802ae
mov ebx, dword [ebp - 0x38]
jmp 0x480012
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x38], 0xffffffff
jmp 0x4802bf
mov ebx, dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0xffffffff
je 0x4802bf
push ebx
call esi
lea ecx, [ebp - 0x1c]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
mov edx, dword [ebp - 0x298]
mov al, dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0x10