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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, r8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 4], xmm0
mov dword [rbp + 0x14], eax
mov dword [rbp - 0x40], 0x574f454d
mov dword [rbp - 0x3c], 1
movups xmm0, xmmword [0x14000a420]
movups xmmword [rbp - 0x38], xmm0
xor r14d, r14d
mov dword [rbp - 0x28], r14d
mov dword [rbp - 0x24], 1
mov rax, qword [rdx + 0x40]
mov qword [rbp - 0x18], rax
mov rax, qword [rdx + 0x38]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rdx + 0x28]
movaps xmmword [rbp - 0x10], xmm0
mov dword [rbp], r14d
cmp byte [rcx + 0x4c], r14b
je 0x140002ec7
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea edx, [r14 + 0x58]
mov r8d, 0x40000001
lea rcx, [rbp - 0x40]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov eax, dword [rbp - 0x68]
dec eax
mov edx, eax
movdqa xmm0, xmmword [0x14000a7c0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
cmp rdx, 7
ja 0x140002b4e
mov qword [rsp + 0x40], rdx
test eax, eax
je 0x140002b46
movzx eax, r14w
lea rdi, [rsp + 0x30]
mov ecx, edx
rep stosw word [rdi], ax
mov word [rsp + rdx*2 + 0x30], r14w
jmp 0x140002b5b
lfence
lea rcx, [rsp + 0x30]
call fcn.140006070
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov edx, 0x58
mov r8d, 0x40000001
lea rcx, [rbp - 0x40]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
nop
mov r15d, 7
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x80], r15
movsd xmm0, qword [str.OBJREF:]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x140009a80]
mov dword [rsp + 0x78], eax
movzx eax, word [0x140009a84]
mov word [rsp + 0x7c], ax
mov word [rsp + 0x7e], r14w
mov edx, r15d
sub rdx, r15
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
cmp rbx, rdx
jbe 0x140002bf7
mov rax, rcx
sub rax, rbx
cmp rax, r15
jb 0x140002bf7
lea r8, [rsp + 0x70]
mov r9d, r15d
lea rcx, [rsp + 0x30]
call fcn.140006810
jmp 0x140002c4f
lea r9, [rsp + 0x30]
cmp rcx, 8
cmovae r9, qword [rsp + 0x30]
cmp rbx, rdx
ja 0x140002c38
lea rax, [rbx + r15]
mov qword [rbp - 0x80], rax
lea rdi, [rsp + 0x70]
lea r8, [rbx + rbx]
lea rcx, [rdi + r15*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r15 + rbx]
mov word [rdi + rax*2], r14w
lea rax, [rsp + 0x70]
jmp 0x140002c4f
lfence
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x70]
call fcn.140006570
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov word [rax], r14w
mov qword [rax + 0x18], r15
mov qword [rax + 0x10], r14
mov rdx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rdi
sub rax, rdx
cmp rax, 1
jb 0x140002cb8
lea rcx, [rdx + 1]
mov qword [rsp + 0x60], rcx
lea rax, [rsp + 0x50]
cmp rdi, 8
cmovae rax, qword [rsp + 0x50]
mov edi, 0x3a
mov word [rax + rdx*2], di
mov word [rax + rcx*2], r14w
lea rax, [rsp + 0x50]
jmp 0x140002cda
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x140009a70]
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140006570
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
mov word [rax], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140002d3a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d35
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007080
movdqa xmm0, xmmword [0x14000a7c0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140002d92
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007080
movdqa xmm0, xmmword [0x14000a7c0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002dea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002de5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002de5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007080
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov r9, rsi
lea r8, [0x14000a420]
xor edx, edx
call qword [sym.imp.ole32.dll_CoGetObject]
test eax, eax
jns 0x140002e5f
lfence
mov edx, eax
lea rcx, str.CoGetObject_IRundown__failed_:__08lX_n
call fcn.140001020
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140002e5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e96
call fcn.140007080
xor al, al
jmp 0x140002ea4
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140002ea2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002e9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007080
mov al, 1
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140007020
mov rbx, qword [rsp + 0x160]
add rsp, 0x130
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rbx, rax
mov rdi, qword [rax]
xor r9d, r9d
lea r8d, [r9 + 0x58]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [rdi + 0x20]
xor edx, edx
mov rdi, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [rdi + 0x28]
mov r8, rsi
lea rdx, [0x14000a420]
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoUnmarshalInterface]
mov edi, eax
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
test edi, edi
jns 0x140002ea2
lfence
mov edx, edi
lea rcx, str.CoUnmarshalInterface_IRundown__failed_:__08lX_n
call fcn.140001020
xor al, al
jmp 0x140002ea4