Function at 0x10007e70
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x478
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov rax, qword [0x10071c30]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov qword [r11 - 0x398], 0
mov edx, 0x208
lea rcx, [r11 - 0x398]
call fcn.10009f90
nop
mov rax, qword [rsp + 0xe0]
mov word [rax], 0
mov rdx, qword [rsp + 0xe0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
cmp eax, 0x104
jbe 0x10008019
mov rdi, rbx
xor ecx, ecx
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
setb cl
test ecx, ecx
jne 0x10007f29
mov ecx, 0x80004005
call fcn.100013a0
int3
add rdi, rdi
mov rax, qword [rsp + 0xe0]
test rax, rax
jne 0x10007f6c
cmp rdi, 0x104
jbe 0x10007f57
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.10009f90
jmp 0x10007ffc
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xe0], rax
jmp 0x10007ffc
cmp rdi, 0x104
jbe 0x10007fec
lea rcx, [rsp + 0xe8]
cmp rax, rcx
jne 0x10007fda
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.10009f90
mov r9d, 0x104
lea r8, [rsp + 0xe8]
mov rdx, rdi
mov rcx, qword [rsp + 0xe0]
call fcn.10036fb0
test eax, eax
je 0x10007ffc
cmp eax, 0xc
je 0x10007fd4
cmp eax, 0x16
je 0x10007fce
cmp eax, 0x22
je 0x10007fce
cmp eax, 0x50
je 0x10007ffc
call fcn.10014a90
int3
call fcn.10014a90
int3
call fcn.10014a48
int3
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.10009fc0
jmp 0x10007ffc
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov word [rax], 0
mov rdx, qword [rsp + 0xe0]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rbp, 0xffffffffffffffff
mov rdx, qword [rsp + 0xe0]
test rdx, rdx
jne 0x10008031
xor ecx, ecx
jmp 0x10008043
xor eax, eax
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsi + 0x210]
call fcn.1000a000
xor edx, edx
mov rcx, rsi
call fcn.100199b0
call fcn.100148b8
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1000807b
mov ecx, 0x80004005
call fcn.100013a0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
xor eax, eax
mov rcx, rbp
lea rdi, str._TABLE_border1_cols4_width100___n_THEAD__TR__TD_width20_nbsp___TD__TD_File_Name__TD__TD_Size__TD__TD_Modified__TD___TR___THEAD_
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str._TABLE_border1_cols4_width100___n_THEAD__TR__TD_width20_nbsp___TD__TD_File_Name__TD__TD_Size__TD__TD_Modified__TD___TR___THEAD_
lea rcx, [rsp + 0x40]
call fcn.1000a000
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
lea r8, [0x1005eec8]
lea rdx, str.fileList
mov rcx, rsi
call fcn.1000f198
cmp qword [rsp + 0x50], 0
jne 0x10008127
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x100080ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0xe0], rax
je 0x10008782
lea rcx, [rsp + 0xe0]
call fcn.10009ff0
jmp 0x10008782
lea r8, str..
lea rdx, [rsi + 0x210]
lea rcx, [rsp + 0x60]
call fcn.10009b20
nop
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x100081da
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x10008182
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10008193
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x100081b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0xe0], rax
je 0x10008782
lea rcx, [rsp + 0xe0]
call fcn.10009ff0
jmp 0x10008782
call fcn.10016640
mov rcx, qword [rax + 8]
call fcn.1000b5d4
nop
call fcn.100148b8
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x10008208
mov ecx, 0x80004005
call fcn.100013a0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
call fcn.100148b8
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x10008239
mov ecx, 0x80004005
call fcn.100013a0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x58], rsi
lea rbx, str.folder
nop
nop
nop
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x204]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x1000876e
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1000875a
movzx eax, word [rsp + 0x78]
cmp ax, 0x76c
jae 0x100082ab
xor eax, eax
jmp 0x1000836d
movzx edx, word [rsp + 0x84]
movzx edi, word [rsp + 0x82]
movzx r8d, word [rsp + 0x80]
movzx r9d, word [rsp + 0x7e]
movzx ecx, word [rsp + 0x7a]
movzx r10d, ax
xor eax, eax
cmp r10d, 0x76c
setge al
test eax, eax
je 0x1000874f
add ecx, 0xffffffff
cmp ecx, 0xb
ja 0x10008744
lea eax, [r9 - 1]
cmp eax, 0x1e
ja 0x10008739
cmp r8d, 0x17
ja 0x1000872e
cmp edi, 0x3b
ja 0x10008723
cmp edx, 0x3b
ja 0x10008718
mov dword [rsp + 0xa0], edx
mov dword [rsp + 0xa4], edi
mov dword [rsp + 0xa8], r8d
mov dword [rsp + 0xac], r9d
mov dword [rsp + 0xb0], ecx
lea eax, [r10 - 0x76c]
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xc0], ebp
lea rcx, [rsp + 0xa0]
call fcn.10036180
cmp rax, 0xffffffffffffffff
je 0x1000870d
mov qword [rsp + 0x68], rax
lea r8, str._A___B__d___Y
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x68]
call fcn.100015f0
nop
mov rdx, qword [rax]
lea rdi, [rdx - 0x18]
add rsi, 0xffffffffffffffe8
cmp rdi, rsi
je 0x1000844c
cmp dword [rsi + 0x10], 0
jl 0x1000843d
mov rcx, qword [rdi]
cmp rcx, qword [rsi]
jne 0x1000843d
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x100083d4
cmp rax, qword [rdi]
jne 0x100083d4
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x10008411
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x1000855a
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.10036fb0
mov eax, ebp
lock xadd dword [rsi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1000842b
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x58], rax
lea rbx, str.folder
jmp 0x1000844c
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.1000a000
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1000846f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test byte [rsp + 0x1f0], 0x10
lea r8, str.file
cmovne r8, rbx
mov rsi, qword [rsp + 0x58]
mov qword [rsp + 0x30], rsi
mov eax, dword [rsp + 0x210]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x21c]
mov qword [rsp + 0x20], rax
mov r9, r8
lea rdx, str._TR__TD_width20__IMG_src_s.gif___TD__TD__SPAN_class_s__s__SPAN___TD__TD__lu__TD__TD__s__TD___TR_
lea rcx, [rsp + 0x70]
call fcn.1000a460
mov r13, qword [rsp + 0x70]
movsxd r15, dword [r13 - 0x10]
mov r12, r13
mov rbx, qword [rsp + 0x40]
sub r12, rbx
sar r12, 1
mov r14d, dword [rbx - 0x10]
lea edi, [r14 + r15]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x100084f9
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1000a170
mov rbx, qword [rsp + 0x40]
cmp r12, r14
ja 0x10008502
lea r13, [rbx + r12*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rbx + r14*2]
mov r9, rdx
mov r8, r13
call fcn.10036fb0
test edi, edi
js 0x10008702
cmp edi, dword [rbx - 0xc]
jg 0x10008702
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10008560
lea rbx, str.folder
jmp 0x10008260
call fcn.1000a340
nop
xor eax, eax
mov rcx, rbp
lea r13, str.__TABLE_
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov r12, r13
sub r12, rbx
sar r12, 1
mov r14d, dword [rbx - 0x10]
lea edi, [r14 + rcx - 1]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x100085ad
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1000a170
mov rbx, qword [rsp + 0x40]
cmp r12, r14
ja 0x100085b6
lea r13, [rbx + r12*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rbx + r14*2]
mov r9, rdx
mov r8, r13
call fcn.10036fb0
test edi, edi
js 0x100086f7
cmp edi, dword [rbx - 0xc]
jg 0x100086f7
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0xc8], rax
test rax, rax
jne 0x1000861a
mov ecx, 0x8007000e
call fcn.100013a0
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x1c8]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x10008652
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x10008673
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.100017c0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1000869f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x100086b0
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x100086cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rsp + 0xe8]
cmp qword [rsp + 0xe0], rax
je 0x10008782
lea rcx, [rsp + 0xe0]
call fcn.10009ff0
jmp 0x10008782
mov ecx, 0x80070057
call fcn.100013a0
int3
mov ecx, 0x80070057
call fcn.100013a0
int3
mov ecx, 0x80070057
call fcn.100013a0
int3
mov ecx, 0x80004005
call fcn.100013a0
int3
mov ecx, 0x80004005
call fcn.100013a0
int3
mov ecx, 0x80004005
call fcn.100013a0
int3
mov ecx, 0x80004005
call fcn.100013a0
int3
mov ecx, 0x80004005
call fcn.100013a0
int3
mov ecx, 0x80004005
call fcn.100013a0
int3
mov qword [rsp + 0x68], 0
mov ecx, 0x80070057
call fcn.100013a0
int3
mov qword [rsp + 0x68], 0
mov ecx, 0x80070057
call fcn.100013a0
nop
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.10035bb0
mov rbx, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x490]
mov rsi, qword [rsp + 0x498]
mov rdi, qword [rsp + 0x470]
mov r12, qword [rsp + 0x468]
mov r13, qword [rsp + 0x460]
mov r14, qword [rsp + 0x458]
mov r15, qword [rsp + 0x450]
add rsp, 0x478
ret