Function at 0x140101120
Capabilities:
Encode data using base64

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x10], dl
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [rcx + 0x678]
lea rdi, [rcx + 0x358]
mov r13d, r8d
mov rbx, rcx
cmp byte [rax + 0x185], 0xa
jne 0x140101170
mov rdx, qword [rdi]
lea rsi, [rcx + 0x680]
mov rcx, qword [rsi]
call fcn.1400ffa70
test al, al
je 0x140101170
mov r12b, 1
jmp 0x14010117a
xor r12b, r12b
lea rsi, [rbx + 0x680]
mov rcx, qword [rbx + 0x698]
xor edx, edx
mov r15, qword [rdi]
mov qword [rsp + 0xb0], rbp
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rdi]
mov r14, rdi
movzx eax, word [rax + 0x10]
mov word [rsp + 0x30], ax
mov rax, qword [rbx + 0x628]
mov eax, dword [rax + 8]
mov qword [rsp + 0x40], rax
movzx eax, byte [rcx + 0x44]
mov byte [rsp + 0xa0], al
mov eax, dword [rcx + 0x40]
btr eax, 0x10
bts eax, 0xf
mov dword [rcx + 0x40], eax
mov rcx, rsi
test r12b, r12b
jne 0x140101215
test r13d, r13d
je 0x140101215
mov rax, qword [rbx + 0x678]
cmp byte [rax + 0x7a], 5
jne 0x140101215
mov rax, qword [rbx]
lea rbp, [rbx + 0x358]
mov rcx, rbx
lea r12, [rbx + 0x680]
mov r14, rbp
inc dword [rax + 0x10]
call fcn.1400fdea0
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x34], eax
jmp 0x14010124e
mov qword [rsp + 0x50], rcx
mov rbp, r14
mov rcx, rbx
call fcn.1400fdea0
mov qword [rsp + 0x48], rax
mov rax, qword [rbx]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x34], eax
test r12b, r12b
je 0x140101249
mov rcx, rbx
call fcn.140107ec0
add r13d, eax
mov rsi, r14
jmp 0x1401012a1
mov r12, qword [rsp + 0x50]
mov edx, r13d
mov rcx, rbx
call fcn.140100ab0
mov rax, qword [rbx + 0x678]
mov rsi, rbp
cmp byte [rax + 0x185], 0xa
jne 0x1401012a1
mov rax, qword [rdi]
cmp word [rax + 0x10], 0x3d
jne 0x1401012a1
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
mov rdx, qword [r14]
mov rcx, qword [r12]
call fcn.1400b1fa0
test al, al
je 0x1401012a1
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
lea rsi, [rbx + 0x358]
mov rax, qword [rbx]
cmp dword [rax + 0x10], 0x12c
jbe 0x1401012b4
xor eax, eax
jmp 0x140101739
cmp byte [rsp + 0xa0], 0x47
jne 0x1401012d2
mov rax, qword [rsi]
cmp word [rax + 0x10], 0x15
jne 0x1401012d2
mov dl, 0x87
mov rcx, rbx
call fcn.140104c80
lea rax, [rbx + 0x368]
cmp qword [rbx + 0x628], rax
jne 0x1401012ea
mov esi, dword [rbx + 0x540]
jmp 0x1401012ec
xor esi, esi
xor edx, edx
mov rcx, rbx
call fcn.1400fcfa0
mov rax, qword [rbx + 0x628]
mov ecx, dword [rax + 8]
test ecx, ecx
jne 0x14010130d
mov rdi, 0xffffffffffffffff
jmp 0x140101316
mov rdi, rcx
sub rdi, rsi
dec rdi
cmp byte [rsp + 0xd0], 0
je 0x140101326
mov rax, qword [rbx]
dec dword [rax + 0x10]
mov r14, qword [rbx]
movzx ebp, byte [rsp + 0xa8]
mov qword [rsp + 0x50], r14
mov byte [r14 + 0x1b], bpl
mov esi, dword [rbx + 0x670]
mov eax, dword [rbx + 0x638]
shl eax, 6
lea ecx, [rsi + 1]
cmp ecx, eax
jbe 0x140101363
mov edx, ecx
xor r8d, r8d
lea rcx, [rbx + 0x630]
call fcn.140075200
jmp 0x140101369
mov dword [rbx + 0x670], ecx
test bpl, bpl
je 0x140101392
mov rax, qword [rbx + 0x630]
mov r8, rsi
mov rcx, rsi
and r8d, 0x3f
shr rcx, 6
lea rdx, [rax + rcx*8]
mov rax, qword [rax + rcx*8]
bts rax, r8
mov qword [rdx], rax
test r13d, r13d
je 0x1401013ab
mov rax, qword [rbx + 0x678]
cmp byte [rax + 0x7a], 5
je 0x1401013ab
mov rax, qword [rbx]
add dword [rax + 0x10], r13d
mov r8, qword [rsp + 0xc8]
lea r9, [rsp + 0x38]
mov rdx, r15
mov qword [rsp + 0x38], 0
mov rcx, rbx
call fcn.1401033f0
mov rcx, rbx
movzx esi, al
call fcn.1400fe9c0
test al, al
jne 0x1401016e8
cmp byte [rsp + 0xa0], 0x47
mov rcx, qword [rbx + 0x358]
jne 0x1401013f6
cmp byte [rcx + 0x44], 0x48
jmp 0x1401013fb
cmp word [rcx + 0x10], 0x18
setne dl
test dl, dl
je 0x140101426
mov rax, qword [rbx]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x10], ecx
mov rcx, qword [rbx + 0x358]
mov eax, dword [rcx + 0x40]
btr eax, 0x10
bts eax, 0xf
mov dword [rcx + 0x40], eax
jmp 0x1401016e8
cmp word [rcx + 0x10], 0x18
jne 0x140101451
cmp byte [r15 + 0x44], 0x4a
jne 0x140101451
cmp byte [rcx + 0x128], 0
je 0x140101446
cmp dword [rcx + 0x100], 1
je 0x140101451
or dword [rcx + 0x40], 0x200000
mov byte [rcx + 0x44], 0x4c
mov rax, qword [rbx + 0x358]
cmp word [rax + 0x10], 0x18
jne 0x14010146b
cmp byte [r15 + 0x44], 0x2d
jne 0x14010146b
mov bpl, 1
jmp 0x14010146e
xor bpl, bpl
mov r14, r15
test sil, sil
je 0x14010156a
mov rsi, qword [r15 + 0xd0]
test rsi, rsi
jne 0x140101492
cmp word [rsp + 0x30], 4
je 0x14010156a
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1401014a9
cmp byte [rax + 0xe3], 0
jne 0x1401014a9
mov al, 1
jmp 0x1401014ab
xor al, al
cmp byte [rsp + 0xc0], 0
je 0x1401014bd
test al, al
je 0x14010156a
cmp byte [r15 + 0x44], 0x25
jne 0x1401014c8
test al, al
jne 0x1401014e9
mov rcx, qword [rbx + 0x698]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp word [rax + 0x10], 0x18
jne 0x1401014e9
cmp byte [rax + 0xe3], 0
je 0x14010156a
mov rdx, qword [rbx + 0x628]
mov eax, dword [rdx + 8]
mov rdx, qword [rdx]
imul rcx, rax, 0x38
mov eax, dword [rsp + 0x34]
add rdx, 0xffffffffffffffc8
add rdx, rcx
inc eax
cmp dword [rdx + 0x10], eax
jne 0x14010151b
xor r8d, r8d
mov rcx, rbx
call fcn.140100210
test al, al
je 0x14010156a
cmp byte [r15 + 0x44], 0x25
je 0x14010154e
test rsi, rsi
jne 0x14010152f
dec qword [rsp + 0x40]
xor r14d, r14d
mov rax, qword [rbx + 0x628]
mov r8, r14
imul rdx, qword [rsp + 0x40], 0x38
mov rcx, rbx
add rdx, qword [rax]
call fcn.140100210
test al, al
je 0x14010156a
mov rax, qword [rbx + 0x358]
mov qword [r15 + 0xc8], rax
mov rax, qword [rbx + 0x358]
mov qword [rax + 0xc8], r15
mov rcx, rbx
call fcn.1400fdea0
neg r13d
mov rcx, rbx
mov edx, r13d
mov rsi, rax
call fcn.140100ab0
mov rcx, qword [rbx + 0x678]
cmp byte [rcx + 0x29c], 0
je 0x1401015cf
test bpl, bpl
je 0x1401015cf
mov rcx, qword [rbx + 0x358]
cmp word [rcx + 0x10], 0x3e
jne 0x1401015cf
nop word [rax + rax]
mov byte [rcx + 0xe3], 1
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
mov rcx, qword [rbx + 0x358]
cmp word [rcx + 0x10], 0x3e
je 0x1401015b0
mov rax, qword [rbx + 0x678]
cmp byte [rax + 0x185], 0xa
jne 0x140101618
mov rax, qword [rbx + 0x358]
cmp word [rax + 0x10], 0x3d
jne 0x140101618
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
mov rdx, qword [rbx + 0x358]
mov rcx, qword [rbx + 0x680]
call fcn.1400b1fa0
test al, al
je 0x140101618
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
cmp byte [rsp + 0xa0], 0x47
jne 0x14010163a
mov rax, qword [rbx + 0x358]
cmp word [rax + 0x10], 0x15
jne 0x14010163a
mov dl, 0x87
mov rcx, rbx
call fcn.140104c80
mov rax, qword [rbx]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x10], ecx
mov ecx, 0xa2
mov rax, qword [rbx + 0x358]
cmp word [rax + 0x10], cx
jne 0x140101660
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
mov rax, qword [rbx + 0x358]
cmp word [rax + 0x10], 0x24
jne 0x140101694
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.140105d30
cmp byte [rsp + 0xb8], 0
je 0x1401016b6
mov rax, qword [rbx + 0x358]
cmp word [rax + 0x10], 0x3e
jne 0x1401016b6
xor edx, edx
mov rcx, rbx
call fcn.140100ab0
cmp qword [rsp + 0x48], rsi
jne 0x1401016e3
mov rax, qword [rbx]
mov qword [rax + 0x20], rdi
cmp rdi, 0xffffffffffffffff
je 0x1401016e3
mov rax, qword [rbx + 0x628]
mov edx, dword [rax + 8]
mov rax, qword [rax]
dec rdx
imul rcx, rdi, 0x38
mov qword [rcx + rax + 0x28], rdx
mov r14, qword [rsp + 0x50]
mov edx, dword [rbx + 0x670]
lea rcx, [rbx + 0x630]
mov rdi, qword [rsp + 0x38]
dec edx
xor r8d, r8d
call fcn.140075200
mov ecx, dword [rbx + 0x670]
test ecx, ecx
je 0x140101730
dec ecx
mov eax, ecx
shr rcx, 6
and eax, 0x3f
movzx edx, al
mov rax, qword [rbx + 0x630]
mov rcx, qword [rax + rcx*8]
bt rcx, rdx
setb al
jmp 0x140101732
mov al, 1
mov byte [r14 + 0x1b], al
mov rax, rdi
mov rbp, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret