Function at 0x140013450
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r15
sub rsp, 0x4f8
xor ebp, ebp
xor edi, edi
xor r15d, r15d
mov rsi, rcx
mov dword [0x14001e7a8], 1
mov dword [rax + 0x18], ebp
mov qword [rax + 0x20], rbp
cmp dword [rcx + 0x30], edi
jle 0x14001374a
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r14
mov qword [rax - 0x28], rbx
xor r13d, r13d
test rbp, rbp
je 0x1400134b2
mov rcx, qword [0x14001e780]
mov r8, rbp
mov edx, 8
call qword [0x14001e798]
xor ebp, ebp
mov rcx, qword [rsi + 0x38]
mov rcx, qword [r13 + rcx + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov r12d, eax
mov rax, qword [rsi + 0x38]
lea r8d, [r9 + 1]
mov r14, qword [r13 + rax + 8]
lea rax, [rsp + 0x520]
mov edx, r12d
mov rcx, r14
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x520], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x1400136e5
mov ecx, dword [rsp + 0x520]
xor edx, edx
call fcn.14000e210
mov rbx, rax
test rax, rax
je 0x1400136e5
xor eax, eax
mov r9, rbx
mov r8d, 7
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x520]
mov edx, r12d
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x140013576
mov rcx, qword [0x14001e780]
lea edx, [rax + 8]
mov r8, rbx
call qword [0x14001e798]
jmp 0x1400136e5
mov eax, dword [rsp + 0x520]
mov rbp, rbx
mov dword [rsp + 0x528], eax
test rdi, rdi
je 0x1400135a3
mov rcx, qword [0x14001e780]
mov r8, rdi
mov edx, 8
call qword [0x14001e798]
xor edi, edi
mov rax, qword [rsi + 0x38]
or r9d, 0xffffffff
xor edx, edx
mov r14, qword [r13 + rax]
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov r8, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12d, eax
test eax, eax
je 0x1400136e5
lea ecx, [r12 + 1]
xor edx, edx
call fcn.14000e210
or r9d, 0xffffffff
mov r8, r14
mov rdi, rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140013636
test rdi, rdi
je 0x14001362f
mov rcx, qword [0x14001e780]
lea edx, [rax + 8]
mov r8, rdi
call qword [0x14001e798]
xor edi, edi
jmp 0x1400136e5
mov eax, dword [rsp + 0x528]
lea rcx, [rsp + 0x50]
mov byte [r12 + rdi], 0
mov rdx, qword [rsi + 0x60]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x530]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x538]
mov r9, rbx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0xd0]
mov r8, rdi
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140011a60
test eax, eax
je 0x1400136e5
cmp dword [rsi + 0xac], 0
je 0x1400136d9
mov rbx, qword [rsp + 0x538]
test rbx, rbx
je 0x1400136d9
mov rax, qword [rbx - 8]
mov rdx, qword [rsi + 0x108]
xor r9d, r9d
lea r8d, [r9 + 1]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140013090
mov rcx, qword [0x14001e780]
lea r8, [rbx - 8]
mov edx, 8
call qword [0x14001e798]
mov qword [rsp + 0x538], 0
inc r15d
add r13, 0x10
cmp r15d, dword [rsi + 0x30]
jl 0x140013496
mov r14, qword [rsp + 0x4d8]
mov r13, qword [rsp + 0x4e0]
mov r12, qword [rsp + 0x4e8]
mov rbx, qword [rsp + 0x4f0]
test rbp, rbp
je 0x140013730
mov rcx, qword [0x14001e780]
mov r8, rbp
mov edx, 8
call qword [0x14001e798]
test rdi, rdi
je 0x14001374a
mov rcx, qword [0x14001e780]
mov r8, rdi
mov edx, 8
call qword [0x14001e798]
mov eax, 1
add rsp, 0x4f8
pop r15
pop rdi
pop rsi
pop rbp
ret