Function at 0x18002c880
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push r12
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rsi, rdx
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.18003b280
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x18002c8df
lea rax, [rcx + 2]
cmp rdx, 0xf
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmova rax, qword [rsp + 0x50]
mov word [rax + rcx], 0x2a5c
mov byte [rax + rcx + 2], 0
jmp 0x18002c8fe
lea r9, [0x1801883fc]
mov qword [rsp + 0x20], 2
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.18003d620
cmp qword [rsp + 0x68], 0xf
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x410], rbx
lea rdx, [rbp + 0x90]
cmova rcx, qword [rsp + 0x50]
mov qword [rsp + 0x418], rdi
mov qword [rsp + 0x420], r13
mov qword [rsp + 0x3e8], r14
mov qword [rsp + 0x3e0], r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x18002cb46
xor r13d, r13d
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x40], r13
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], r13
lea rax, [rbp + 0xbc]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x18002c980
lea rdx, [rbp + 0xbc]
lea rcx, [rsp + 0x30]
call fcn.18003d7b0
mov r15, qword [rsp + 0x48]
lea rbx, [rsp + 0x30]
mov r14, qword [rsp + 0x30]
cmp r15, 0xf
mov rdi, qword [rsp + 0x40]
cmova rbx, r14
test rdi, rdi
je 0x18002ca08
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi - 1]
mov byte [rbp - 0x42], 1
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
add rax, rbx
movzx ecx, byte [rax]
cmp byte [rbp + rcx - 0x70], r13b
jne 0x18002ca03
nop
cmp rax, rbx
je 0x18002ca08
movzx ecx, byte [rax - 1]
dec rax
cmp byte [rbp + rcx - 0x70], r13b
je 0x18002c9f0
sub rax, rbx
jmp 0x18002ca0f
mov rax, 0xffffffffffffffff
lea rcx, [rax + 1]
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
cmp rdi, rcx
jb 0x18002cbc1
sub rdi, rcx
lea rdx, [rsp + 0x30]
mov r8, 0xffffffffffffffff
cmp rdi, r8
cmovb r8, rdi
cmp r15, 0xf
cmova rdx, r14
add rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.18003d7b0
mov rdx, qword [rbp - 0x78]
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp - 0x80], 3
jne 0x18002ca85
cmp word [rax], 0x6663
jne 0x18002ca85
cmp byte [rax + 2], 0x67
jne 0x18002ca85
mov bl, 1
jmp 0x18002ca87
xor bl, bl
cmp rdx, 0xf
jbe 0x18002caba
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002cab5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002cb81
call fcn.1800eb33c
test bl, bl
je 0x18002caec
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x18002cadc
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003b280
add qword [rsi + 8], 0x20
jmp 0x18002caec
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rsi
call fcn.18003f1d0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x18002cb25
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002cb20
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002cb81
call fcn.1800eb33c
lea rdx, [rbp + 0x90]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18002c960
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x18002cb8d
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002cb88
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002cb88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb33c
mov r15, qword [rsp + 0x3e0]
mov r14, qword [rsp + 0x3e8]
mov r13, qword [rsp + 0x420]
mov rdi, qword [rsp + 0x418]
mov rbx, qword [rsp + 0x410]
add rsp, 0x3f0
pop r12
pop rsi
pop rbp
ret
call fcn.18003bcf0
int3