Function at 0x1400b4a40
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
movsxd rbp, dword [rsp + 0xb0]
mov r11, rdx
mov edx, dword [rcx]
mov rsi, r8
mov r13, rcx
lea r8, [rcx + 8]
test edx, edx
jle 0x1400b4c20
movsxd rax, edx
xor r12d, r12d
mov r10d, 1
cmp byte [r8 + rax - 1], 0x3d
je 0x1400b4bf8
xor eax, eax
test ebp, ebp
je 0x1400b4b46
test byte [r13 + 0x5c], 2
lea rcx, [0x140292480]
lea rax, [0x140292400]
cmove rax, rcx
test ebp, ebp
jle 0x1400b4de0
mov qword [rsp + 0xa0], rsi
lea r10, [r9 + rbp]
mov r14, rax
xor ebp, ebp
movzx ecx, byte [r9]
add r9, 1
test cl, cl
js 0x1400b4be0
movzx eax, cl
movzx ebx, byte [r14 + rax]
mov eax, ebx
cmp ebx, 0xff
je 0x1400b4be0
cmp cl, 0x3d
je 0x1400b4b60
test r12d, r12d
jle 0x1400b4b6a
or eax, 0x13
cmp al, 0xf3
jne 0x1400b4be0
cmp ebx, 0xf2
je 0x1400b4d48
cmp edx, 0x40
je 0x1400b4b95
cmp r9, r10
jne 0x1400b4ac1
mov rsi, qword [rsp + 0xa0]
xor ebx, ebx
test edx, edx
jg 0x1400b4d5f
mov ebx, edx
test r12d, r12d
sete r10b
test ebx, ebx
jne 0x1400b4e00
test r10b, r10b
jne 0x1400b4e00
xor edx, edx
xor eax, eax
mov dword [rsi], ebp
mov dword [r13], edx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add r12d, 1
cmp r12d, 3
je 0x1400b4be0
cmp ebx, 0xf2
je 0x1400b4d48
or eax, 0x13
cmp al, 0xf3
je 0x1400b4b08
cmp edx, 0x3f
jg 0x1400b4be0
movsxd rax, edx
add edx, 1
mov byte [r8 + rax], cl
cmp edx, 0x40
jne 0x1400b4b11
test byte [r13 + 0x5c], 2
lea rbx, [0x140292400]
lea rcx, [r13 + 0x48]
mov rdx, r8
lea rax, [0x140292480]
cmove rbx, rax
nop dword [rax + rax]
movzx eax, byte [rdx]
test al, al
js 0x1400b4c30
cmp byte [rbx + rax], 0xe0
jne 0x1400b4c30
add rdx, 1
cmp rdx, rcx
jne 0x1400b4bb8
test r12d, r12d
jg 0x1400b4d30
xor r15d, r15d
jmp 0x1400b4d7f
mov rsi, qword [rsp + 0xa0]
mov eax, 0xffffffff
jmp 0x1400b4b46
xor r10d, r10d
mov r12d, 1
cmp edx, 1
je 0x1400b4a87
xor r12d, r12d
cmp byte [r8 + rax - 2], 0x3d
sete r12b
add r12d, 1
jmp 0x1400b4a87
mov r10d, 1
xor r12d, r12d
jmp 0x1400b4a87
lea eax, [r8 + 0x40]
sub eax, edx
cmp eax, 3
jle 0x1400b4d30
cdqe
jmp 0x1400b4c65
movzx ecx, byte [rbx + rcx]
or ecx, 0x13
cmp cl, 0xf3
jne 0x1400b4dc8
sub rax, 1
cmp eax, 3
jle 0x1400b4d30
movzx ecx, byte [rdx + rax - 1]
mov edi, eax
test cl, cl
jns 0x1400b4c48
test al, 3
jne 0x1400b4d30
sub eax, 1
mov qword [rsp + 0x28], r14
mov rdi, r11
xor r15d, r15d
shr eax, 2
mov qword [rsp + 0x30], r8
add eax, 1
mov dword [rsp + 0x3c], r12d
lea rsi, [rdx + rax*4]
jmp 0x1400b4d09
movzx r8d, byte [rbx + rax]
movzx eax, byte [rdx + 1]
test al, al
js 0x1400b4d20
movzx ecx, byte [rdx + 2]
movzx eax, byte [rbx + rax]
test cl, cl
js 0x1400b4d30
movzx r12d, byte [rdx + 3]
add rdx, 4
movzx ecx, byte [rbx + rcx]
test r12b, r12b
js 0x1400b4d30
movzx r12d, byte [rbx + r12]
mov r14d, r12d
or r14d, r8d
or r14d, eax
or r14b, cl
js 0x1400b4d30
shl r8d, 0x12
shl eax, 0xc
add rdi, 3
add r15d, 3
or r12d, r8d
shl ecx, 6
or eax, r12d
or ecx, eax
shr eax, 0x10
mov byte [rdi - 3], al
mov byte [rdi - 2], ch
mov byte [rdi - 1], cl
cmp rsi, rdx
je 0x1400b4d70
movzx eax, byte [rdx]
test al, al
jns 0x1400b4ca0
movzx eax, byte [rdx + 1]
mov r8d, 0xff
test al, al
jns 0x1400b4cad
nop
movzx ecx, byte [rdx + 2]
mov eax, 0xff
test cl, cl
jns 0x1400b4cb9
nop dword [rax]
mov rsi, qword [rsp + 0xa0]
xor edx, edx
mov eax, 0xffffffff
jmp 0x1400b4b46
mov rsi, qword [rsp + 0xa0]
mov ebx, 1
xor eax, eax
test edx, edx
jle 0x1400b4b46
test dl, 3
je 0x1400b4d94
neg ebx
sbb eax, eax
or eax, 1
jmp 0x1400b4b46
mov r14, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x3c]
sub r15d, r12d
xor edx, edx
add ebp, r15d
movsxd r15, r15d
add r11, r15
jmp 0x1400b4b11
xor ebx, ebx
mov r9d, edx
mov rcx, r13
mov rdx, r11
call fcn.1400b45b0
xor edx, edx
test r12d, r12d
cmovns edx, r12d
cmp edx, eax
jg 0x1400b4d38
sub eax, r12d
add ebp, eax
test ebx, ebx
je 0x1400b4b2a
jmp 0x1400b4b42
and edi, 3
je 0x1400b4c78
jmp 0x1400b4d30
test edx, edx
jle 0x1400b4df7
mov ebp, edx
and ebp, 3
je 0x1400b4d92
xor ebp, ebp
mov eax, 1
jmp 0x1400b4b46
mov ebx, edx
xor ebp, ebp
jmp 0x1400b4b31
mov edx, ebx
mov eax, 1
jmp 0x1400b4b46