Function at 0x140003760
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 [0x14000c008]
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 0x1400037b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectoryW:__d_n
call fcn.140001d40
xor eax, eax
jmp 0x140003a05
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 0x1400039db
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 0x1400039bc
mov edx, 0x208
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140003a28
lea r8, [0x140008f68]
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 0x1400038e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFileW_error_:_0x_x
call fcn.140001d40
jmp 0x1400039bc
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 0x14000393f
mov edx, eax
lea rcx, str.NtReadFile:_0x_x_n
call fcn.140001d40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400039bc
movsxd rax, dword [rsp + 0x2fc]
cmp eax, 0x100
jg 0x14000396e
cmp word [rsp + 0x2c0], r12w
jne 0x1400039ae
lea rcx, [rsp + 0x2c0]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400039ae
jmp 0x1400039a4
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 0x140003926
lea rcx, [rsp + 0x2c0]
cmp word [rcx + 0x18], r13w
jne 0x1400039ae
mov edi, dword [rcx + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r15, rdi
jb 0x140003a21
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140003830
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.140006410
add rsp, 0x940
pop r15
pop rsi
pop rbp
ret
mov esi, 1
jmp 0x1400039d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectoryW:__d_n
call fcn.140001d40
xor eax, eax
jmp 0x1400039dd