Function at 0x14004f420
Capabilities:
Enumerate files on windows
Get common file path
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov qword [rsp + 0x50], r9
mov rsi, r8
mov r13, rdx
mov qword [rsp + 0x78], rdx
mov r12, rcx
mov qword [rbp - 0x80], rcx
mov rax, qword [rbp + 0x600]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x608]
mov qword [rsp + 0x48], rax
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.140043700
nop
mov edx, 1
mov rcx, r12
call fcn.140043bd0
mov edx, 0x104
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rbp + 0x360]
call fcn.140045f40
xor r14d, r14d
mov ecx, r14d
movzx eax, byte [rbp + rcx + 0x360]
mov byte [rbp + rcx + 0x250], al
lea rcx, [rcx + 1]
test al, al
jne 0x14004f4c1
lea rcx, [rbp + 0x250]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x14004f4e2
mov eax, dword [0x1401038d0]
mov dword [rcx], eax
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f74f
test byte [rbp - 0x30], 0x10
je 0x14004f720
movzx ecx, byte [rbp - 4]
movzx eax, byte [rbp - 3]
cmp cl, byte [0x140101908]
jne 0x14004f537
cmp al, byte [0x140101909]
je 0x14004f720
cmp cl, byte [0x1401038d4]
jne 0x14004f557
cmp al, byte [0x1401038d5]
jne 0x14004f557
movzx eax, byte [rbp - 2]
cmp al, byte [0x1401038d6]
je 0x14004f720
mov edx, 0x104
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rbp + 0x360]
call fcn.140045f40
lea rcx, [rbp + 0x360]
dec rcx
nop
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x14004f580
lea r8, [rbp - 4]
xor edx, edx
nop
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14004f590
lea rcx, [rbp + 0x360]
call fcn.140045f40
mov rcx, r14
nop
movzx eax, byte [rbp + rcx + 0x360]
mov byte [rbp + rcx + 0x250], al
lea rcx, [rcx + 1]
test al, al
jne 0x14004f5b0
lea rcx, [rbp + 0x250]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x14004f5d1
movups xmm0, xmmword [str.microsoft..32.dll]
movups xmmword [rcx], xmm0
mov eax, dword [0x1400d4ca8]
mov dword [rcx + 0x10], eax
movzx eax, byte [0x1400d4cac]
mov byte [rcx + 0x14], al
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f720
nop dword [rax + rax]
test byte [rbp + 0x110], 0x10
jne 0x14004f6eb
cmp byte [rbp + 0x13c], 0x2e
je 0x14004f6eb
mov rcx, r14
nop dword [rax]
movzx eax, byte [rbp + rcx + 0x360]
mov byte [rbp + rcx + 0x250], al
lea rcx, [rcx + 1]
test al, al
jne 0x14004f640
lea rax, [rbp + 0x250]
dec rax
lea rax, [rax + 1]
cmp byte [rax], r14b
jne 0x14004f661
lea r8, [rbp + 0x13c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14004f680
lea rax, [rbp + 0x250]
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], r14b
jne 0x14004f6a0
inc rcx
call fcn.140063b18
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x250]
mov r8, rax
sub r8, rcx
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [r8 + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14004f6d0
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140043960
xor edx, edx
mov r8d, 0x140
lea rcx, [rbp + 0x110]
call fcn.140065dd0
lea rdx, [rbp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14004f620
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov r8d, 0x140
lea rcx, [rbp - 0x30]
call fcn.140065dd0
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14004f511
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edx, 0x104
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp + 0x360]
call fcn.140045f40
test rsi, rsi
je 0x14004f83b
mov r8, qword [rsi]
test r8, r8
je 0x14004f83b
mov rcx, r14
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x360]
mov byte [rbp + rcx + 0x250], al
lea rcx, [rcx + 1]
test al, al
jne 0x14004f790
lea rcx, [rbp + 0x250]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x14004f7b1
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14004f7c0
lea rax, [rbp + 0x250]
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], r14b
jne 0x14004f7e0
inc rcx
call fcn.140063b18
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x250]
mov r8, rax
sub r8, rcx
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [r8 + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14004f810
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140043960
add rsi, 8
mov r8, qword [rsi]
test r8, r8
jne 0x14004f782
mov r15d, r14d
nop
lea rcx, [rbp - 0x68]
call fcn.140043d80
test eax, eax
je 0x14004f974
test r15d, r15d
jle 0x14004f861
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r15d
mov dword [rsp + 0x40], r15d
lea rcx, [rbp - 0x68]
call fcn.140043de0
mov rbx, rax
test rax, rax
je 0x14004f96a
xor r15d, r15d
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140043e40
mov r14, rax
mov rcx, rbx
call fcn.140043dd0
mov rdi, rax
test rax, rax
je 0x14004f94a
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14004f959
mov byte [rbp + 0x250], r15b
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 0x104
lea rdx, [rbp + 0x250]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbp + 0x250], 0x4d
jne 0x14004f91a
cmp byte [rbp + 0x251], 0x5a
je 0x14004f942
mov byte [rbp + 0x353], r15b
mov rdx, r13
lea rcx, [rbp + 0x250]
call fcn.1400650cc
test rax, rax
je 0x14004f942
mov rdx, rdi
mov rcx, r12
call fcn.140043960
jmp 0x14004f94a
mov rcx, rdi
call fcn.140063b20
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140043f40
mov rbx, r14
test r14, r14
jne 0x14004f881
mov r15d, dword [rsp + 0x40]
cmp r15d, 0x32
jl 0x14004f840
mov edx, 1
lea rcx, [rbp - 0x68]
call fcn.140043bd0
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x14004fcd3
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14004fcd3
mov rcx, r12
call fcn.140043d80
cmp eax, 1
jbe 0x14004fcd3
mov rcx, r12
call fcn.140043de0
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14004fcd3
nop dword [rax + rax]
mov rdx, rdi
mov rcx, r12
call fcn.140043e40
mov r14, rax
mov qword [rsp + 0x70], rax
mov rcx, rdi
call fcn.140043dd0
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14004fcbd
mov byte [rbp + 0x470], 0
mov ecx, 0x148
call fcn.140036960
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14004fa30
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.1400405b0
mov rbx, rax
xor ecx, ecx
jmp 0x14004fa34
xor ecx, ecx
mov ebx, ecx
test rbx, rbx
je 0x14004fac3
mov rax, qword [rbx]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x104
lea rcx, [rbp + 0x470]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8, r15
mov rdx, r13
mov rcx, rbx
call qword [rax + 0x10]
cmp byte [rbp + 0x470], 0
jne 0x14004fab6
mov rax, qword [rbx]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x104
lea rcx, [rbp + 0x470]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8, qword [rsp + 0x60]
mov rdx, r13
mov rcx, rbx
call qword [rax + 0x10]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
cmp byte [rbp + 0x470], 0
je 0x14004fca2
lea rcx, [0x1400b8b78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x78], rax
test rax, rax
je 0x14004fafd
lea rcx, [rbp - 0x70]
call rax
nop
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
lea rcx, [rbp + 0x470]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14004fc64
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
je 0x14004fc4f
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x14004fc39
lea edx, [rbx + 0x5c]
mov rcx, rsi
call fcn.140064f8c
lea rcx, [rax + 1]
mov r14, rsi
test rax, rax
cmovne r14, rcx
or rsi, 0xffffffffffffffff
nop
inc rsi
cmp byte [r14 + rsi], bl
jne 0x14004fba0
inc rsi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
sub rdi, rsi
mov rbx, r13
je 0x14004fc07
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140066110
test eax, eax
jne 0x14004fbfe
cmp rdi, 0x104
jbe 0x14004fbfe
add rbx, 0x20
sub rdi, 0x20
cmp byte [rbx], al
jne 0x14004fbfe
lea rdx, [rbx + 1]
mov r8d, 0x80
mov rcx, rbx
call fcn.140066110
test eax, eax
je 0x14004fc07
inc rbx
sub rdi, 1
jne 0x14004fbc1
movzx eax, byte [rbp + 0x470]
test rdi, rdi
mov ecx, 0
cmove eax, ecx
mov byte [rbp + 0x470], al
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
jmp 0x14004fc3f
mov byte [rbp + 0x470], bl
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x78]
jmp 0x14004fc55
mov byte [rbp + 0x470], bl
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rbp - 0x80]
jmp 0x14004fc6a
mov byte [rbp + 0x470], bl
cmp qword [rbp - 0x78], 0
je 0x14004fc99
lea rcx, [0x1400b8b78]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004fc99
mov rcx, qword [rbp - 0x70]
call rax
cmp byte [rbp + 0x470], 0
jne 0x14004fcb8
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call fcn.140043f40
mov rcx, rsi
call fcn.140063b20
mov rbx, qword [rsp + 0x48]
mov rdi, r14
mov qword [rsp + 0x40], r14
test r14, r14
mov r15, qword [rsp + 0x50]
jne 0x14004f9d0
mov rcx, r12
call fcn.140043d80
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.140043750
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140063ed0
add rsp, 0x698
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret