Function at 0x140001d68
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
movaps xmm0, xmmword [0x140001050]
movaps xmm1, xmmword [0x140001060]
mov al, byte [0x140001090]
movaps xmmword [rbp - 0x39], xmm0
movaps xmm0, xmmword [0x140001070]
movaps xmmword [rbp - 0x19], xmm0
movups xmm0, xmmword [0x140001098]
mov byte [rbp + 7], al
mov al, byte [0x1400010a8]
movaps xmmword [rbp - 0x29], xmm1
movaps xmm1, xmmword [0x140001080]
movups xmmword [rbp - 0x59], xmm0
mov byte [rbp - 0x49], al
movaps xmmword [rbp - 9], xmm1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0x104
mov r13d, 8
mov rcx, rax
mov r8d, edi
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, edi
xor ecx, ecx
mov rdx, rax
mov qword [rbp + 0x77], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r12d, r12d
lea edx, [r13 - 7]
mov qword [rsp + 0x30], r12
mov r8d, edx
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
or r14, 0xffffffffffffffff
mov r15, rax
cmp rax, r14
je 0x14000200f
lea rdx, [rbp + 0x6f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000200f
mov edi, dword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14000200f
lea r9, [rbp + 0x67]
mov dword [rbp + 0x67], r12d
mov r8d, edi
mov qword [rsp + 0x20], r12
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001ff2
cmp dword [rbp + 0x67], edi
jne 0x140001ff2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp - 0x59]
mov r9, r14
inc r9
cmp byte [rax + r9], r12b
jne 0x140001ead
lea r8, [rbp - 0x59]
mov dword [rsp + 0x20], 1
mov edx, edi
mov rcx, rsi
call fcn.140001384
mov r15d, eax
lea rcx, [rbp - 0x59]
mov rax, r14
inc rax
cmp byte [rcx + rax], r12b
jne 0x140001ed6
add r15d, eax
mov r12d, edi
sub r12d, r15d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r12d
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, r15d
mov r13, rax
cmp r15d, edi
jae 0x140001f25
movsxd r9, r15d
add r9, rsi
mov cl, byte [r9]
mov edx, r8d
sub edx, r15d
inc r8d
inc r9
mov byte [rdx + rax], cl
cmp r8d, edi
jb 0x140001f0e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rbp - 0x39]
inc r14
cmp byte [rax + r14], 0
jne 0x140001f3d
mov r9, r14
lea r8, [rbp - 0x39]
mov edx, r12d
mov rcx, r13
call fcn.1400013ec
mov rcx, r13
call fcn.140001380
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8d, [r12 - 4]
mov r9d, edi
mov rdx, rax
lea rcx, [r13 + 4]
mov rbx, rax
call fcn.140001420
cmp eax, edi
jne 0x14000200f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rbp + 0x77]
lea r8, [rbp + 0x7f]
mov rcx, rdi
mov rdx, rbx
call fcn.140001ae0
test eax, eax
je 0x14000200f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]