Function at 0x479e30
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b83e4
push eax
mov eax, 0x1578
mov dword fs:[0], esp
call fcn.00476910
push esi
mov esi, ecx
push edi
push 0
mov dword [ebp - 0xc8], esi
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0xc4], edi
call fcn.0049d79a
add esp, 8
test eax, eax
jne 0x47a6c8
mov dword [ebp - 0xcc], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xec]
push eax
push 0
push edi
movups xmmword [ebp - 0xec], xmm0
movups xmmword [ebp - 0xdc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x47a6c8
mov eax, dword [esi + 0x218]
test eax, eax
jle 0x479ec5
cmp dword [ebp - 0xd0], 0
jne 0x479ecf
shl eax, 0xa
cmp dword [ebp - 0xcc], eax
ja 0x479ecf
cmp byte [ebp + 8], 0
je 0x47a6c8
push 0x208
lea eax, [ebp - 0xd64]
push 0
push eax
call fcn.0048b3f0
add esp, 0xc
lea eax, [ebp - 0xd64]
push 0
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0xb5c]
push eax
call fcn.0048b3f0
push 0x208
lea eax, [ebp - 0xf6c]
push 0
push eax
call fcn.0048b3f0
push 0x208
lea eax, [ebp - 0x137c]
push 0
push eax
call fcn.0048b3f0
push 0x104
lea eax, [ebp - 0x137c]
push eax
push 0x104
lea eax, [ebp - 0xf6c]
push eax
push 0x104
lea eax, [ebp - 0xb5c]
push eax
push 3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xd64]
push eax
call fcn.00492de2
add esp, 0x48
lea eax, [ebp - 0x74c]
push 0x208
push 0
push eax
call fcn.0048b3f0
lea eax, [ebp - 0xb5c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x4bec88
lea eax, [ebp - 0x74c]
push 0x104
push eax
call fcn.0045ac50
push 0x208
lea eax, [ebp - 0x954]
push 0
push eax
call fcn.0048b3f0
lea eax, [ebp - 0xf6c]
push eax
lea eax, [ebp - 0x74c]
push eax
push 0x4bec88
lea eax, [ebp - 0x954]
push 0x104
push eax
call fcn.0045ac50
add esp, 0x40
lea eax, [ebp - 0x1174]
push 0x208
push 0
push eax
call fcn.0048b3f0
push str._.log
lea eax, [ebp - 0x954]
push eax
push 0x4bec88
lea eax, [ebp - 0x1174]
push 0x104
push eax
call fcn.0045ac50
push 0x250
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.0048b3f0
add esp, 0x2c
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x1174]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47a65c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0047c050
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x48]
call fcn.00478600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00477480
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00478d80
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x33c]
push eax
push esi
call edi
test eax, eax
je 0x47a196
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [ebp - 0x310], ax
je 0x47a103
lea eax, [ebp - 0x310]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47a0f4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402730
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00477480
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x47a15b
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x34], 7
push 0x250
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x33c]
push eax
mov dword [ebp - 0x38], 0
call fcn.0048b3f0
add esp, 0xc
lea eax, [ebp - 0x33c]
push eax
push esi
call edi
test eax, eax
jne 0x47a0c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
cmp eax, 9
jne 0x47a1f7
mov esi, dword [ebp - 0x14]
mov esi, dword [esi]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x47a1b5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xb5c]
push eax
lea eax, [ebp - 0x24]
push eax
push str._s_s_s
lea eax, [ebp - 0x544]
push 0x104
push eax
call fcn.0045ac50
add esp, 0x18
lea eax, [ebp - 0x544]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0047cd60
mov eax, dword [ebp - 0x10]
push 0
inc eax
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], 0
call fcn.0047c0e0
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx]
mov dword [ebp - 0x28], esi
cmp esi, ecx
je 0x47a5b6
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x954]
push eax
push str._s__04d.log
lea eax, [ebp - 0x544]
push 0x104
push eax
call fcn.0045ac50
xor eax, eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
add esp, 0x14
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], eax
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], eax
mov word [ebp - 0x90], ax
mov byte [ebp - 4], 0xd
cmp word [ebp - 0x544], ax
jne 0x47a2d6
xor ecx, ecx
jmp 0x47a2ef
lea ecx, [ebp - 0x544]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a2e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x544]
push eax
lea ecx, [ebp - 0x90]
call fcn.00402730
lea eax, [ebp - 0x544]
push eax
mov eax, dword [ebp + 8]
movzx eax, al
push eax
push str._log_
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [ebp - 0x544], 0
jne 0x47a330
xor ecx, ecx
jmp 0x47a34f
lea ecx, [ebp - 0x544]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a340
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x544]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00402730
xor eax, eax
mov dword [ebp - 0x68], 0
push 0xffffffffffffffff
push eax
add esi, 0x10
mov dword [ebp - 0x64], 0
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
call fcn.004023c0
mov byte [ebp - 4], 0xe
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
cmp word [ebp - 0x74c], ax
jne 0x47a3c6
xor ecx, ecx
jmp 0x47a3df
lea ecx, [ebp - 0x74c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a3d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x74c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00402730
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044d2e0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0xc0]
cmp eax, esi
je 0x47a45e
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x47a435
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0xac], 7
push esi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
call fcn.0044db70
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47a477
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x47a4a4
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x47a4d1
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x64], 7
cmp dword [ebp - 0x94], 8
mov word [ebp - 0x78], ax
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
push eax
mov dword [ebp - 0x68], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0xc0]
cmovae ecx, dword [ebp - 0xa8]
cmp dword [ebp - 0xac], 8
push ecx
cmovae eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x1c]
test eax, eax
je 0x47a598
lea eax, [ebp - 0xc0]
push eax
push dword [edi + 4]
push edi
call fcn.00476dd0
mov edx, dword [ebp - 0x18]
mov ecx, 0x3333332
sub ecx, edx
cmp ecx, 1
jb 0x47a58e
inc edx
mov dword [ebp - 0x18], edx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc0]
call fcn.004790e0
lea ecx, [ebp - 0x28]
call fcn.0040a3f0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
dec eax
mov dword [ebp + 8], eax
cmp esi, dword [ebp - 0x14]
jne 0x47a231
jmp 0x47a5b6
push str.list_T__too_long
call fcn.004725e8
push edi
push dword [edi]
lea eax, [ebp + 8]
push eax
call fcn.0047d080
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc0]
call fcn.004790e0
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi]
cmp esi, edi
je 0x47a5e4
nop dword [eax]
cmp dword [esi + 0x4c], 8
lea eax, [esi + 0x38]
jb 0x47a5cb
mov eax, dword [eax]
cmp dword [esi + 0x34], 8
lea ecx, [esi + 0x20]
jb 0x47a5d6
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, dword [esi]
cmp esi, edi
jne 0x47a5c0
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
mov dword [edi], edi
mov dword [ebp + 8], eax
mov dword [edi + 4], edi
mov dword [ebp - 0x18], 0
cmp eax, edi
je 0x47a61e
nop dword [eax]
mov esi, dword [eax]
lea ecx, [eax + 8]
call fcn.004790e0
push dword [ebp + 8]
call fcn.004756d5
add esp, 4
mov eax, esi
mov dword [ebp + 8], eax
cmp esi, edi
jne 0x47a600
mov byte [ebp - 4], 2
push edi
call fcn.004756d5
add esp, 4
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
push eax
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.0047cca0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call fcn.004756d5
mov edi, dword [ebp - 0xc4]
add esp, 4
mov esi, dword [ebp - 0xc8]
add esi, 0x224
mov byte [ebp + 0xb], 0
mov eax, dword [esi]
test eax, eax
je 0x47a685
push eax
call fcn.0049cf7b
add esp, 4
mov dword [esi], 0
mov byte [ebp + 0xb], 1
lea eax, [ebp - 0x954]
push eax
push str._s_0001.log
lea eax, [ebp - 0x1584]
push 0x104
push eax
call fcn.0045ac50
add esp, 0x10
lea eax, [ebp - 0x1584]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp byte [ebp + 0xb], 0
je 0x47a6c8
push 0x4bec68
push edi
push esi
call fcn.0049ceb3
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4