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

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x3c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
lea rax, [rsp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 0xf0
rep stosb byte [rdi], al
mov dword [rsp + 0x1b0], 0
mov qword [rsp + 0x88], 0xffffffffffffffff
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x5c], 0
mov eax, 8
imul rax, rax, 1
mov r9d, 0xff
mov rcx, qword [rsp + 0x3e8]
mov r8, qword [rcx + rax]
mov edx, 0xff
lea rcx, [rsp + 0x2b0]
call fcn.140001278
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x1400015e7
mov ecx, 1
call fcn.140006188
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov ecx, eax
call fcn.1400089c0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1b0]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x1b0], 0
jne 0x140001648
jmp 0x1400019da
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001671
jmp 0x1400019da
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1c0]
lea rcx, [rsp + 0xc0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140001200
test eax, eax
je 0x1400016f6
movzx eax, word [rsp + 0x1c0]
cmp eax, 0x20b
jne 0x1400016f4
mov dword [rsp + 0x58], 2
jmp 0x14000170d
movzx eax, word [rsp + 0x1c0]
cmp eax, 0x10b
jne 0x14000170d
mov dword [rsp + 0x58], 0xfffffffe
mov eax, dword [rsp + 0x58]
add eax, 4
mov eax, eax
mov eax, dword [rsp + rax*8 + 0x230]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x58]
add eax, 4
mov eax, eax
mov eax, dword [rsp + rax*8 + 0x234]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
jmp 0x14000177c
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x48], rax
jae 0x140001884
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
cmp eax, 0xfb
jne 0x14000187f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 1]
cmp eax, 0xcd
jne 0x14000187f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 2]
cmp eax, 0xff
jne 0x14000187f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 3]
cmp eax, 0xac
jne 0x14000187f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 4]
cmp eax, 0xee
jne 0x14000187f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 5]
cmp eax, 0xda
jne 0x14000187f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 6]
cmp eax, 0xca
jne 0x14000187f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax + 7]
cmp eax, 0xbe
jne 0x14000187f
mov eax, dword [rsp + 0x48]
add eax, 8
mov dword [rsp + 0x40], eax
jmp 0x140001884
jmp 0x14000176f
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rcx, 8
cmp rax, rcx
je 0x1400018a0
jmp 0x1400019da
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
add eax, 1
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.1400089c0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400018ea
jmp 0x1400019da
movsxd rax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
lea rcx, [rdx + rcx + 1]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x80]
call fcn.140016220
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x5c]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, eax
call fcn.1400089c0
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140001958
jmp 0x1400019da
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x78]
call fcn.140016220
mov rcx, qword [rsp + 0x80]
call fcn.140008810
test rax, rax
jne 0x1400019aa
mov ecx, 2
call fcn.1400062b4
lea rdx, str.___:_Encryption_key_is_empty
mov rcx, rax
call fcn.140001400
jmp 0x1400019da
mov rcx, qword [rsp + 0x80]
call fcn.140008810
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x80]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call section..text
cmp qword [rsp + 0x68], 0
je 0x1400019ec
mov rcx, qword [rsp + 0x68]
call fcn.1400089ac
cmp qword [rsp + 0x78], 0
je 0x1400019fe
mov rcx, qword [rsp + 0x78]
call fcn.1400089ac
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.140006188
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140001a40
add rsp, 0x3c8
pop rdi
pop rsi
ret