Function at 0x140006820
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword ss:[rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400010c0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r15, r8
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov qword [rsp + 0x58], rcx
mov qword [rbp], rdx
mov dword [rsp + 0x44], 1
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
xor ebx, ebx
mov qword [rdx + 0x18], rbx
lea edx, [rbx + 0xf]
mov qword [rsi + 0x20], rdx
mov byte [rsi + 8], bl
movups xmmword [rsi + 0x30], xmm0
mov qword [rsi + 0x40], rbx
mov qword [rsi + 0x48], rdx
mov byte [rsi + 0x30], bl
mov qword [rsi + 0x50], rbx
mov qword [rsi + 0x58], rbx
mov qword [rsi + 0x60], rbx
mov qword [rsi + 0x68], rbx
mov qword [rsi + 0x70], rbx
mov qword [rsi + 0x78], rbx
mov dword [rsp + 0x44], 1
mov byte [rsi], bl
mov byte [rsp + 0x40], bl
lea rcx, [r8 + 0x10]
cmp qword [rcx + 0x18], rdx
jbe 0x1400068c9
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006905
mov dword ds:[rsp + 0x44], ebx
jmp 0x140006e86
mov r8d, dword [r15]
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
mov qword [rsp + 0x70], rax
mov rcx, rdi
test rax, rax
jne 0x14000692d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400068f9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rbx
mov qword [rbp + 0xb0], rbx
test r12d, r12d
je 0x1400069ae
mov edx, r12d
lea rcx, [rbp + 0xa0]
call fcn.140007ea0
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x48], rax
mov rcx, qword [rbp + 0xa0]
lea rbx, [r12 + rcx]
mov r8d, r12d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xa8], rbx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x48]
call fcn.140007ba0
nop
mov dword [rbp + 0xb8], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xb8]
mov r8d, r12d
mov rdx, qword [rbp + 0xa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
test eax, eax
jne 0x1400069f4
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006e75
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
lea r8, [rbp + 0x40]
mov rdx, qword [r15 + 8]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsxd rdx, dword [rbp + 0x7c]
add rdx, qword [r15 + 8]
mov qword [rsp + 0x20], rbx
mov r9d, 0x108
lea r8, [rbp + 0xc0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r12d, ebx
mov dword [rsp + 0x50], ebx
cmp bx, word [rbp + 0xc6]
jae 0x140006d5f
movsxd rax, r12d
lea rcx, [rax + rax*4]
movsxd rax, dword [rbp + 0x7c]
lea rdx, [rax + rcx*8]
mov rax, qword [r15 + 8]
add rax, 0x108
add rdx, rax
mov qword [rsp + 0x20], rbx
mov r9d, 0x28
lea r8, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test dword [rbp + 0x34], 0x20000000
je 0x140006d47
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], rax
mov edi, dword [rbp + 0x18]
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], rbx
test rdi, rdi
je 0x140006b06
mov edx, edi
lea rcx, [rbp + 0x80]
call fcn.140007ea0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp + 0x80]
lea rbx, [rdi + rcx]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword ds:[rbp + 0x88], rbx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x60]
call fcn.140007ba0
nop
mov edx, dword [rbp + 0x1c]
add rdx, qword [r15 + 8]
mov r9d, dword [rbp + 0x18]
mov qword [rsp + 0x20], rbx
mov r8, qword [rbp + 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword ds:[rbp + 0x88]
mov r14, qword ds:[rbp + 0x80]
sub rax, r14
cmp rax, 0xa
je 0x140006d38
mov r15, qword [rbp + 0xa0]
lea r13, [rsi + 0x30]
mov rax, qword ds:[rsp + 0x58]
mov rdi, qword [rax]
cmp rdi, qword [rax + 8]
je 0x140006be8
mov rcx, qword [rbp + 0x88]
sub rcx, r14
mov qword [rsp + 0x48], rcx
mov r12, qword [rdi + 8]
sub r12, qword [rdi]
lea rax, [rbx + r12]
cmp rax, rcx
ja 0x140006bd9
lea rdx, [r14 + rbx]
mov r8, r12
mov rcx, qword [rdi]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006bd4
mov ecx, dword [rbp + 0x24]
add rcx, rbx
mov qword [rsp + 0x68], rcx
mov rdx, qword [rbp + 0xa8]
sub rdx, r15
lea rax, [rcx + r12]
cmp rax, rdx
ja 0x140006bd4
lea rdx, [rcx + r15]
mov r8, r12
mov rcx, qword [rdi]
call sub.VCRUNTIME140.dll_memcmp
xor r12d, r12d
test eax, eax
jne 0x140006eb3
mov rcx, qword [rsp + 0x48]
add rdi, 0x38
mov rax, qword [rsp + 0x58]
cmp rdi, qword [rax + 8]
jne 0x140006b79
mov edi, dword ds:[rbp + 0x24]
add rdi, rbx
mov rcx, qword [rbp + 0xa8]
sub rcx, r15
lea rax, [rdi + 0xa]
cmp rax, rcx
ja 0x140006d06
mov rax, qword [rdi + r15]
cmp rax, qword [r14 + rbx]
jne 0x140006c2c
movzx eax, word ds:[rdi + r15 + 8]
cmp ax, word [r14 + rbx + 8]
je 0x140006d06
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xor r12d, r12d
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
lea r14d, [r12 + 8]
mov r8d, r14d
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140005760
nop
lea rdx, [rbp - 0x40]
lea rcx, [rsi + 8]
call fcn.140007240
nop
lea rcx, [rbp - 0x40]
call fcn.140004c80
mov eax, dword [rbp + 0x1c]
add rax, rbx
mov qword [rsi + 0x28], rax
lea r8d, [r12 + 0xc]
lea rdx, [0x140001c10]
mov rcx, r13
call fcn.140005320
mov rdx, qword ds:[rbp + 0xa0]
add rdx, rdi
lea r8, [rdx + 0xa]
lea rcx, [rsi + 0x50]
call fcn.140007480
mov rdx, qword [rbp + 0x80]
add rdx, rbx
lea r8, [rdx + 0xa]
lea rcx, [rsi + 0x68]
call fcn.140007480
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov r8d, r14d
lea rdx, [0x140001c00]
lea rcx, [rbp - 0x20]
call fcn.140005760
nop
xor r9d, r9d
mov r8, rsi
lea rdx, [rbp - 0x20]
call fcn.140005cc0
nop
lea rcx, [rbp - 0x20]
call fcn.140004c80
mov r15, qword [rbp + 0xa0]
mov r14, qword [rbp + 0x80]
inc rbx
mov rax, qword [rbp + 0x88]
sub rax, r14
sub rax, 0xa
cmp rbx, rax
jb 0x140006b55
mov r13, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
mov r12d, dword [rsp + 0x50]
lea rcx, ds:[rbp + 0x80]
call fcn.140007140
xor ebx, ebx
inc r12d
mov dword [rsp + 0x50], r12d
movzx eax, word [rbp + 0xc6]
cmp r12d, eax
jl 0x140006a4d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsi], bl
jne 0x140006e75
lea rdx, [0x140001c5c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
nop
call fcn.140007740
mov rcx, rax
lea rdx, [0x140001c28]
call fcn.140007540
lea rdx, [r15 + 0x30]
cmp qword [rdx + 0x18], 0xf
jbe 0x140006da2
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140007740
mov rcx, rax
lea rdx, [0x140001c20]
call fcn.140007540
mov rcx, rax
lea rdx, [0x1400016f4]
call fcn.140007740
mov rdi, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
mov qword [rsp + 0x58], 0x5f
lea rdx, [rsp + 0x58]
call fcn.140005b20
mov rbx, rax
mov qword [rbp + 0x80], rax
mov r8d, 0x50
mov qword [rbp + 0x90], r8
mov rcx, qword [rsp + 0x58]
mov qword [rbp + 0x98], rcx
lea edx, [r8 - 0x13]
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + 0x50], 0
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rdx, qword [rbp + 0x80]
mov r8, qword [rbp + 0x90]
mov rcx, rdi
call fcn.140005980
lea rdx, [0x140005430]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0x80]
call fcn.140004c80
xor ebx, ebx
mov dword [rsp + 0x44], ebx
lea rcx, [rbp + 0xa0]
call fcn.140007140
nop
mov rax, rsi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14000d280
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsi], 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov r14d, 8
mov r8d, r14d
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x80]
call fcn.140005760
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsi + 8]
call fcn.140007240
nop
lea rcx, [rbp - 0x80]
call fcn.140004c80
mov eax, dword [rbp + 0x1c]
add rax, rbx
mov qword [rsi + 0x28], rax
lea rdx, [rdi + 0x18]
cmp r13, rdx
je 0x140006f1c
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140006f14
mov rdx, qword [rdx]
mov rcx, r13
call fcn.140005320
mov r8, qword ds:[rdi + 8]
sub r8, qword [rdi]
mov rcx, qword [rbp + 0xa8]
mov r9, qword [rbp + 0xa0]
sub rcx, r9
mov rdx, qword [rsp + 0x68]
lea rax, [rdx + r8]
cmp rax, rcx
ja 0x140006f54
add rdx, r9
add r8, rdx
lea rcx, [rsi + 0x50]
call fcn.140007480
mov r8, qword [rdi + 8]
sub r8, qword [rdi]
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
sub rcx, rdx
lea rax, [rbx + r8]
cmp rax, rcx
ja 0x140006f85
add rdx, rbx
add r8, rdx
lea rcx, [rsi + 0x68]
call fcn.140007480
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
mov r8, r14
lea rdx, [0x140001c00]
lea rcx, [rbp - 0x60]
call fcn.140005760
nop
mov r9b, 1
mov r8, rsi
lea rdx, [rbp - 0x60]
call fcn.140005cc0
nop
lea rcx, [rbp - 0x60]
call fcn.140004c80
cmp byte [rsp + 0x40], r12b
jne 0x140006cf8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdi, [0x140001140]
mov rdx, qword [rdi]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140007540
lea rdx, [0x140007700]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
add rdi, r14
lea rax, [0x140001160]
cmp rdi, rax
jne 0x140006ff0
mov byte [rsp + 0x40], 1
jmp 0x140006cf8