Function at 0x100015128
Capabilities:
Enumerate files on windows

Disassembly:
test byte [rsp + 0x60], 0x10
je 0x100015107
test byte [rsp + 0x60], 2
jne 0x100015107
cmp byte [rsp + 0xb80], bpl
jne 0x10002540e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8d, 0xc0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rbp
je 0x10002542c
mov qword [rax + 0x10], rbp
mov dword [rax + 0x30], 0xff000000
lea rax, [0x1000aac30]
mov qword [rbx], rax
mov qword [rbx + 0x60], rbp
mov byte [rbx + 0x6a], bpl
mov byte [rbx + 0x6b], bpl
mov byte [rbx + 0x6d], bpl
mov qword [rbx + 0x78], rbp
mov qword [rbx + 0x80], rbp
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x90], rbp
mov qword [rbx + 0x98], rbp
mov qword [rbx + 0xa0], rbp
mov byte [rbx + 0xa8], bpl
mov qword [rbx + 0xb8], rbp
jmp 0x100015004
cmp rbx, rbp
je 0x10002544c
mov dword [rsp + 0x20], ebp
lea r9, [rsp + 0x8c]
mov r8, r14
mov edx, 0x104
lea rcx, [rsp + 0x8f0]
call fcn.100019880
mov edi, eax
cmp eax, ebp
jl 0x100025453
mov rax, qword [rbx]
mov r9d, dword [r13 + 0x98]
lea r8, [rsp + 0x8f0]
mov rdx, r15
mov rcx, rbx
call qword [rax + 0x48]
cmp eax, ebp
jl 0x10002543b
mov edi, 0x428
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x2b0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x2b0], edi
mov dword [rsp + 0x2b4], 0x8401
mov rax, qword [rbx + 8]
mov qword [rsp + 0x2b8], rax
xor edx, edx
lea rcx, [rsp + 0x2b0]
call fcn.100001aa0
mov rbp, qword [r12 + 8]
lea rdx, [rbp + 1]
mov rcx, r12
call fcn.100002480
mov edi, eax
test eax, eax
js 0x100025434
mov rax, qword [r12]
xor ecx, ecx
mov qword [rax + rbp*8], rcx
mov rax, qword [r12]
lea rcx, [rax + rbp*8]
lea rdx, [rsp + 0x4d0]
call fcn.100006318
mov edi, eax
xor ebp, ebp
cmp eax, ebp
jl 0x1000150e8
inc qword [r12 + 8]
jmp 0x1000150e8
cmp edi, ebp
jl 0x100025453
mov rcx, qword [rbx + 8]
cmp rcx, rbp
je 0x100015107
xor r8d, r8d
lea edx, [r8 + 2]
call fcn.10000123c
jmp 0x100015107
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
je 0x1000151d7
jmp 0x100014f5e
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb18
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0xb00], rax
mov r12, r9
mov r14, r8
mov r15, rdx
mov r13, rcx
xor ebp, ebp
mov dword [rsp + 0x60], ebp
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x64]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
mov rbx, rbp
mov dword [rsp + 0x20], ebp
lea r9, [0x1000aed14]
mov r8, r14
mov edx, 0x104
lea rcx, [rsp + 0x6e0]
call fcn.100019880
mov edi, eax
cmp eax, ebp
jl 0x1000151e5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x6e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x100014f5e
cmp edi, ebp
jl 0x100025453
cmp rsi, 0xffffffffffffffff
jne 0x10001520b
mov eax, edi
mov rcx, qword [rsp + 0xb00]
xor rcx, rsp
call fcn.1000031d0
add rsp, 0xb18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
jmp 0x1000151e5
lea rdx, [rsp + 0x8c]
mov rcx, r13
call fcn.10005221c
cmp al, bpl
je 0x100014f82
jmp 0x100015107
mov rbx, rbp
jmp 0x100015004
xor ebp, ebp
jmp 0x1000150e8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rbx, rbp
jmp 0x100015107
mov edi, 0x8007000e
jmp 0x100025453
cmp rbx, rbp
je 0x1000151df
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
jmp 0x1000151df