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

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x940
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x920], rax
mov rbp, rcx
mov edx, 0x208
lea rcx, [rsp + 0x510]
mov r15, r8
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400037a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectoryW:__d_n
call fcn.140001d70
xor eax, eax
jmp 0x1400039f5
mov qword [rsp + 0x968], rbx
lea r8, str..dll
mov qword [rsp + 0x970], rdi
lea rcx, [rsp + 0x510]
mov qword [rsp + 0x978], r12
mov edx, 0x208
mov qword [rsp + 0x938], r13
mov qword [rsp + 0x930], r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400039cb
mov r12d, 0x5a4d
mov r13d, 0x20b
nop word [rax + rax]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400039ac
mov edx, 0x208
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140003a18
lea r8, [0x140008fa8]
mov edx, 0x208
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x9c]
mov edx, 0x208
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x40], esi
mov rcx, rbp
mov dword [rsp + 0x20], 3
mov rdi, rsi
lea r8d, [r9 + 1]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
jne 0x1400038d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFileW_error_:_0x_x
call fcn.140001d70
jmp 0x1400039ac
xor edx, edx
lea rcx, [rsp + 0x2c0]
mov r8d, 0x248
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x48]
mov r8d, 0x248
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x2c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jns 0x14000392f
mov edx, eax
lea rcx, str.NtReadFile:_0x_x_n
call fcn.140001d70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400039ac
movsxd rax, dword [rsp + 0x2fc]
cmp eax, 0x100
jg 0x14000395e
cmp word [rsp + 0x2c0], r12w
jne 0x14000399e
lea rcx, [rsp + 0x2c0]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000399e
jmp 0x140003994
mov dword [rsp + 0x58], eax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r8d, 0x248
lea rdx, [rsp + 0x2c0]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
js 0x140003916
lea rcx, [rsp + 0x2c0]
cmp word [rcx + 0x18], r13w
jne 0x14000399e
mov edi, dword [rcx + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r15, rdi
jb 0x140003a11
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003820
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov r13, qword [rsp + 0x938]
mov r12, qword [rsp + 0x978]
mov rdi, qword [rsp + 0x970]
mov rbx, qword [rsp + 0x968]
mov r14, qword [rsp + 0x930]
mov rcx, qword [rsp + 0x920]
xor rcx, rsp
call fcn.140006450
add rsp, 0x940
pop r15
pop rsi
pop rbp
ret
mov esi, 1
jmp 0x1400039c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectoryW:__d_n
call fcn.140001d70
xor eax, eax
jmp 0x1400039cd