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

Disassembly:
mov rax, rsp
sub rsp, 0x308
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x2c0], rax
mov r12, r8
mov rbp, rdx
mov r14, rcx
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x28]
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x10003fe32
mov edx, 0x105
lea rcx, [rsp + 0x28]
call fcn.1000140c0
mov rdi, qword [rsp + 0x28]
cmp dword [rdi - 0xc], 0x105
jge 0x10003fe46
mov ecx, 0x80070057
call fcn.100013860
int3
mov dword [rdi - 0x10], 0x105
mov rax, qword [rsp + 0x28]
mov word [rax + 0x20a], 0
mov rax, qword [rsp + 0x28]
mov edx, dword [rax - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x10003fedd
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10003fe97
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10003feb7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x100040494
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100040494
mov rsi, 0xffffffffffffffff
mov rdx, qword [rsp + 0x28]
test rdx, rdx
jne 0x10003fef2
xor ecx, ecx
jmp 0x10003ff0b
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
test ecx, ecx
js 0x100040489
cmp ecx, dword [rdx - 0xc]
jg 0x100040489
mov dword [rdx - 0x10], ecx
movsxd rdx, ecx
mov rax, qword [rsp + 0x28]
mov word [rax + rdx*2], 0
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x100004d80]
test rdx, 0xffffffffffff0000
jne 0x10003ff72
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1000138a0
test rax, rax
je 0x10003ff8f
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1000149f0
jmp 0x10003ff8f
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.100014b20
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.100048450
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10003ffc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10004003b
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10003fff5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100040015
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x100040494
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100040494
lea r8, [0x1000074a0]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.100016420
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x20]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x1000400ae
cmp dword [rdi + 0x10], 0
jl 0x10004009f
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x10004009f
call fcn.100014130
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x100040094
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x1000400ae
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.100014b20
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000400cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x70]
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x100040150
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100040109
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100040129
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x100040494
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100040494
mov eax, dword [rsp + 0x70]
test al, 0x10
je 0x10004028f
lea rdx, [0x100007498]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10004028b
lea rdx, [0x100007490]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10004028b
lea r8, [0x10000748c]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.100016420
nop
lea r8, [rsp + 0x9c]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.100016420
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x10004021a
cmp dword [rdi + 0x10], 0
jl 0x10004020b
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x10004020b
call fcn.100014130
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x100040200
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x10004021a
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.100014b20
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10004023a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100040259
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r9d, r9d
mov r8, qword [rbp + 8]
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call fcn.10001b1c0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x10004027e
mov qword [rcx], rax
jmp 0x100040282
mov qword [rbp], rax
mov qword [rbp + 8], rax
jmp 0x10004040a
mov eax, dword [rsp + 0x70]
test al, 0x10
jne 0x10004040a
lea rcx, [0x100007480]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x10004040a
lea rcx, [0x100007480]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub eax, ebx
cdqe
lea rcx, [rsp + rax*2 + 0x9c]
lea rdx, [0x100007480]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004040a
lea rdx, [0x100007468]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10004040a
lea r8, [0x10000748c]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.100016420
nop
lea r8, [rsp + 0x9c]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.100016420
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x10004039b
cmp dword [rdi + 0x10], 0
jl 0x10004038c
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x10004038c
call fcn.100014130
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x100040381
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x10004039b
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.100014b20
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000403bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000403da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r9d, r9d
mov r8, qword [r12 + 8]
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
mov rcx, r12
call fcn.10001b1c0
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x100040401
mov qword [rcx], rax
jmp 0x100040405
mov qword [r12], rax
mov qword [r12 + 8], rax
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100040150
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10004044a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x10004046a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x100040494
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x100040494
mov ecx, 0x80070057
call fcn.100013860
nop
mov rcx, qword [rsp + 0x2c0]
call fcn.100087ed0
mov rbx, qword [rsp + 0x328]
mov rbp, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x2f8]
mov rdi, qword [rsp + 0x2f0]
mov r12, qword [rsp + 0x2e8]
mov r13, qword [rsp + 0x2e0]
mov r14, qword [rsp + 0x2d8]
add rsp, 0x308
ret