Function at 0x140025770
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1402fa010]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov qword [rsp + 0x48], rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov rcx, rdx
call fcn.140029c30
mov qword [rsp + 0x58], r12
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.1400191a0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
xor r14b, r14b
movsxd rdi, dword [rbx - 0x10]
mov eax, r12d
lea r15d, [r12 + 0x5c]
test edi, edi
jle 0x140025857
mov rcx, rbx
cdqe
lea rsi, [rax + rax]
cmp word [rcx + rsi], 0x2f
jne 0x140025831
test r14b, r14b
jne 0x14002582c
mov r14b, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140025829
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.140018ec0
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
mov word [rsi + rcx], r15w
lea rax, [rsi + 2]
sar rax, 1
cmp eax, edi
jl 0x1400257f2
test r14b, r14b
je 0x140025852
cmp edi, dword [rbx - 0xc]
jg 0x140025b6d
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r12w
mov rsi, qword [rsp + 0x38]
mov edx, r15d
mov rcx, rbx
call fcn.1401f5e2c
mov r13, 0xffffffffffffffff
test rax, rax
jne 0x140025873
mov eax, r13d
jmp 0x140025879
sub rax, rbx
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400290e0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400258ed
cmp dword [rbx + 0x10], 0
jl 0x1400258de
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400258de
call fcn.1400191a0
mov rdi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400258d3
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
mov rax, qword [r8 + 8]
call qword [case.0x140038716.0]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x1400258ed
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140018f70
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025913
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x140025ae3
mov rbx, rax
test byte [rsp + 0x60], 0x10
jne 0x140025abf
mov qword [rsp + 0x28], r12
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x140025966
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038716.0]
mov rcx, rax
test rax, rax
jne 0x14002598a
call fcn.1400195b0
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x140038716.0]
mov rcx, rax
test rax, rax
je 0x140025b62
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov r12d, dword [rsp + 0x20]
or r12d, 1
mov dword [rsp + 0x20], r12d
lea rcx, [rbp - 0x74]
mov rsi, r13
inc rsi
cmp word [rcx + rsi*2], 0
jne 0x1400259b5
movsxd r15, dword [rdi - 0x10]
lea r14d, [r15 + rsi]
test r14d, r14d
js 0x140025b57
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, r14d
or eax, ecx
jge 0x1400259f4
mov edx, r14d
lea rcx, [rsp + 0x28]
call fcn.140018ec0
mov rbx, qword [rsp + 0x28]
add r15, r15
je 0x140025a1e
test rbx, rbx
jne 0x140025a10
call fcn.1401fae4c
mov dword [rax], 0x16
call fcn.1401facac
jmp 0x140025a1e
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.1401f61a0
movsxd r8, esi
add r8, r8
lea rcx, [r15 + rbx]
je 0x140025a4a
test rcx, rcx
jne 0x140025a41
call fcn.1401fae4c
mov dword [rax], 0x16
call fcn.1401facac
jmp 0x140025a4a
lea rdx, [rbp - 0x74]
call fcn.1401f61a0
cmp r14d, dword [rbx - 0xc]
jg 0x140025b57
mov dword [rbx - 0x10], r14d
movsxd rax, r14d
xor ecx, ecx
mov word [rbx + rax*2], cx
xor r9d, r9d
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsi + 8]
mov rdx, rbx
mov rcx, rsi
call fcn.140029d10
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140025a86
mov qword [rcx], rax
jmp 0x140025a89
mov qword [rsi], rax
mov qword [rsi + 8], rax
and r12d, 0xfffffffe
mov dword [rsp + 0x20], r12d
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025ab7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
xor r12d, r12d
mov rbx, qword [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140025933
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025b0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140025b2d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1401f3bf0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140019320
int3
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80070057
call fcn.140019320
int3