Function at 0x14005a20c
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2b0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x250
or r12, 0xffffffffffffffff
call sub.msvcrt.dll_memset
xor esi, esi
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x40], rsi
call fcn.140030314
mov ebx, eax
test eax, eax
js 0x14005a659
mov rcx, qword [rsp + 0x40]
lea rdx, str.System_Volume_InformationWimMount
call fcn.14002f614
mov r15, rax
mov r14d, 0x80070000
test rax, rax
jne 0x14005a2d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14005a2f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14005a659
lea rdx, [0x14009ccc8]
mov rcx, r15
call fcn.14002f614
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14005a2fc
mov ebx, esi
jmp 0x14005a341
mov ebx, 0x80004005
jmp 0x14005a659
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14005a62f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14005a634
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14005a37d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14005a603
mov eax, 1
test eax, eax
je 0x14005a603
mov eax, dword [rsp + 0x50]
mov r13d, 1
test al, 0x10
je 0x14005a533
lea rcx, [rsp + 0x7c]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14005a3a5
cmp rax, 0x20
jne 0x14005a533
lea r8, [rsp + 0x30]
mov qword [rsp + 0x38], rsi
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x7c]
call fcn.140030994
mov r14, qword [rsp + 0x38]
mov ebx, eax
test eax, eax
js 0x14005a508
cmp dword [rsp + 0x30], 0x10
jne 0x14005a508
mov esi, 4
test r14, r14
je 0x14005a4e0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov edx, 0x20019
mov rcx, r14
call fcn.140055f9c
mov rdi, qword [rsp + 0x38]
mov ebx, eax
test eax, eax
jns 0x14005a42b
mov r9d, eax
mov r8d, 0x398
jmp 0x14005a488
lea r8, str.Status
mov rcx, rdi
call fcn.14000cdb0
mov esi, eax
test eax, eax
jne 0x14005a4a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14005a47a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14005a47f
mov ebx, 0x80004005
mov r9d, ebx
mov r8d, 0x3a1
and qword [rsp + 0x20], 0
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimagestore.c
lea rcx, str.StateStoreGetMountedImageStatus
call fcn.140046874
test rdi, rdi
je 0x14005a4b5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jns 0x14005a4d2
xor esi, esi
cmp ebx, 0x80070002
jne 0x14005a4ca
mov ebx, esi
mov r13d, esi
jmp 0x14005a508
mov r8d, 0x4e4
jmp 0x14005a4ed
xor r13d, r13d
cmp esi, 2
sete r13b
xor esi, esi
jmp 0x14005a508
mov ebx, 0x80070057
xor esi, esi
mov r8d, 0x4d6
mov r9d, ebx
mov qword [rsp + 0x20], rsi
lea rdx, str.onecore_base_ntsetupopktoolsosimagelibmountmountedimagestore.c
lea rcx, str.IsMountGuidStillValid
call fcn.140046874
test r14, r14
je 0x14005a52d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov r14d, 0x80070000
test ebx, ebx
js 0x14005a603
test r13d, r13d
jne 0x14005a5cf
lea rdx, [rsp + 0x7c]
mov rcx, r15
call fcn.14002f614
mov rdi, rax
test rax, rax
je 0x14005a560
mov ebx, esi
mov rsi, rax
jmp 0x14005a596
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14005a5fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14005a601
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.14000a9c4
test rsi, rsi
je 0x14005a5cd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor esi, esi
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
jmp 0x14005a382
mov ebx, 0x80004005
jmp 0x14005a603
xor esi, esi
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14005a634
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14005a634
mov ebx, 0x80004005
test r15, r15
je 0x14005a659
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp qword [rsp + 0x40], rsi
je 0x14005a682
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
cmp r12, 0xffffffffffffffff
je 0x14005a697
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140096bd0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret