Function at 0x140031ff0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x90
cmp qword [rbp + 0xa7], 0
mov r13, r9
mov esi, edx
mov rdi, rcx
je 0x1400320e0
mov rbx, qword [rbp + 0x8f]
test rbx, rbx
jne 0x1400320c5
mov r14, qword [rbp + 0x9f]
lea rax, [rbp + 0x6f]
mov r9, qword [rbp + 0x77]
lea r8, [rbp + 0x8f]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x87]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xa7]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x9f]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x5f]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x57]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x19], r14
call fcn.14003c1c0
mov rbx, qword [rbp + 0x8f]
test rbx, rbx
jne 0x1400320b5
xor eax, eax
jmp 0x140032726
mov r15, qword [rbp + 0x9f]
mov qword [rbp - 0x11], r15
jmp 0x14003215e
mov r15, qword [rbp + 0x9f]
mov r14, qword [rbp + 0x97]
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x19], r14
jmp 0x140032162
mov rax, qword [rbp + 0x97]
lea rcx, [rbp + 0x6f]
mov r9, qword [rbp + 0x77]
lea r8, [rbp + 0x8f]
mov rdx, qword [rbp + 0x7f]
mov qword [rsp + 0x50], rcx
mov rcx, rdi
mov qword [rbp - 0x11], rax
lea rax, [rbp + 0xa7]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x5f]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x97]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x57]
mov qword [rsp + 0x20], rax
call fcn.14003bbf0
cmp qword [rbp + 0xa7], 0
je 0x1400320ae
mov r14, qword [rbp + 0x97]
mov rbx, qword [rbp + 0x8f]
mov qword [rbp - 0x19], r14
mov r13, qword [rbp + 0x5f]
mov eax, dword [rbp + 0x6f]
mov rdi, qword [rdi + 0x20]
mov qword [rsp + 0x88], r12
lea r12d, [rsi + rsi]
mov dword [rbp - 0x29], eax
test eax, eax
jne 0x140032193
mov eax, 2
mov edx, r12d
add rdx, r13
mov dword [rbp - 0x29], eax
mov rcx, r14
lea r8d, [rax - 1]
call rdi
movabs rax, 0x5ddddddddddddddd
lea r14d, [rsi*4]
add r14, rbx
mov qword [rbx], rax
mov rcx, r14
mov r8d, 1
sub rcx, rsi
mov rdx, r14
mov rbx, r14
mov r15, rsi
call rdi
mov esi, r12d
mov r12d, 9
add r14, rsi
nop
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call rdi
add r14, rsi
add rbx, rsi
mov rdx, r14
mov rcx, rbx
mov r8d, 1
call rdi
add r14, rsi
add rbx, r15
mov rdx, r14
mov rcx, rbx
mov r8d, 1
call rdi
add r14, rsi
add rbx, r15
add r12d, 0xffffffff
jne 0x1400321d0
mov eax, dword [rbp - 0x29]
cmp eax, 0x1e
jae 0x140032228
lea ecx, [rax - 1]
mov r12d, 1
shl r12, cl
jmp 0x14003222b
xor r12d, r12d
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call rdi
add rbx, rsi
lea rdx, [rsi + r14]
mov rcx, rbx
mov r8d, 1
call rdi
mov rdx, qword [rbp - 0x19]
add rbx, r15
mov rcx, rbx
mov r8d, 1
mov r14, r13
call rdi
mov eax, 4
add rbx, r15
mov dword [rbp - 0x21], eax
mov dword [rbp - 0x25], eax
nop
lea r13, [rsi + rbx]
mov r8d, 1
mov rcx, rbx
test r12b, 0x3f
je 0x1400322e9
mov rax, r12
shr r12, 2
and eax, 2
add rax, 2
imul rax, r15
add r14, rax
mov rdx, r14
call rdi
mov rax, r12
mov r8d, 1
and eax, 2
shr r12, 2
add rax, 2
mov rcx, r13
imul rax, r15
add r14, rax
mov rdx, r14
call rdi
mov rax, r12
lea rbx, [r15 + r13]
and eax, 2
shr r12, 2
add rax, 2
mov r8d, 1
imul rax, r15
mov rcx, rbx
add r14, rax
mov rdx, r14
call rdi
jmp 0x14003231b
add r14, rsi
mov rdx, r14
call rdi
add r14, rsi
mov r8d, 1
mov rdx, r14
mov rcx, r13
call rdi
lea rbx, [r15 + r13]
add r14, rsi
mov rdx, r14
mov rcx, rbx
mov r8d, 1
call rdi
shr r12, 6
add rbx, r15
add dword [rbp - 0x25], 0xffffffff
jne 0x140032270
mov rax, r12
mov r8d, 1
and eax, 2
mov rcx, rbx
add rax, 2
imul rax, r15
add r14, rax
mov rdx, r14
call rdi
shr r12, 2
lea rcx, [rsi + rbx]
and r12d, 2
mov r8d, 1
lea rdx, [r12 + 2]
imul rdx, r15
add rdx, r14
call rdi
mov r14d, dword [rbp + 0x4f]
mov r12d, 0xa
mov r13, qword [rbp + 0xa7]
shl r14d, 6
add r13, r14
mov rbx, r13
sub rbx, r15
sub r13, rsi
mov rdx, r13
mov rcx, rbx
mov r8d, 1
call rdi
sub rbx, r15
sub r13, rsi
mov rdx, r13
mov rcx, rbx
mov r8d, 1
call rdi
sub rbx, rsi
sub r13, rsi
mov rdx, r13
mov rcx, rbx
mov r8d, 1
call rdi
add r12d, 0xffffffff
jne 0x140032382
mov eax, dword [rbp - 0x29]
cmp eax, 0x20
jbe 0x1400323de
mov ecx, 0x3f
mov r12d, 1
sub ecx, eax
shl r12, cl
jmp 0x1400323e1
xor r12d, r12d
sub rbx, r15
sub r13, rsi
mov rdx, r13
mov rcx, rbx
mov r8d, 1
call rdi
mov rdx, qword [rbp - 0x11]
sub rbx, r15
mov rcx, rbx
mov r8d, 1
call rdi
mov r13, qword [rbp + 0x5f]
mov rax, r12
and eax, 2
shr r12, 2
add rax, 2
sub rbx, rsi
imul rax, r15
mov r8d, 1
mov rcx, rbx
sub r14, rax
add r14, r13
mov rdx, r14
call rdi
nop dword [rax]
nop dword [rax + rax]
sub rbx, r15
mov r8d, 1
mov rcx, rbx
test r12b, 0x3f
je 0x1400324ba
mov rax, r12
shr r12, 2
and eax, 2
add rax, 2
imul rax, r15
sub r14, rax
mov rdx, r14
call rdi
mov rax, r12
sub rbx, r15
and eax, 2
shr r12, 2
add rax, 2
mov r8d, 1
imul rax, r15
mov rcx, rbx
sub r14, rax
mov rdx, r14
call rdi
mov rax, r12
sub rbx, rsi
and eax, 2
shr r12, 2
add rax, 2
mov r8d, 1
imul rax, r15
mov rcx, rbx
sub r14, rax
mov rdx, r14
call rdi
jmp 0x1400324ee
sub r14, rsi
mov rdx, r14
call rdi
sub rbx, r15
sub r14, rsi
mov rdx, r14
mov rcx, rbx
mov r8d, 1
call rdi
sub rbx, rsi
sub r14, rsi
mov rdx, r14
mov rcx, rbx
mov r8d, 1
call rdi
shr r12, 6
add dword [rbp - 0x21], 0xffffffff
jne 0x140032440
mov rax, r12
sub rbx, r15
and eax, 2
mov r8d, 1
add rax, 2
mov rcx, rbx
imul rax, r15
sub r14, rax
mov rdx, r14
call rdi
shr r12, 2
sub rbx, r15
and r12d, 2
mov r8d, 1
add r12, 2
mov rcx, rbx
imul r12, r15
sub r14, r12
mov rdx, r14
call rdi
cmp dword [rbp - 0x29], 0x20
movabs rcx, 0xdddddddddddddddd
mov rax, qword [rbp + 0xa7]
mov r14d, dword [rbp + 0x4f]
mov qword [rax], rcx
jae 0x140032564
mov edx, r14d
shl edx, 5
jmp 0x140032568
imul edx, r14d, 0x1e
mov ebx, dword [rbp + 0x67]
add rdx, r13
mov eax, ebx
mov r8d, 1
xor eax, 0x3f
je 0x1400325b3
mov rcx, qword [rbp - 0x19]
call rdi
mov rcx, qword [rbp + 0x57]
mov r9, rdi
mov r8d, ebx
mov edx, r14d
call fcn.140031c00
mov r8, qword [rbp + 0x47]
mov rdx, r13
mov ebx, eax
mov rcx, qword [r8 + 0x48]
call qword [r8 + 0x30]
test eax, eax
jne 0x140032715
mov eax, ebx
jmp 0x14003271e
mov rcx, qword [rbp - 0x11]
call rdi
mov r10, qword [rbp + 0x57]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov edx, 0x20
mov r9, qword [r10]
mov r8, r9
and r8, rax
mov rcx, r8
shr rcx, 0x20
neg rcx
shr rcx, 0x20
and ecx, 0x20
shr r8, cl
sub rdx, rcx
lea rcx, [r8 - 0x10000]
shr rcx, 0x20
and ecx, 0x10
shl r8, cl
add rdx, rcx
lea rcx, [r8 - 0x1000000]
shr rcx, 0x20
and ecx, 8
shl r8, cl
add rdx, rcx
lea rcx, [r8 - 0x10000000]
shr rcx, 0x20
and ecx, 4
shl r8, cl
add rdx, rcx
add edx, 2
lea rcx, [r8 - 0x40000000]
shr rcx, 0x20
and ecx, 2
shl r8, cl
shr r8, 0x1e
mov rax, r8
shr rax, 1
not eax
and eax, r8d
sub ecx, eax
mov eax, r14d
add ecx, edx
shl eax, 6
mov r8d, ecx
mov r11d, eax
xor r8d, 0x3f
mov edx, r8d
btr r9, rdx
mov qword [r10], r9
test ecx, ecx
je 0x1400326f2
mov rax, qword [rax + r10 + 0x1e8]
lea r9d, [rbx - 1]
imul r9d, r14d
mov r12d, 0x3d
mov qword [r11 + r10 + 0x1f8], rax
sub r12d, r8d
lea eax, [rbx - 2]
lea r14, [r11 + rax*8]
add r14, r10
add r9, r10
shr r12d, 1
je 0x1400326d8
nop dword [rax]
nop dword [rax + rax]
mov rbx, r9
mov r8d, 1
sub rbx, rsi
mov rcx, r9
mov rdx, rbx
call rdi
mov rax, qword [r14 - 0x10]
mov r9, rbx
mov qword [r14], rax
add r14, 0xfffffffffffffff0
add r12d, 0xffffffff
jne 0x1400326b0
mov rdx, r9
mov r8d, 1
sub rdx, r15
mov rcx, r9
call rdi
mov rax, qword [r14 - 8]
mov qword [r14], rax
jmp 0x140032702
mov rax, qword [rax + r10 + 0x1f0]
mov qword [r11 + r10 + 0x1f8], rax
mov r8, qword [rbp + 0x47]
mov rdx, r13
mov rcx, qword [r8 + 0x48]
call qword [r8 + 0x30]
test eax, eax
je 0x14003271c
mov eax, 0xfffffffd
jmp 0x14003271e
xor eax, eax
mov r12, qword [rsp + 0x88]
add rsp, 0x90
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret