Function at 0x4be020
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537156
mov eax, dword fs:[0]
push eax
sub esp, 0xabc
mov eax, dword [0x58c250]
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 esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x204
lea edx, [ebp - 0x82c]
push ebx
push edx
mov dword [ebp - 0xabc], edi
mov dword [ebp - 0xaa4], eax
mov dword [ebp - 0xab8], ecx
mov dword [ebp - 0x830], ebx
call fcn.004f0550
push 0x204
lea eax, [ebp - 0x214]
push ebx
push eax
mov dword [ebp - 0x218], ebx
call fcn.004f0550
push 0x204
lea ecx, [ebp - 0x624]
push ebx
push ecx
mov dword [ebp - 0x628], ebx
call fcn.004f0550
push 0x204
lea edx, [ebp - 0x41c]
push ebx
push edx
mov dword [ebp - 0x420], ebx
call fcn.004f0550
add esp, 0x30
mov dword [ebp - 0xab4], ebx
mov dword [ebp - 0xab0], ebx
mov dword [ebp - 0xaac], ebx
mov dword [ebp - 4], ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [esi + 0x18bc]
lea ecx, [ebp - 0x830]
mov dword [ebp - 0xac0], eax
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp dx, bx
jne 0x4be101
lea eax, [ebp - 0x830]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4be120
mov ecx, dword [0x545bf4]
mov edx, dword [0x545bf8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xaa4]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4be145
lea edi, [ebp - 0x830]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4be160
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4be160
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0xa9c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4be267
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, 7
jmp 0x4be1b0
xor edx, edx
lea eax, [ebp - 0xa70]
mov word [ebp - 0x84c], dx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be1d2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa70]
push eax
lea ecx, [ebp - 0x84c]
call fcn.004069f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84c]
push ecx
lea ecx, [ebp - 0xab4]
call fcn.00424bb0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x838], 8
jb 0x4be226
mov edx, dword [ebp - 0x84c]
push edx
call fcn.004efd7c
add esp, 4
lea ecx, [ebp - 0xa9c]
push ecx
xor eax, eax
push esi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], 0
mov word [ebp - 0x84c], ax
call ebx
test eax, eax
jne 0x4be1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4be1b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xab0]
sub ecx, dword [ebp - 0xab4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4be543
mov eax, dword [ebp - 0xab4]
mov dword [ebp - 0xaa0], eax
cmp eax, dword [ebp - 0xab0]
je 0x4be543
lea eax, [ebp - 0x420]
sub eax, dword [ebp - 0xac0]
mov dword [ebp - 0xac8], eax
lea eax, [ebp - 0x218]
sub eax, dword [ebp - 0xabc]
mov dword [ebp - 0xac4], eax
jmp 0x4be2d0
mov eax, dword [ebp - 0xac0]
mov edx, dword [ebp - 0xac8]
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4be2e0
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
jmp 0x4be300
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4be300
mov ebx, dword [0x53bb00]
mov eax, dword [ebp - 0xaa0]
mov dword [edi], ebx
cmp dword [eax + 0x14], 8
jb 0x4be322
mov eax, dword [eax]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be324
lea edi, [ebp - 0x420]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4be340
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebp - 0xac4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xabc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4be370
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4be370
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
jmp 0x4be390
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4be390
mov ecx, dword [ebp - 0xab8]
mov eax, dword [ebp - 0xaa4]
mov dword [edi], ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4be3d6
test dx, dx
je 0x4be3d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4be3d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4be3b0
xor eax, eax
jmp 0x4be3db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4be4ce
push 0x208
lea ecx, [ebp - 0x628]
push 0
push ecx
call fcn.004f0550
mov eax, dword [ebp - 0xaa0]
mov edi, dword [eax + 0x14]
add esp, 0xc
cmp edi, 8
jb 0x4be409
mov eax, dword [eax]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be410
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebp - 0xaa4]
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be430
mov ecx, dword [ebp - 0xaa0]
sub eax, esi
sar eax, 1
cmp edi, 8
jb 0x4be44c
mov ecx, dword [ecx]
sub edx, eax
push edx
push ecx
lea edx, [ebp - 0x628]
push edx
call fcn.004f3070
mov eax, dword [ebp - 0xab8]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be467
lea edi, [ebp - 0x628]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4be480
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x628]
rep movsb byte es:[edi], byte [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be4a4
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4be4c0
jmp 0x4be502
mov eax, dword [ebp - 0xaa0]
cmp dword [eax + 0x14], 8
jb 0x4be4dc
mov eax, dword [eax]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4be4e0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4be4f6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 1
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0xaa0]
add eax, 0x1c
mov dword [ebp - 0xaa0], eax
cmp eax, dword [ebp - 0xab0]
jne 0x4be2d0
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0xab4]
xor eax, eax
cmp ebx, eax
je 0x4be584
mov edi, dword [ebp - 0xab0]
mov esi, ebx
cmp ebx, edi
je 0x4be579
lea edx, [ebp - 0xaa8]
push esi
push edx
call fcn.004213e0
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x4be562
push ebx
call fcn.004efd7c
add esp, 4
xor eax, eax
mov dword [ebp - 0xab4], eax
mov dword [ebp - 0xab0], eax
mov dword [ebp - 0xaac], eax
mov eax, 1
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.004f0194
mov esp, ebp
pop ebp
ret 0xc