Function at 0x100dfbc
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x800
mov rax, qword [0x0101c380]
xor rax, rsp
mov qword [rsp + 0x7f0], rax
mov rax, qword [rsp + 0x860]
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x2e0]
mov ebx, r9d
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov qword [rsp + 0x68], rax
mov r14, r8
sub rdx, r8
mov dword [rsp + 0x30], ebx
mov rcx, r8
mov al, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
test al, al
jne 0x100e017
or rsi, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x2e0]
mov rcx, rsi
lea rbp, [0x010064c0]
repne scasb al, byte [rdi]
xor ecx, ecx
mov al, byte [rcx + rbp]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x100e03f
xor eax, eax
lea rdi, [rsp + 0x2e0]
mov rcx, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [0x010064c4]
mov al, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x100e065
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, rsi
je 0x100e337
lea r13, [rsp + 0x1d0]
sub r13, r14
mov rcx, r14
mov al, byte [rcx]
mov byte [r13 + rcx], al
inc rcx
test al, al
jne 0x100e0a3
xor eax, eax
lea rdi, [rsp + 0x1d0]
mov rcx, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
mov al, byte [rcx + rbp]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x100e0c2
xor eax, eax
lea rdi, [rsp + 0x1d0]
mov rcx, rsi
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0xbc]
mov al, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x100e0e9
cmp dword [rsp + 0x868], 0
jne 0x100e118
lea rcx, [rsp + 0x1d0]
mov edx, ebx
call fcn.0100db4c
test eax, eax
je 0x100e315
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x1d0]
xor ebp, ebp
and qword [rsp + 0x38], rbp
call fcn.0100de38
test eax, eax
je 0x100e30e
mov rbx, qword [rsp + 0x38]
mov rsi, rbx
test rbx, rbx
je 0x100e23b
xor r9d, r9d
lea rcx, [rsp + 0x1d0]
xor edx, edx
lea r8d, [r9 + 2]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x100e208
lea rdx, [rsi + 8]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x100e1ff
jmp 0x100e1a9
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
and qword [rsp + 0x20], rbp
lea r8, [rsp + 0x3f0]
lea rcx, [rsp + 0x50]
mov r9d, 0x400
mov edx, 2
call qword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x100e1eb
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x3f0]
call fcn.0100e36c
test eax, eax
jne 0x100e215
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x100e189
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov rsi, qword [rsi]
test rsi, rsi
je 0x100e223
jmp 0x100e14a
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ebp, 1
test rbx, rbx
je 0x100e23b
mov rdi, qword [rbx]
mov rcx, rbx
call fcn.0101226c
mov rbx, rdi
test rdi, rdi
jne 0x100e228
test ebp, ebp
je 0x100e306
mov ecx, 1
mov edx, 0x408
mov r15d, ecx
call fcn.01012368
lea rcx, [rsp + 0x1d0]
mov rdi, rax
lea rax, [rsp + 0x1d0]
mov rdx, rdi
sub rdx, rax
mov al, byte [rcx]
inc rcx
mov byte [rdx + rcx + 7], al
test al, al
jne 0x100e26e
mov rbx, qword [rsp + 0x68]
lea rcx, [rsp + 0x1d0]
mov edx, 0x2e
mov rax, qword [rbx]
mov qword [rdi], rax
mov qword [rbx], rdi
call fcn.01014e78
or rsi, 0xffffffffffffffff
mov byte [rax], 0
xor eax, eax
lea rdi, [rsp + 0x1d0]
mov rcx, rsi
lea rdx, [0x01006880]
repne scasb al, byte [rdi]
xor ecx, ecx
mov al, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x100e2ba
mov edx, 0x408
mov rcx, r15
call fcn.01012368
lea rcx, [rsp + 0x1d0]
mov rdx, rax
lea rax, [rsp + 0x1d0]
mov rdi, rdx
sub rdi, rax
mov al, byte [rcx]
inc rcx
mov byte [rdi + rcx + 7], al
test al, al
jne 0x100e2ee
mov rax, qword [rbx]
mov qword [rdx], rax
mov qword [rbx], rdx
jmp 0x100e30a
or rsi, 0xffffffffffffffff
mov ebx, dword [rsp + 0x30]
lea rbp, [0x010064c0]
lea rdx, [rsp + 0x90]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100e0a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, r15d
mov rcx, qword [rsp + 0x7f0]
xor rcx, rsp
call fcn.0100f170
mov rbx, qword [rsp + 0x850]
add rsp, 0x800
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret