Function at 0x140006960
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
movzx eax, byte [rcx]
xor ebx, ebx
mov rsi, rcx
mov edi, ebx
mov edx, ebx
lea r14d, [rbx + 1]
test al, al
je 0x1400069be
cmp al, 0x5c
je 0x1400069aa
cmp al, 0x2f
jne 0x1400069ac
inc edx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x1400069a2
cmp edx, 2
cmove edi, r14d
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x280
call fcn.14000fe80
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov r8d, r14d
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140006c13
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8008
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov r8d, 0x20
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8028
mov rcx, rsi
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x60]
lea rdx, [rbp - 0x50]
mov r8d, 0x20
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x813e
mov rcx, rsi
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x60]
lea rdx, [rbp - 0x10]
mov r8d, 0x80
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x81be
mov rcx, rsi
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x60]
lea rdx, [rbp + 0xf0]
mov r8d, 0x80
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [rax + rax]
cmp dword [rsp + rbx*4 + 0x40], 0
je 0x140006c13
inc rbx
cmp rbx, 4
jl 0x140006af0
or rax, 0xffffffffffffffff
lea rdx, [rsp + 0x70]
mov rcx, rax
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140006b10
test rcx, rcx
je 0x140006b3e
lea r8, [rsp + 0x70]
movzx edx, byte [r8 + rcx - 1]
cmp dl, 0x20
je 0x140006b33
cmp dl, 9
jne 0x140006b3e
mov byte [r8 + rcx - 1], 0
dec rcx
jne 0x140006b23
lea rdx, [rbp - 0x50]
mov rcx, rax
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140006b45
test rcx, rcx
je 0x140006b6b
cmp byte [rbp + rcx - 0x51], 0x20
je 0x140006b61
cmp byte [rbp + rcx - 0x51], 9
jne 0x140006b6b
mov byte [rbp + rcx - 0x51], 0
dec rcx
jne 0x140006b53
lea rdx, [rbp - 0x10]
mov rcx, rax
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140006b72
test rcx, rcx
je 0x140006b98
cmp byte [rbp + rcx - 0x11], 0x20
je 0x140006b8e
cmp byte [rbp + rcx - 0x11], 9
jne 0x140006b98
mov byte [rbp + rcx - 0x11], 0
dec rcx
jne 0x140006b80
lea rcx, [rbp + 0xf0]
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140006ba0
test rax, rax
je 0x140006bd1
nop
cmp byte [rbp + rax + 0xef], 0x20
je 0x140006bc4
cmp byte [rbp + rax + 0xef], 9
jne 0x140006bd1
mov byte [rbp + rax + 0xef], 0
dec rax
jne 0x140006bb0
lea rax, [rbp + 0xf0]
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x70]
lea rcx, str.ISO_ID:_System__s__Volume__s__Pulisher__s__Preparer__s_
mov qword [rsp + 0x20], rax
call fcn.140005180
test edi, edi
je 0x140006c13
lea rdx, str.Modified_Win10PEx64
lea rcx, [rbp - 0x50]
call fcn.14001cb60
test eax, eax
jne 0x140006c13
mov eax, r14d
jmp 0x140006c15
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14000d130
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret