Function at 0x180037564
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x380
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov qword [rsp + 0xb0], rdx
mov r12, rcx
mov qword [r11 - 0x2f8], rdx
xor r13d, r13d
mov dword [rsp + 0x78], r13d
lea rdx, [r11 - 0x338]
lea rcx, [0x180162940]
call fcn.180008024
nop
lea rdx, [0x18010d534]
lea rcx, [rsp + 0xa8]
call fcn.180007f64
nop
mov rdi, qword [rsp + 0xa8]
mov r8, rdi
mov edx, dword [rdi - 8]
lea rcx, [rsp + 0x80]
call fcn.180008324
nop
lea rcx, [rdi - 0xc]
lea r15, [0x18015f758]
or r14, 0xffffffffffffffff
cmp rcx, r15
je 0x180037622
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r13d
jg 0x180037622
call fcn.1800d1434
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
lea rdx, [0x18010d528]
lea rcx, [rsp + 0xb8]
call fcn.1800041c0
nop
test byte [rsp + 0x120], 0x10
je 0x180037718
lea rdx, [rsp + 0x14c]
lea rcx, [rsp + 0xa0]
call fcn.1800041c0
nop
lea rdi, [0x18010d3c4]
mov rbx, qword [rsp + 0xa0]
mov rsi, rbx
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x1800376fb
lea rdi, [0x18010d50c]
mov rsi, rbx
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x1800376fb
cmp dword [rbx - 8], r13d
jl 0x1800376dc
lea rdx, [0x18010d3c4]
mov rcx, rbx
call fcn.1800d1f00
cmp rax, r13
je 0x1800376dc
sub rax, rbx
sar rax, 1
cmp eax, r13d
jl 0x1800376dc
lea rcx, [r12 + 0x40]
lea rdx, [rsp + 0xa0]
call fcn.180001910
nop
lea rcx, [rbx - 0xc]
cmp rcx, r15
je 0x180037718
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r13d
jg 0x180037718
call fcn.1800d1434
jmp 0x180037718
lea rcx, [rbx - 0xc]
cmp rcx, r15
je 0x180037718
mov eax, r14d
lock xadd dword [rcx], eax
add eax, r14d
cmp eax, r13d
jg 0x180037718
call fcn.1800d1434
lea rdx, [rsp + 0x120]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r13d
jne 0x180037650
mov ebx, r13d
mov ebp, r13d
mov r15d, r13d
mov esi, r13d
mov dword [rsp + 0x3c], r13d
mov rdi, qword [r12 + 0x58]
cmp rdi, qword [r12 + 0x60]
jbe 0x180037754
call fcn.1800d15f4
mov rax, qword [r12 + 0x40]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rdi
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x90], xmm0
mov r13, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov rdi, qword [r12 + 0x60]
cmp qword [r12 + 0x58], rdi
jbe 0x18003779b
call fcn.1800d15f4
xor eax, eax
cmp r13, rax
je 0x1800377a9
cmp r13, qword [r12 + 0x40]
je 0x1800377b0
call fcn.1800d15f4
xor eax, eax
cmp r14, rdi
jae 0x180037bdf
cmp r13, rax
jne 0x1800377c7
call fcn.1800d15f4
xor edx, edx
jmp 0x1800377cb
mov rdx, qword [r13]
cmp r14, qword [rdx + 0x20]
jb 0x1800377d6
call fcn.1800d15f4
mov rdi, qword [r14]
xor ecx, ecx
cmp dword [rdi - 0xc], ecx
jl 0x1800377ec
mov qword [rsp + 0x40], rdi
lock add dword [rdi - 0xc], 1
jmp 0x18003781a
mov rax, qword [0x18015f768]
mov qword [rsp + 0x40], rax
cmp rdi, rcx
jne 0x180037801
mov eax, ecx
jmp 0x18003780a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.180003e28
nop
mov ecx, 8
call fcn.1800d1934
xor edi, edi
cmp rax, rdi
je 0x180037835
lea rcx, [rsp + 0x48]
mov qword [rax], rcx
jmp 0x180037838
mov rax, rdi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180003ee8
mov rdx, rax
mov qword [rsp + 0x118], 7
mov qword [rsp + 0x110], rdi
mov word [rsp + 0x100], di
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0xf8]
call fcn.18002940c
nop
mov qword [rsp + 0xf0], 7
xor edi, edi
mov qword [rsp + 0xe8], rdi
mov word [rsp + 0xd8], di
lea r8d, [rdi + 1]
lea rdx, [0x18010d3c4]
lea rcx, [rsp + 0xd0]
call fcn.18002940c
nop
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.1800382a8
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
sub rdx, rcx
movabs rax, 0x6666666666666667
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x180037920
call fcn.1800d15f4
mov rcx, qword [rsp + 0x60]
cmp qword [rcx + 0x20], 8
jb 0x18003792d
mov rcx, qword [rcx + 8]
jmp 0x180037931
add rcx, 8
lea r8, [rsp + 0x88]
lea rdx, [0x18010d52c]
call fcn.1800d2014
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
sub rdx, rcx
movabs rax, 0x6666666666666667
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
ja 0x18003797d
call fcn.1800d15f4
mov rcx, qword [rsp + 0x60]
cmp qword [rcx + 0x48], 8
jb 0x18003798a
mov rcx, qword [rcx + 0x30]
jmp 0x18003798e
add rcx, 0x30
lea r8, [rsp + 0x38]
lea rdx, [0x18010d52c]
call fcn.1800d2014
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
sub rdx, rcx
movabs rax, 0x6666666666666667
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 2
ja 0x1800379d7
call fcn.1800d15f4
mov rcx, qword [rsp + 0x60]
cmp qword [rcx + 0x70], 8
jb 0x1800379e4
mov rcx, qword [rcx + 0x58]
jmp 0x1800379e8
add rcx, 0x58
lea r8, [rsp + 0x34]
lea rdx, [0x18010d52c]
call fcn.1800d2014
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
sub rdx, rcx
movabs rax, 0x6666666666666667
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 3
ja 0x180037a31
call fcn.1800d15f4
mov rcx, qword [rsp + 0x60]
cmp qword [rcx + 0x98], 8
jb 0x180037a44
mov rcx, qword [rcx + 0x80]
jmp 0x180037a48
sub rcx, 0xffffffffffffff80
lea r8, [rsp + 0x30]
lea rdx, [0x18010d52c]
call fcn.1800d2014
mov edx, dword [rsp + 0x88]
cmp edx, esi
jle 0x180037a77
mov dword [rsp + 0x3c], edx
mov r15d, dword [rsp + 0x38]
mov ebp, dword [rsp + 0x34]
mov ebx, dword [rsp + 0x30]
jmp 0x180037ab3
cmp edx, esi
jne 0x180037ab3
mov eax, dword [rsp + 0x38]
cmp eax, r15d
jle 0x180037a91
mov r15d, eax
mov ebp, dword [rsp + 0x34]
mov ebx, dword [rsp + 0x30]
jmp 0x180037ab3
cmp eax, r15d
jne 0x180037ab3
mov eax, dword [rsp + 0x34]
cmp eax, ebp
jle 0x180037aa6
mov ebp, eax
mov ebx, dword [rsp + 0x30]
jmp 0x180037ab3
cmp eax, ebp
jne 0x180037ab3
cmp dword [rsp + 0x30], ebx
cmovg ebx, dword [rsp + 0x30]
cmp qword [rsp + 0xf0], 8
jb 0x180037acb
mov rcx, qword [rsp + 0xd8]
call fcn.1800d1290
mov esi, 7
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xe8], rdi
mov word [rsp + 0xd8], di
cmp qword [rsp + 0x118], 8
jb 0x180037b00
mov rcx, qword [rsp + 0x100]
call fcn.1800d1290
mov qword [rsp + 0x118], rsi
mov qword [rsp + 0x110], rdi
mov word [rsp + 0x100], di
mov rcx, qword [rsp + 0x60]
cmp rcx, rdi
je 0x180037b73
mov rsi, qword [rsp + 0x68]
cmp rcx, rsi
je 0x180037b6e
lea rdi, [rcx + 0x20]
xor r13d, r13d
cmp qword [rdi], 8
jb 0x180037b42
mov rcx, qword [rdi - 0x18]
call fcn.1800d1290
mov qword [rdi], 7
mov qword [rdi - 8], r13
mov word [rdi - 0x18], r13w
add rdi, 0x28
lea rax, [rdi - 0x20]
cmp rax, rsi
jne 0x180037b33
mov rcx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x90]
xor edi, edi
call fcn.1800d1290
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x48]
call fcn.1800d1290
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
lea rax, [0x18015f758]
cmp rcx, rax
je 0x180037bb4
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jg 0x180037bb4
call fcn.1800d1434
cmp r13, rdi
jne 0x180037bc3
call fcn.1800d15f4
mov rdx, rdi
jmp 0x180037bc7
mov rdx, qword [r13]
cmp r14, qword [rdx + 0x20]
jb 0x180037bd2
call fcn.1800d15f4
add r14, 8
mov esi, dword [rsp + 0x3c]
jmp 0x18003778a
mov rax, qword [0x18015f768]
mov rdi, qword [rsp + 0xb0]
mov qword [rdi], rax
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebp
mov r9d, r15d
mov r8d, esi
lea rdx, str._d._d._d._d
mov rcx, rdi
call fcn.180008f64
nop
mov rcx, qword [rsp + 0xb8]
add rcx, 0xfffffffffffffff4
lea rbx, [0x18015f758]
cmp rcx, rbx
je 0x180037c45
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
xor esi, esi
cmp eax, esi
jg 0x180037c47
call fcn.1800d1434
jmp 0x180037c47
xor esi, esi
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
cmp rcx, rbx
je 0x180037c6a
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, esi
jg 0x180037c6a
call fcn.1800d1434
mov rax, rdi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1800d12b0
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret