Function at 0x1400a18b0
Capabilities:
Encrypt data using dpapi
Get file size
Read file on windows

Disassembly:
push r13
mov eax, 0x2150
call fcn.1400a7800
sub rsp, rax
xor r13d, r13d
mov qword [rsp + 0x2170], rbp
mov rax, rdx
mov rbp, rcx
mov dword [rcx + 8], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x2148], rdi
mov qword [rsp + 0x2140], r12
mov r12, r8
lea r8d, [r13 + 3]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x80], 0x400
mov dword [rsp + 0x84], 0x100
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x64], r13d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x88], r13d
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0xa0], r13d
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x98], r13d
mov dword [rsp + 0xa4], 0x100
mov dword [rsp + 0x9c], r13d
mov dword [rsp + 0xbc], 0x20
mov qword [rsp + 0xb0], r13
mov dword [rsp + 0xc0], r13d
mov dword [rsp + 0xb8], r13d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1400a1e53
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x2168], rbx
mov qword [rsp + 0x2178], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [rbx + 5]
movsxd rcx, ecx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r9, [rsp + 0x2160]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
mov dword [rsp + 0x2160], r13d
mov rsi, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [rbx + 1]
mov byte [rbx + rsi], r13b
mov r9d, 0xfde9
mov byte [rcx + rsi], r13b
lea ecx, [rbx + 2]
or r8d, 0xffffffff
mov byte [rcx + rsi], r13b
lea rcx, [rsp + 0x90]
mov rdx, rsi
mov dword [rsp + 0xa8], r13d
call fcn.140091be0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1400a1a39
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsp + 0x60]
call fcn.1400a7550
mov rsi, qword [rsp + 0x2178]
test eax, eax
je 0x1400a1e4b
mov eax, dword [rsp + 0xc0]
mov edi, r13d
test eax, eax
jle 0x1400a1e4b
test edi, edi
js 0x1400a1a7e
cmp edi, eax
jge 0x1400a1a7e
movsxd rbx, edi
shl rbx, 4
add rbx, qword [rsp + 0xb0]
jmp 0x1400a1a81
mov rbx, r13
movsxd rax, dword [rbx]
mov r8, qword [rbx + 8]
test eax, eax
js 0x1400a1aa9
cmp eax, dword [r8 + 0x28]
jge 0x1400a1aa9
mov rcx, rax
mov rax, qword [r8 + 0x10]
mov edx, dword [rax + rcx*4]
mov rax, qword [r8 + 0x18]
lea rcx, [rax + rdx*2]
test rcx, rcx
jne 0x1400a1ab0
lea rcx, [0x1400a89b8]
lea rdx, str.os_crypt
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x1400a1ad3
mov eax, dword [rsp + 0xc0]
add edi, 1
cmp edi, eax
jl 0x1400a1a65
jmp 0x1400a1e4b
movsxd rax, dword [rbx + 4]
mov r8, qword [rbx + 8]
mov dword [rsp + 0xf0], 0x400
test eax, eax
mov dword [rsp + 0xf4], 0x100
mov dword [rsp + 0xd0], r13d
mov dword [rsp + 0xd4], r13d
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xe8], r13
mov dword [rsp + 0xf8], r13d
mov dword [rsp + 0xd8], r13d
mov dword [rsp + 0x110], r13d
mov qword [rsp + 0x100], r13
mov dword [rsp + 0x108], r13d
mov dword [rsp + 0x114], 0x100
mov dword [rsp + 0x10c], r13d
mov dword [rsp + 0x12c], 0x20
mov qword [rsp + 0x120], r13
mov dword [rsp + 0x130], r13d
mov dword [rsp + 0x128], r13d
js 0x1400a1b90
cmp eax, dword [r8 + 0x28]
jge 0x1400a1b90
mov rcx, rax
mov rax, qword [r8 + 0x10]
mov edx, dword [rax + rcx*4]
mov rax, qword [r8 + 0x18]
lea rdx, [rax + rdx*2]
test rdx, rdx
jne 0x1400a1b97
lea rdx, [0x1400a89b8]
lea rcx, [rsp + 0xd0]
call fcn.1400a7250
lea rcx, [rsp + 0xd0]
call fcn.1400a7550
test eax, eax
je 0x1400a1ddd
mov eax, dword [rsp + 0x130]
mov edi, r13d
test eax, eax
jle 0x1400a1ddd
nop
nop
test edi, edi
js 0x1400a1be9
cmp edi, eax
jge 0x1400a1be9
movsxd rbx, edi
shl rbx, 4
add rbx, qword [rsp + 0x120]
jmp 0x1400a1bec
mov rbx, r13
movsxd rax, dword [rbx]
mov r8, qword [rbx + 8]
test eax, eax
js 0x1400a1c14
cmp eax, dword [r8 + 0x28]
jge 0x1400a1c14
mov rcx, rax
mov rax, qword [r8 + 0x10]
mov edx, dword [rax + rcx*4]
mov rax, qword [r8 + 0x18]
lea rcx, [rax + rdx*2]
test rcx, rcx
jne 0x1400a1c1b
lea rcx, [0x1400a89b8]
lea rdx, str.encrypted_key
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x1400a1c3e
mov eax, dword [rsp + 0x130]
add edi, 1
cmp edi, eax
jl 0x1400a1bd0
jmp 0x1400a1ddd
movsxd rax, dword [rbx + 4]
mov r8, qword [rbx + 8]
test eax, eax
js 0x1400a1c67
cmp eax, dword [r8 + 0x28]
jge 0x1400a1c67
mov rcx, rax
mov rax, qword [r8 + 0x10]
mov edx, dword [rax + rcx*4]
mov rax, qword [r8 + 0x18]
lea rbx, [rax + rdx*2]
test rbx, rbx
jne 0x1400a1c6e
lea rbx, [0x1400a89b8]
lea rcx, [rsp + 0x1141]
xor edx, edx
mov r8d, 0xfff
mov byte [rsp + 0x1140], r13b
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x141]
xor edx, edx
mov r8d, 0xfff
mov byte [rsp + 0x140], r13b
call sub.msvcrt.dll_memset
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x1140]
mov qword [rsp + 0x30], r13
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0xfff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x1140]
mov r8d, 0xfff
call fcn.1400a5300
lea rcx, [rsp + 0x140]
lea rdx, str.DPAPI
mov r8d, dword [rcx]
cmp r8d, dword [rdx]
jne 0x1400a1d19
mov r8b, byte [rcx + 4]
cmp r8b, byte [rdx + 4]
jne 0x1400a1d19
mov ecx, r13d
jmp 0x1400a1d1e
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x1400a1ddd
xor ecx, ecx
add eax, 0xfffffffb
test r12, r12
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x145]
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rcx
je 0x1400a1d75
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.140099130
test eax, eax
je 0x1400a1ddd
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14009cb60
jmp 0x1400a1d9c
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400a1ddd
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400a1ddd
cmp dword [rsp + 0x50], 0x20
jb 0x1400a1dd7
mov rax, qword [rcx]
mov qword [rbp + 0xc], rax
mov rax, qword [rcx + 8]
mov qword [rbp + 0x14], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0x1c], rax
mov rax, qword [rcx + 0x18]
mov dword [rbp + 8], 1
mov qword [rbp + 0x24], rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x120]
test rcx, rcx
je 0x1400a1def
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x120], r13
mov dword [rsp + 0x130], r13d
test rcx, rcx
mov dword [rsp + 0x128], r13d
je 0x1400a1e21
call sub.msvcrt.dll_free
mov qword [rsp + 0x100], r13
mov rcx, qword [rsp + 0xe8]
mov dword [rsp + 0x108], r13d
mov dword [rsp + 0x10c], r13d
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0xe0]
call sub.msvcrt.dll_free
mov rbx, qword [rsp + 0x2168]
mov rcx, qword [rsp + 0xb0]
mov r12, qword [rsp + 0x2140]
mov rdi, qword [rsp + 0x2148]
test rcx, rcx
mov rbp, qword [rsp + 0x2170]
je 0x1400a1e7d
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0xb0], r13
mov dword [rsp + 0xc0], r13d
test rcx, rcx
mov dword [rsp + 0xb8], r13d
je 0x1400a1eaf
call sub.msvcrt.dll_free
mov qword [rsp + 0x90], r13
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x98], r13d
mov dword [rsp + 0x9c], r13d
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
add rsp, 0x2150
pop r13
ret