Function at 0x100082d0
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.1002b0c0
push ebx
lea eax, [esp + 0x6a0]
push 0x105
push eax
call fcn.1002f0e1
push 0x10057cbc
lea eax, [esp + 0x6ac]
push 0x105
push eax
call fcn.1002f145
add esp, 0x24
test eax, eax
je 0x10008352
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.1002928e
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 0x10008385
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.1002928e
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 0x100085cb
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test byte [esp + 0x20], 0x10
je 0x1000842d
lea eax, [esp + 0x4c]
push 0x10057cc4
push eax
call fcn.1002a85b
add esp, 8
test eax, eax
jne 0x100085b4
push 0x105
push eax
lea eax, [esp + 0x278]
push eax
call fcn.1002b0c0
push ebx
lea eax, [esp + 0x280]
push 0x105
push eax
call fcn.1002f0e1
push 0x10057ccc
lea eax, [esp + 0x28c]
push 0x105
push eax
call fcn.1002f145
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x298]
push 0x105
push eax
call fcn.1002f145
add esp, 0x30
lea ecx, [esp + 0x270]
call fcn.100082d0
jmp 0x100085b4
push ebx
lea eax, [esp + 0x484]
push 0x105
push eax
call fcn.1002f0e1
push 0x10057ccc
lea eax, [esp + 0x490]
push 0x105
push eax
call fcn.1002f145
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x49c]
push 0x105
push eax
call fcn.1002f145
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 0x100085b0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x100085ad
push 0x400
call fcn.1002f0d6
mov esi, eax
add esp, 4
test esi, esi
je 0x100085ad
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 0x100085a4
push esi
push 0x400
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1000850b
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x100085a4
xor edi, edi
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x10], edi
jbe 0x10008556
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 0x1000859e
add edi, dword [esp + 0x1c]
push esi
push 0x400
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10008584
cmp edi, dword [esp + 0x10]
jb 0x10008520
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.1002f0bb
add esp, 4
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100085b0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.1002f0bb
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100085aa
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002f0bb
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 0x100083a0
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.1002928e
mov esp, ebp
pop ebp
ret