Function at 0x140056920
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov qword [rsp + 0x38], rdx
mov rdi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xe8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x50], rax
movaps xmm6, xmmword [0x1402183e0]
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rdx, str.Next
lea r8, str..._.._base_files_file_enumerator_win.cc
lea r15, [rsp + 0x70]
mov rcx, r15
mov r9d, 0x82
call fcn.1400ed980
mov rcx, rbp
mov rdx, r15
xor r8d, r8d
call fcn.1400f44c0
lea r14, [rdi + 4]
lea r12, [rdi + 0x260]
lea rbx, [rdi + 0x280]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp byte [rdi], 0
je 0x140056a27
mov rcx, qword [rdi + 0x258]
mov rdx, r14
call rbp
test eax, eax
je 0x140056bf6
call r13
cmp qword [rdi + 0x258], 0xffffffffffffffff
jne 0x140056afd
mov byte [rdi], 0
cmp dword [rdi + 0x298], 0
lea rbx, [rdi + 0x280]
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x140056c37
cmp eax, 0x12
je 0x1400569d5
jmp 0x140056c82
mov rax, qword [rdi + 0x2c0]
cmp qword [rdi + 0x2b8], rax
je 0x140056c9c
test rax, rax
mov rcx, qword [rdi + 0x2b0]
cmove rax, rcx
dec rax
cmp rcx, rax
jb 0x140056d87
lea rdx, [rax + rax*2]
shl rdx, 3
add rdx, qword [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
mov rcx, r12
call fcn.140049590
lea rcx, [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.140057120
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
mov eax, dword [rdi + 0x298]
cmp eax, 1
je 0x140056c13
jmp 0x140056c4f
mov rcx, r12
mov rdx, r15
lea r8, [rsp + 0x40]
call fcn.1400ec880
cmp byte [rsp + 0x87], 0
mov rcx, r15
js 0x140056c2d
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], 0
mov edx, 1
mov r8, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [rdi + 0x258], rax
mov byte [rdi], 1
mov rcx, r15
call fcn.1400ec550
jmp 0x1400569ee
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
lea rcx, [rdi + 0x30]
mov qword [rsp + 0x60], rcx
test rcx, rcx
je 0x140056d8a
call fcn.140121344
mov qword [rsp + 0x68], rax
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.1400494b0
mov rcx, rdi
mov rdx, r15
call fcn.140077fa0
test al, al
jne 0x140056be2
mov ebp, dword [rdi + 4]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x40], xmm6
mov rcx, r12
lea rdx, [rsp + 0x40]
mov r8, r15
call fcn.14004ada0
test bpl, 0x10
jne 0x140056d2a
and ebp, 0x10
shr ebp, 4
mov rcx, rdi
mov edx, ebp
call fcn.140078100
test al, al
lea rbx, [rdi + 0x280]
je 0x140056d6e
mov eax, dword [rdi + 0x298]
cmp eax, 1
jne 0x140056cbf
cmp byte [rbx + 0x17], 0
mov rdx, rbx
js 0x140056d96
cmp byte [rsp + 0x87], 0
mov rcx, r15
jns 0x140056bce
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x140056cc7
jmp 0x140056d6e
mov rcx, r15
call fcn.1400ec550
lea rbx, [rdi + 0x280]
jmp 0x1400569ce
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi + 0x258], 0xffffffffffffffff
jmp 0x1400569ee
lea rax, [0x1402205d6]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
jmp 0x140056aa3
mov rcx, qword [rsp + 0x70]
jmp 0x140056ac4
cmp byte [rbx + 0x17], 0
js 0x140056cab
mov byte [rbx + 0x17], 1
mov rcx, rbx
mov dword [rcx], 0x2a
jmp 0x140056a1d
test eax, eax
jne 0x140056d9e
movzx eax, byte [rdi + 0x297]
test al, al
mov rcx, qword [rdi + 0x280]
cmovns rcx, rbx
mov qword [rsp + 0x40], rcx
cmovs rax, qword [rdi + 0x288]
mov qword [rsp + 0x48], rax
jmp 0x140056aa3
cmp dword [rdi + 0x29c], 0
je 0x1400569d5
mov ecx, eax
call fcn.140052440
mov dword [rdi + 0x2a0], eax
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140049430
jmp 0x140056cee
mov qword [rdi + 0x288], 1
mov rcx, qword [rdi + 0x280]
jmp 0x140056c44
test eax, eax
jne 0x140056d6e
lea rdi, [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
mov rdx, rdi
call fcn.140049450
mov rcx, rdi
call fcn.1400ec550
lea rcx, [rsp + 0x70]
call fcn.1400ec550
lea rcx, [rsp + 0x90]
call fcn.1400f4520
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140106490
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rdi + 0x278], 0
je 0x140056b81
cmp byte [rsp + 0x57], 0
lea rcx, [rsp + 0x40]
jns 0x140056d48
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x140056b81
lea rdx, [rsp + 0x40]
lea rcx, [rdi + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.140056ea0
jmp 0x140056b81
lea rcx, [rsp + 0x40]
call fcn.1400ec550
lea rcx, [rsp + 0x70]
call fcn.1400ec550
jmp 0x1400569ce
int3
mov qword [rsp + 0x68], 0
int3
mov rdx, qword [rbx]
jmp 0x140056bbc
lea rcx, [rsp + 0x70]
call fcn.140049430
jmp 0x140056ab3