Function at 0x140002068
Capabilities:
Enumerate files on windows
Get common file path
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xbf0]
sub rsp, 0xcf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xbe0], rax
mov qword [rsp + 0x48], r8
mov r12d, 0x208
mov qword [rsp + 0x58], rdx
mov r8d, r12d
mov dword [rsp + 0x44], ecx
xor edx, edx
lea rcx, [rbp + 0x9d0]
xor ebx, ebx
call fcn.140003d50
mov r15d, 0x104
lea rcx, [rbp + 0x9d0]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, r12d
lea rcx, [rbp + 0x1b0]
xor edx, edx
call fcn.140003d50
mov r8d, r12d
lea rcx, [rbp + 0x7c0]
xor edx, edx
call fcn.140003d50
lea r8, [rbp + 0x9d0]
mov edx, r15d
lea rcx, [rbp + 0x7c0]
call fcn.140004904
lea r8, str..dll
mov edx, r15d
lea rcx, [rbp + 0x7c0]
call fcn.140004904
xor edx, edx
lea r8d, [r12 + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140003d50
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x50], rax
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140002380
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000234a
mov edi, ebx
lea rsi, str.advapi32.dll
mov rdx, qword [rsi]
lea rcx, [rbp - 0x74]
call fcn.140004984
test eax, eax
je 0x14000234a
inc edi
add rsi, 8
cmp edi, 0x3a
jb 0x140002174
mov r8, r12
lea rcx, [rbp + 0x1b0]
xor edx, edx
call fcn.140003d50
lea r8, [rbp + 0x9d0]
mov rdx, r15
lea rcx, [rbp + 0x1b0]
call fcn.140004904
lea r8, [0x140015b20]
mov rdx, r15
lea rcx, [rbp + 0x1b0]
call fcn.140004904
lea r8, [rbp - 0x74]
mov rdx, r15
lea rcx, [rbp + 0x1b0]
call fcn.140004904
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x1b0]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r13d, ebx
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140002344
xor edx, edx
lea rcx, [rbp + 0x3c0]
mov r8d, 0x400
call fcn.140003d50
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov r8d, 0x400
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x3c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002336
cmp dword [rsp + 0x40], 0x400
jne 0x140002336
mov eax, 0x5a4d
cmp word [rbp + 0x3c0], ax
jne 0x140002336
movsxd rdi, dword [rbp + 0x3fc]
cmp dword [rbp + rdi + 0x3c0], 0x4550
jne 0x140002336
mov eax, 0x2000
test word [rbp + rdi + 0x3d6], ax
je 0x140002336
mov eax, 0x8664
cmp word [rbp + rdi + 0x3c4], ax
jne 0x140002336
lea r15, [rbp + rdi + 0x4c8]
mov esi, ebx
mov r14, rbx
cmp bx, word [rbp + rdi + 0x3c6]
jae 0x14000232b
movsxd rax, esi
lea rdx, str..text
lea rcx, [rax + rax*4]
lea rcx, [r15 + rcx*8]
call fcn.140004b10
test eax, eax
je 0x140002300
movzx eax, word [rbp + rdi + 0x3c6]
inc esi
inc r14
cmp esi, eax
jl 0x1400022d2
jmp 0x14000232b
mov eax, dword [rsp + 0x44]
lea rcx, [r14 + r14*4]
add eax, 0x800
cmp dword [r15 + rcx*8 + 8], eax
jb 0x14000232b
mov eax, dword [r15 + rcx*8 + 0xc]
mov r13d, 1
mov rcx, qword [rsp + 0x48]
add eax, 0x800
mov dword [rcx], eax
mov r14, qword [rsp + 0x50]
mov r15d, 0x104
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
jne 0x140002361
mov r12d, 0x208
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140002377
jmp 0x140002158
mov rcx, qword [rsp + 0x58]
lea r8, [rbp - 0x74]
mov rdx, r15
call fcn.140004880
mov ebx, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0xbe0]
xor rcx, rsp
call fcn.140002b90
mov rbx, qword [rsp + 0xd30]
add rsp, 0xcf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret