Function at 0x487c00
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c44e
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4ec], edx
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004dcc10
mov eax, dword [0x54f5f0]
add esp, 0xc
inc eax
mov dword [0x54f5f0], eax
cmp eax, 0xa
ja 0x488859
test esi, esi
je 0x488859
push 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004f29e9
add esp, 0xc
test eax, eax
jne 0x487c8b
dec dword [0x54f5f0]
jmp 0x48885f
lea ecx, [ebp - 0x21c]
call fcn.0048a1a0
test al, al
je 0x487c80
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x48887c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4f0], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0044f2b0
test al, al
jne 0x487d02
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487ce0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0044f440
mov dword [ebp - 4], 1
call fcn.004501e0
mov ecx, eax
test ecx, ecx
je 0x488886
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4e8], eax
push str.Folder
lea ecx, [ebp - 0x4e8]
mov byte [ebp - 4], 2
call fcn.0044f2b0
test al, al
jne 0x487d52
push 8
push str.Folder
lea ecx, [ebp - 0x4e8]
call fcn.0044f440
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x4f0]
mov esi, dword [ebp - 0x4e8]
push edi
push esi
push 0x533fb4
push 0x54bba8
call fcn.0048d420
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
add esp, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487d94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x487db0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
lea edx, [ecx + 2]
mov word [ebp - 0x24c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487de0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.0044a750
mov dword [ebp - 4], 4
lea eax, [ebp - 0x24c]
push dword [ebp - 0x4e8]
mov esi, dword [ebp - 0x23c]
cmp dword [ebp - 0x238], 8
push 1
cmovae eax, dword [ebp - 0x24c]
push 0x5329c0
push esi
push esi
push eax
call fcn.0048c1f0
lea ecx, [esi - 1]
add esp, 0x18
cmp eax, ecx
je 0x487f32
push 0x5329c0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0047d190
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp eax, esi
je 0x487ef2
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x487eb1
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487ea7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488890
push edx
push ecx
call fcn.004dafca
add esp, 8
mov dword [ebp - 0x23c], 0
xor eax, eax
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x24c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x23c], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x487f32
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487f28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488890
push edx
push ecx
call fcn.004dafca
add esp, 8
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x294]
call fcn.0044add0
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push 0x531838
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0047d190
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x294]
cmp eax, esi
je 0x48801b
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x487fda
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x487fd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488895
push edx
push ecx
call fcn.004dafca
add esp, 8
mov dword [ebp - 0x284], 0
xor eax, eax
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x294], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x284], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x48805b
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488051
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488895
push edx
push ecx
call fcn.004dafca
add esp, 8
cmp dword [ebp - 0x280], 8
lea ecx, [ebp - 0x4e4]
lea eax, [ebp - 0x294]
cmovae eax, dword [ebp - 0x294]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x4e8], esi
cmp esi, 0xffffffff
je 0x48872d
test byte [ebp - 0x4e4], 0x10
je 0x4882aa
mov edx, 0x53183c
lea ecx, [ebp - 0x4b8]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4880cc
test ax, ax
je 0x4880c8
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4880cc
add ecx, 4
add edx, 4
test ax, ax
jne 0x4880a6
xor eax, eax
jmp 0x4880d1
sbb eax, eax
or eax, 1
test eax, eax
je 0x4883c1
mov ecx, 0x531840
lea eax, [ebp - 0x4b8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48810a
test dx, dx
je 0x488106
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48810a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4880e4
xor eax, eax
jmp 0x48810f
sbb eax, eax
or eax, 1
test eax, eax
je 0x4883c1
xor eax, eax
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
lea edx, [ecx + 2]
mov word [ebp - 0x264], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488147
sub ecx, edx
lea eax, [ebp - 0x4b8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.0044a750
mov byte [ebp - 4], 7
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
push dword [ebp - 0x23c]
cmovae eax, dword [ebp - 0x24c]
push eax
push ecx
lea ecx, [ebp - 0x264]
call fcn.00463ed0
mov dword [ebp - 0x27c], 0
xor ecx, ecx
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x26c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x4ec]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x268], 8
cmovae ecx, dword [ebp - 0x27c]
call fcn.00487c00
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x488243
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488239
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48889a
push edx
push ecx
call fcn.004dafca
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
cmp edx, 8
jb 0x4883c1
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48829e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48889a
push edx
push ecx
call fcn.004dafca
jmp 0x4883be
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0047d190
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x234]
cmp eax, esi
je 0x488358
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x488317
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48830d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48889f
push edx
push ecx
call fcn.004dafca
add esp, 8
mov dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x488398
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48838e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48889f
push edx
push ecx
call fcn.004dafca
add esp, 8
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push dword [ebp - 0x4ec]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00487730
mov esi, dword [ebp - 0x4e8]
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x4e4]
push eax
push esi
call edi
test eax, eax
je 0x488726
nop dword [eax]
test byte [ebp - 0x4e4], 0x10
lea eax, [ebp - 0x4b8]
je 0x488603
mov ecx, 0x53183c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48841e
test dx, dx
je 0x48841a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48841e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4883f8
xor eax, eax
jmp 0x488423
sbb eax, eax
or eax, 1
test eax, eax
je 0x488714
mov ecx, 0x531840
lea eax, [ebp - 0x4b8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48845c
test dx, dx
je 0x488458
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48845c
add eax, 4
add ecx, 4
test dx, dx
jne 0x488436
xor eax, eax
jmp 0x488461
sbb eax, eax
or eax, 1
test eax, eax
je 0x488714
xor eax, eax
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
lea edx, [ecx + 2]
mov word [ebp - 0x264], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4884a0
sub ecx, edx
lea eax, [ebp - 0x4b8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.0044a750
mov byte [ebp - 4], 9
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
push dword [ebp - 0x23c]
cmovae eax, dword [ebp - 0x24c]
push eax
push ecx
lea ecx, [ebp - 0x264]
call fcn.00463ed0
mov dword [ebp - 0x27c], 0
xor ecx, ecx
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x27c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x26c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x4ec]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x268], 8
cmovae ecx, dword [ebp - 0x27c]
call fcn.00487c00
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x268]
cmp edx, 8
jb 0x48859c
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488592
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488890
push edx
push ecx
call fcn.004dafca
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
cmp edx, 8
jb 0x488714
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4885f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488890
push edx
push ecx
call fcn.004dafca
jmp 0x488711
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0047d190
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x234]
cmp eax, esi
je 0x4886ab
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x48866a
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488660
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488890
push edx
push ecx
call fcn.004dafca
add esp, 8
mov dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x250]
cmp edx, 8
jb 0x4886eb
mov ecx, dword [ebp - 0x264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4886e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x488890
push edx
push ecx
call fcn.004dafca
add esp, 8
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push dword [ebp - 0x4ec]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00487730
mov esi, dword [ebp - 0x4e8]
add esp, 8
lea eax, [ebp - 0x4e4]
push eax
push esi
call edi
test eax, eax
jne 0x4883e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x488756
cmp dword [ebp - 0x4ec], eax
je 0x488756
push 4
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
dec dword [0x54f5f0]
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x48879c
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488792
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4888a4
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x280]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
cmp edx, 8
jb 0x4887f9
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4887ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4888a4
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
cmp edx, 8
jb 0x488852
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x488848
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4888a4
push edx
push ecx
call fcn.004dafca
add esp, 8
mov eax, 1
jmp 0x488861
dec eax
mov dword [0x54f5f0], eax
xor eax, eax
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.004dafe6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450130
push 0x80004005
call fcn.00450130
call fcn.004e002c
call fcn.004e002c
call fcn.004e002c
call fcn.004e002c
call fcn.004e002c
int3