Function at 0x1400395a0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov dword [rsp + 0x88], 0x80004005
xor r12d, r12d
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea r13, [rcx - 1]
lea rcx, [0x14011d880]
mov rax, qword [0x14011d880]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
test rbp, rbp
je 0x140039652
test rbp, 0xffffffffffff0000
jne 0x140039640
movzx edi, bp
xor edx, edx
mov ecx, edi
call fcn.1400017e0
test rax, rax
je 0x140039669
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140003ad0
jmp 0x140039664
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
dec rcx
jmp 0x140039654
xor ecx, ecx
mov r8d, ecx
mov rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.140039100
mov rbx, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0
jl 0x1400396e9
lea rdx, [0x1400e3c0c]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__mbsstr]
test rax, rax
je 0x1400396a9
sub eax, ebx
js 0x1400396a9
lea eax, [r13 - 4]
cdq
and edx, 3
add eax, edx
mov ecx, eax
and eax, 3
sar ecx, 2
cmp eax, edx
je 0x1400396a3
jmp 0x1400397e3
lea eax, [rcx + rcx*2 + 1]
jmp 0x140039706
cmp dword [rbx - 0x10], 0
jl 0x1400396e9
lea rdx, [0x1400e3c08]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll__mbsstr]
test rax, rax
je 0x1400396e9
sub eax, ebx
js 0x1400396e9
lea eax, [r13 - 4]
cdq
and edx, 3
add eax, edx
mov ecx, eax
and eax, 3
sar ecx, 2
cmp eax, edx
je 0x1400396e3
jmp 0x1400397e3
lea eax, [rcx + rcx*2 + 2]
jmp 0x140039706
mov eax, r13d
cdq
and edx, 3
add eax, edx
mov ecx, eax
and eax, 3
sar ecx, 2
cmp eax, edx
je 0x140039703
jmp 0x1400397e3
lea eax, [rcx + rcx*2]
mov dword [r15], eax
mov ecx, eax
inc ecx
call fcn.1400ca8e8
mov rdi, rax
mov qword [r14], rax
mov ecx, dword [r15]
inc ecx
xor eax, eax
rep stosb byte [rdi], al
xor r8d, r8d
xor edi, edi
cmp dword [r15], eax
je 0x1400397d8
lea r9, [0x1400e3a60]
nop word [rax + rax]
movzx eax, byte [rbp]
cmp al, 0x7f
jg 0x1400397d6
movsx rax, al
movzx edx, byte [rax + r9]
cmp dl, 0xff
je 0x1400397d6
mov ecx, r12d
test r12d, r12d
je 0x1400397b9
dec ecx
je 0x14003979c
dec ecx
je 0x14003977f
dec ecx
jne 0x1400397c8
mov rax, qword [r14]
or byte [rax + rdi], dl
inc r8d
inc rdi
xor r12d, r12d
jmp 0x1400397c8
mov rcx, qword [r14]
movzx eax, dl
shr al, 2
or byte [rcx + rdi], al
inc r8d
inc rdi
shl dl, 6
mov r12d, 3
jmp 0x1400397c2
mov rcx, qword [r14]
movzx eax, dl
shr al, 4
or byte [rcx + rdi], al
inc r8d
inc rdi
shl dl, 4
mov r12d, 2
jmp 0x1400397c2
shl dl, 2
mov r12d, 1
mov rax, qword [r14]
mov byte [rdi + rax], dl
inc rbp
cmp dword [r15], r8d
jne 0x140039740
jmp 0x1400397d8
jmp 0x1400397e3
mov dword [rsp + 0x88], 0
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400397fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, dword [rsp + 0x88]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret