Function at 0x1000a880
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
sub esp, 0x89c
mov eax, dword [0x10063058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x638]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x894], ebx
call fcn.1002ad20
add esp, 0xc
lea eax, [ebp - 0x638]
push ebx
push 0x105
push eax
call fcn.10030959
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x1005bb4c
push 0x105
push eax
call fcn.100309bd
add esp, 0xc
test eax, eax
je 0x1000a8fc
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028ebf
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x89c], eax
cmp eax, 0xffffffff
jne 0x1000a92e
or eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028ebf
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x890]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1000aba1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [eax + eax]
test byte [ebp - 0x890], 0x10
je 0x1000a9e7
lea eax, [ebp - 0x864]
push 0x1005bb54
push eax
call fcn.1002a4b1
add esp, 8
test eax, eax
jne 0x1000ab86
push 0x105
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1002ad20
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x105
push eax
call fcn.10030959
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x1005baf4
push 0x105
push eax
call fcn.100309bd
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.100309bd
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.1000a880
jmp 0x1000ab86
push ebx
lea eax, [ebp - 0x428]
push 0x105
push eax
call fcn.10030959
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x1005baf4
push 0x105
push eax
call fcn.100309bd
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x428]
push 0x105
push eax
call fcn.100309bd
add esp, 0xc
lea eax, [ebp - 0x428]
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 0x1000ab80
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x898], eax
cmp eax, 0xffffffff
je 0x1000ab7d
push 0x400
call fcn.1002e3d0
mov esi, eax
add esp, 4
test esi, esi
je 0x1000ab7d
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x63c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000ab74
push esi
push 0x400
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1000aad1
push eax
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1000ab74
xor edi, edi
mov dword [ebp - 0x640], 0
cmp dword [ebp - 0x898], edi
jbe 0x1000ab23
push 0
lea eax, [ebp - 0x640]
push eax
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000ab6e
add edi, dword [ebp - 0x640]
push esi
push 0x400
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1000ab52
cmp edi, dword [ebp - 0x898]
jb 0x1000aae5
push 0
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call fcn.1002e3b5
add esp, 4
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000ab80
push 0
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.1002e3b5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000ab7a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002e3b5
add esp, 4
push ebx
call edi
mov ebx, dword [ebp - 0x894]
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x89c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000a950
push dword [ebp - 0x89c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028ebf
mov esp, ebp
pop ebp
ret