Function at 0x1400db570
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13d, r8d
mov r15, r9
mov r12, rcx
mov qword [rax - 0x68], 0
xor edx, edx
lea rcx, [rax + 0x20]
mov r9d, 4
lea r8d, [r13 + 0x2800]
call fcn.140030760
mov rbx, qword [rsp + 0xa8]
lea rdx, [0x1400fb550]
mov rcx, rbx
mov dword [rsp + 0x20], 0x24
mov r9d, r13d
mov r8, r12
call fcn.14002f8e0
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1400db5f5
xor esi, esi
xor edi, edi
xor ebp, ebp
jmp 0x1400db69c
mov rcx, rbx
call fcn.14002e910
mov rbp, qword [rbx + 0x30]
mov eax, dword [rbx + 0x28]
test rbp, rbp
jne 0x1400db65b
test eax, eax
je 0x1400db61a
xor esi, esi
xor edi, edi
cmp eax, 9
je 0x1400db69c
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x1400db62c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400db63b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400db64a
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
xor edi, edi
xor ebp, ebp
jmp 0x1400db69c
mov rcx, qword [rbx + 0xa8]
mov rsi, qword [rbx + 8]
mov rdi, qword [rbx + 0x18]
test rcx, rcx
je 0x1400db675
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400db684
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400db693
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp rdi, r13
jb 0x1400db6b9
mov rcx, rsi
mov rdi, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, r12
lea rax, [rsp + 0xa0]
xor r9d, r9d
mov r8d, 1
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov ecx, dword [rsp + 0xa0]
add ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, 1
mov edx, edi
mov rbx, rax
mov rcx, rsi
lea rax, [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test r15, r15
je 0x1400db75a
cmp qword [r15], 0
je 0x1400db75a
mov edx, dword [rsp + 0xa0]
mov r9b, 1
inc edx
mov dword [rsp + 0x20], 0x100
mov r8, r15
mov rcx, rbx
call fcn.1400db360
mov dword [rsp + 0xa0], eax
test eax, eax
jne 0x1400db753
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x1400db81b
mov r14, rbx
mov ecx, eax
jmp 0x1400db768
xor eax, eax
mov r14, rsi
mov dword [rsp + 0xa0], eax
xor ecx, ecx
test ecx, ecx
mov qword [rsp + 0x30], 0x4034b50
mov edx, edi
mov dword [rsp + 0x38], edi
cmovne edx, ecx
mov dword [rsp + 0x3c], r13d
mov rcx, r14
mov dword [rsp + 0x40], eax
mov r9d, 4
lea r8, [rsp + 0x34]
call qword [sym.imp.SHLWAPI.dll_HashData]
mov eax, dword [rsp + 0xa0]
mov ecx, edi
test eax, eax
cmovne ecx, eax
add rcx, 0x14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x98]
mov r9d, edi
movups xmm0, xmmword [rsp + 0x30]
mov rdx, r14
movups xmmword [rax], xmm0
mov qword [rcx], rax
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x10], ecx
lea rcx, [rax + 0x14]
mov r8d, dword [rsp + 0xa0]
test r8d, r8d
cmovne r9d, r8d
mov r8d, r9d
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp rsi, r12
je 0x1400db80c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0xa0]
test ecx, ecx
cmovne edi, ecx
lea eax, [rdi + 0x14]
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret