Function at 0x1801b0980
Capabilities:
Check for peb beingdebugged flag
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
movaps xmmword [rsp + 0x1c0], xmm6
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rdx
mov qword [rbp - 0x80], rdx
mov rsi, rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rdx
mov dword [rsp + 0x58], 1
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
lea ecx, [r14 + 0x38]
call fcn.1802697d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi], rax
mov dword [rsp + 0x58], 1
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.18014f760
cmp qword [rax + 0x18], 0x10
jb 0x1801b0a17
mov rax, qword [rax]
lea rdx, [0x1802b261c]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1801b0a68
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801b0a63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801b0a63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18026980c
movdqa xmm0, xmmword [0x18029c040]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
test rdi, rdi
jne 0x1801b0a86
mov rcx, rbx
jmp 0x1801b0d4e
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov r9, rdi
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x40], r14d
mov qword [rbp - 0x20], r14
mov dword [rbp], r14d
mov dword [rbp + 0x88], r14d
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0x90], r12
lea rax, [rbx + r12]
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0x98], rax
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x30]
call fcn.1801b9de0
mov rbx, rax
mov qword [rsp + 0x60], rax
mov edx, dword [0x18041fd70]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + rdx*8]
mov eax, 8
cmp dword [rax + rcx], 0
je 0x1801b0b82
mov eax, 0xc
mov ecx, dword [rax + rcx]
jmp 0x1801b0b88
mov ecx, dword [0x18041df20]
mov r13d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov r15d, dword [rsp + 0x50]
test ecx, ecx
je 0x1801b0beb
mov eax, dword [rsp + 0x40]
imul eax, edx
imul eax, r13d
test r15d, r15d
jle 0x1801b0beb
movsxd r14, eax
mov edi, r15d
mov r15d, dword [rsp + 0x40]
nop word [rax + rax]
mov r9d, r15d
mov r8d, edx
mov edx, r13d
mov rcx, rbx
call fcn.1801c1410
add rbx, r14
sub rdi, 1
mov edx, dword [rsp + 0x44]
jne 0x1801b0bc0
mov r15d, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
xor r14d, r14d
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, dword [rsp + 0x40]
mov eax, edx
imul eax, r13d
movsxd rcx, eax
mov rdi, r14
movsxd rax, r15d
mov qword [rsp + 0x50], rax
test r15d, r15d
je 0x1801b0d3e
mov qword [rbp - 0x78], rsi
movsxd r15, dword [rsp + 0x44]
mov r12, r15
imul r12, rcx
mov r14, rbx
nop dword [rax + rax]
mov rax, qword [rsp + 0x68]
mov ebx, dword [rax + rdi*4]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov r9d, r15d
mov r8d, r13d
xor edx, edx
mov rcx, r14
call fcn.1801c1d50
test rax, rax
jne 0x1801b0c65
xorps xmm6, xmm6
movups xmmword [rsp + 0x70], xmm6
jmp 0x1801b0c7b
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], ebx
movups xmm6, xmmword [rsp + 0x70]
mov rbx, qword [rsi]
mov qword [rbp - 0x70], 0
mov ecx, 0x38
call fcn.1802697d0
mov r8, rax
mov qword [rbp - 0x70], rax
mov dword [rax + 0x20], edi
movups xmmword [rax + 0x28], xmm6
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
mov qword [rbp - 0x50], rax
xor edx, edx
mov dword [rbp - 0x48], edx
cmp byte [rax + 0x19], dl
jne 0x1801b0ce8
mov qword [rbp - 0x50], rax
cmp dword [rax + 0x20], edi
jge 0x1801b0cd6
mov dword [rbp - 0x48], edx
mov rax, qword [rax + 0x10]
jmp 0x1801b0ce3
mov dword [rbp - 0x48], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], dl
je 0x1801b0cc4
cmp byte [rcx + 0x19], dl
jne 0x1801b0d01
cmp edi, dword [rcx + 0x20]
jl 0x1801b0d01
mov edx, 0x38
mov rcx, r8
call fcn.18026980c
jmp 0x1801b0d29
movabs rax, 0x492492492492492
cmp qword [rsi + 8], rax
je 0x1801b0d88
mov qword [rbp - 0x70], rdx
movups xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.1800d6940
inc rdi
add r14, r12
cmp rdi, qword [rsp + 0x50]
mov edx, dword [rsp + 0x40]
jne 0x1801b0c30
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp - 0x80]
call fcn.18013d160
mov rax, rsi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180269d00
mov rbx, qword [rsp + 0x220]
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800d4c20
nop
int3