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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, rcx
mov ecx, 0x12345678
call sym.SafeBase64.dll_Ordinal_520
mov r12, rax
test rax, rax
jne 0x1800081c0
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x180008191
mov edi, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [rsp + 0x40], esi
lea ecx, [rsi + 0x200]
call fcn.1800f30bc
mov r15, rax
mov qword [rsp + 0x48], rax
mov ecx, esi
call fcn.1800f30bc
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], esi
jb 0x1800083e0
lea r9, [rsp + 0x40]
mov r8, rbx
mov edx, esi
mov rcx, r15
call fcn.180007fd0
mov edi, eax
mov dword [rsp + 0x44], eax
test eax, eax
je 0x1800083e0
cmp dword [rbx], 0x4543494c
jne 0x1800083e0
mov ecx, dword [rbx + 0x34]
cmp ecx, dword [rsp + 0x40]
ja 0x1800083e0
add ecx, 0x40
lea rdx, [0x1801423a8]
call fcn.18010fb14
mov r13, rax
test rax, rax
je 0x1800083e0
movaps xmm3, xmmword [str.2dca976be2a887e55909c8b99c53e054fffdb03f448929ea25417f7d5ac563f5e8d2cf9464468a198516a8b73ac764fce9148aa972ee27e2051397ea9764e8e6]
movaps xmmword [rsp + 0x70], xmm3
movaps xmm0, xmmword [0x180186260]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm1, xmmword [0x180186270]
movaps xmmword [rsp + 0x90], xmm1
movaps xmm0, xmmword [0x180186280]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmm1, xmmword [0x180186290]
movaps xmmword [rsp + 0xb0], xmm1
movaps xmm0, xmmword [0x1801862a0]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmm1, xmmword [0x1801862b0]
movaps xmmword [rsp + 0xd0], xmm1
movaps xmm2, xmmword [0x1801862c0]
movaps xmmword [rsp + 0xe0], xmm2
mov eax, dword [0x1801862d0]
mov dword [rsp + 0xf0], eax
movd edx, xmm3
movq rcx, xmm3
shr rcx, 8
movdqa xmm0, xmm2
psrldq xmm0, 0xe
movd eax, xmm0
mov byte [rsp + 0x70], al
psrldq xmm2, 0xf
movd eax, xmm2
mov byte [rsp + 0x71], al
mov byte [rsp + 0xee], dl
mov byte [rsp + 0xef], cl
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rbx + 0x34]
mov rdx, r13
lea rcx, [rbx + 0x38]
call sym.SafeBase64.dll_Ordinal_506
test eax, eax
je 0x1800083e0
mov r8d, dword [rbx + 0x34]
shr r8, 1
mov rdx, r13
lea rcx, [rbx + 0x38]
call fcn.180112cb0
lea r8, [rbx + 0xc]
mov edx, dword [rbx + 0x34]
shr edx, 1
mov r9d, 0x10
lea rcx, [rbx + 0x38]
call sym.SafeBase64.dll_Ordinal_15
mov edx, dword [rbx + 0x34]
shr edx, 1
lea rcx, [rbx + 0x38]
call sym.SafeBase64.dll_Ordinal_34
cmp dword [rbx + 0x30], eax
jne 0x1800083e0
mov eax, 1
cmp r12, qword [rbx + 0xcc]
cmove edi, eax
mov dword [rsp + 0x44], edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x1800083f6
mov rcx, r15
call sym.SafeBase64.dll_SafeBase_free
test rbx, rbx
je 0x180008403
mov rcx, rbx
call sym.SafeBase64.dll_SafeBase_free
mov eax, edi
jmp 0x180008193