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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xaac
push ebx
push esi
push edi
xor ebx, ebx
push 0x204
lea eax, [ebp - 0x864]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x868], ebx
call fcn.00555020
push 0x204
lea ecx, [ebp - 0x24c]
push ebx
push ecx
mov dword [ebp - 0x250], ebx
call fcn.00555020
push 0x204
lea edx, [ebp - 0x454]
push ebx
push edx
mov dword [ebp - 0x458], ebx
call fcn.00555020
push 0x204
lea eax, [ebp - 0x65c]
push ebx
push eax
mov dword [ebp - 0x660], ebx
call fcn.00555020
add esp, 0x30
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x16a8]
lea edx, [ebp - 0x868]
mov dword [ebp - 0x24], eax
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x510265
lea eax, [ebp - 0x868]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x510280
mov ecx, dword [0x59e658]
mov edx, dword [0x59e65c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5102a2
lea edi, [ebp - 0x868]
sub eax, edx
add edi, 0xfffffffe
jmp 0x5102c0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x5102c0
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 - 0xab8]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x868]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5103ad
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, 7
jmp 0x510310
xor edx, edx
lea eax, [ebp - 0xa8c]
mov word [ebp - 0x48], dx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510330
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa8c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00407db0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00510130
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 8
jb 0x510375
mov edx, dword [ebp - 0x48]
push edx
call fcn.00553d26
add esp, 4
lea ecx, [ebp - 0xab8]
push ecx
xor eax, eax
push esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
call ebx
test eax, eax
jne 0x510310
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x510310
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x510634
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x1c]
je 0x510634
lea eax, [ebp - 0x660]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x250]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x510400
lea edi, [ebp - 0x660]
add edi, 0xfffffffe
jmp 0x510420
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x510420
mov ebx, dword [0x59e4c4]
mov eax, dword [ebp - 0x10]
mov dword [edi], ebx
cmp dword [eax + 0x14], 8
jb 0x51043f
mov eax, dword [eax]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510441
lea edi, [ebp - 0x660]
sub eax, edx
add edi, 0xfffffffe
jmp 0x510460
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x510460
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x510482
lea edi, [ebp - 0x250]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5104a0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edi], ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5104da
test dx, dx
je 0x5104d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5104da
add eax, 4
add ecx, 4
test dx, dx
jne 0x5104b4
xor eax, eax
jmp 0x5104df
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5105c4
push 0x208
lea ecx, [ebp - 0x458]
push 0
push ecx
call fcn.00555020
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0x14]
add esp, 0xc
cmp edi, 8
jb 0x51050a
mov eax, dword [eax]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510510
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510527
mov ecx, dword [ebp - 0x10]
sub eax, esi
sar eax, 1
cmp edi, 8
jb 0x510540
mov ecx, dword [ecx]
sub edx, eax
push edx
push ecx
lea edx, [ebp - 0x458]
push edx
call fcn.0055b2ff
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov edx, eax
jmp 0x510560
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x510560
lea edi, [ebp - 0x458]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x510576
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 - 0x458]
rep movsb byte es:[edi], byte [esi]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5105a0
lea edi, [ebp - 0x250]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x5105b6
jmp 0x5105fc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x5105cf
mov eax, dword [eax]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5105d1
lea edi, [ebp - 0x250]
sub eax, edx
add edi, 0xfffffffe
jmp 0x5105f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x5105f0
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 - 0x250]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x660]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x10]
add eax, 0x1c
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x1c]
jne 0x5103f3
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x20]
xor eax, eax
cmp ebx, eax
je 0x51066f
mov edi, dword [ebp - 0x1c]
mov esi, ebx
cmp ebx, edi
je 0x510664
lea ecx, [ecx]
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.0050d2c0
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x510650
push ebx
call fcn.00553d26
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc