Function at 0x1400d2130
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
xor edx, edx
mov r15, r9
mov qword [rax - 0x68], 0
mov r12, rcx
lea rcx, [rax + 0x20]
lea r8d, [r13 + 0x2800]
lea r9d, [rdx + 4]
call fcn.14002e840
mov rbx, qword [rsp + 0xa8]
lea rdx, [0x1400f1580]
mov rcx, rbx
mov dword [rsp + 0x20], 0x24
mov r9d, r13d
mov r8, r12
call fcn.14002d980
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400d2202
mov rcx, rbx
call fcn.14002c9f0
mov rbp, qword [rbx + 0x30]
mov eax, dword [rbx + 0x28]
test rbp, rbp
jne 0x1400d22c5
test eax, eax
je 0x1400d21c9
cmp eax, 9
je 0x1400d2202
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x1400d21db
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400d21ea
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d21f9
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
cmp rdi, r13
jb 0x1400d2225
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
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov edx, edi
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea r8d, [r9 + 1]
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 0x1400d2310
cmp qword [r15], 0
je 0x1400d2310
mov edx, dword [rsp + 0xa0]
mov r9b, 1
inc edx
mov dword [rsp + 0x20], 0x100
mov r8, r15
mov rcx, rbx
call fcn.1400d1f20
mov dword [rsp + 0xa0], eax
test eax, eax
jne 0x1400d230b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x1400d23cf
mov rcx, qword [rbx + 0xa8]
mov rsi, qword [rbx + 8]
mov rdi, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d22df
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400d22ee
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d22fd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400d2208
mov r14, rbx
jmp 0x1400d231c
xor eax, eax
mov r14, rsi
mov dword [rsp + 0xa0], eax
test eax, eax
mov qword [rsp + 0x30], 0x4034b50
mov edx, edi
mov dword [rsp + 0x38], edi
cmovne edx, eax
mov dword [rsp + 0x3c], r13d
mov r9d, 4
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x34]
mov rcx, r14
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 0x1400d23c0
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