Function at 0x140370ab0
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov rbp, rsp
mov r11, rdx
mov r10, rcx
mov rdi, qword [rbp + 0x60]
cmp rcx, r8
mov rax, rdx
sbb rax, r9
jae 0x140370ae5
test rdi, rdi
je 0x140370ade
mov qword [rdi], r10
mov qword [rdi + 8], r11
xor esi, esi
jmp 0x140370c83
test r9, r9
je 0x140370c97
lzcnt rcx, r9
lzcnt rax, r11
sub cl, al
shld r9, r8, cl
shlx rax, r8, rcx
xor esi, esi
test cl, 0x40
cmovne r9, rax
cmovne rax, rsi
mov r8d, ecx
and r8b, 0x7f
inc cl
movzx edx, cl
mov ecx, edx
and ecx, 3
cmp r8b, 3
jb 0x140370c2f
and edx, 0x7f
and edx, 0xfffffffc
xor esi, esi
movabs r8, 0x3ffffffffffffffe
nop dword [rax]
mov rbx, r11
not rbx
mov r14, r10
not r14
add r14, rax
adc rbx, r9
shld rsi, rbx, 2
sar rbx, 0x3f
mov r14, rbx
and r14, r9
and rbx, rax
sub r10, rbx
sbb r11, r14
mov r14, r9
shld r14, rax, 0x3f
mov r15, r9
shr r15, 1
and rsi, r8
mov r12, r11
not r12
mov rbx, r10
not rbx
add rbx, r14
adc r12, r15
mov rbx, r12
shr rbx, 0x3f
or rbx, rsi
sar r12, 0x3f
and r15, r12
and r12, r14
sub r10, r12
sbb r11, r15
mov rsi, r9
shld rsi, rax, 0x3e
mov r14, r9
shr r14, 2
mov r15, r11
not r15
mov r12, r10
not r12
add r12, rsi
adc r15, r14
shld rbx, r15, 2
sar r15, 0x3f
and r14, r15
and r15, rsi
sub r10, r15
sbb r11, r14
mov r14, r9
shld r14, rax, 0x3d
mov r15, r9
shr r15, 3
and rbx, 0xfffffffffffffffe
mov r12, r11
not r12
mov rsi, r10
not rsi
add rsi, r14
adc r12, r15
mov rsi, r12
shr rsi, 0x3f
or rsi, rbx
sar r12, 0x3f
and r15, r12
and r12, r14
sub r10, r12
sbb r11, r15
shrd rax, r9, 4
shr r9, 4
add rdx, 0xfffffffffffffffc
jne 0x140370b40
test rcx, rcx
je 0x140370c77
nop word cs:[rax + rax]
mov rdx, r11
not rdx
mov r8, r10
not r8
add r8, rax
adc rdx, r9
shld rsi, rdx, 1
sar rdx, 0x3f
mov r8, rdx
and r8, r9
and rdx, rax
sub r10, rdx
sbb r11, r8
shrd rax, r9, 1
shr r9, 1
dec rcx
jne 0x140370c40
test rdi, rdi
je 0x140370c83
mov qword [rdi], r10
mov qword [rdi + 8], r11
xor r9d, r9d
mov rax, rsi
mov rdx, r9
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
cmp r11, r8
jae 0x140370cef
lzcnt rcx, r8
je 0x140370cbe
shlx r8, r8, rcx
shlx rax, r11, rcx
mov edx, ecx
neg dl
shrx r11, r10, rdx
or r11, rax
shlx r10, r10, rcx
mov rbx, r8
shr rbx, 0x20
mov r14d, r8d
mov r15, r10
shr r15, 0x20
mov r9d, r10d
mov rax, r11
shr rax, 0x20
je 0x140370d65
mov rax, r11
xor edx, edx
div rbx
mov rsi, rax
jmp 0x140370d7f
mov rax, r11
or rax, r8
shr rax, 0x20
je 0x140370dc9
mov rax, r11
xor edx, edx
div r8
mov r11, rdx
mov r9, rax
lzcnt rax, r8
mov rcx, rax
and rcx, 0x3f
je 0x140370d34
shlx r8, r8, rcx
shlx rdx, r11, rcx
neg al
shrx r11, r10, rax
or r11, rdx
shlx r10, r10, rcx
mov rbx, r8
shr rbx, 0x20
mov r14d, r8d
mov r15, r10
shr r15, 0x20
mov r10d, r10d
mov rax, r11
shr rax, 0x20
je 0x140370dee
mov rax, r11
xor edx, edx
div rbx
mov rsi, rax
jmp 0x140370e0f
mov eax, r11d
xor edx, edx
div ebx
mov esi, eax
jmp 0x140370d7f
dec rsi
add rdx, rbx
mov rax, rdx
shr rax, 0x20
jne 0x140370d9e
mov rax, rsi
shr rax, 0x20
jne 0x140370d70
mov rax, rsi
imul rax, r14
mov r10, rdx
shl r10, 0x20
or r10, r15
cmp rax, r10
ja 0x140370d70
shl r11, 0x20
or r11, r15
mov rax, rsi
imul rax, r8
sub r11, rax
mov rax, r11
shr rax, 0x20
je 0x140370e52
mov rax, r11
xor edx, edx
div rbx
jmp 0x140370e6f
mov eax, r11d
xor edx, edx
div r8d
mov r11d, edx
mov r9d, eax
lzcnt rax, r8
mov rcx, rax
and rcx, 0x3f
jne 0x140370d1b
jmp 0x140370d34
mov eax, r11d
xor edx, edx
div ebx
mov esi, eax
jmp 0x140370e0f
dec rsi
add rdx, rbx
mov rax, rdx
shr rax, 0x20
jne 0x140370e2e
mov rax, rsi
shr rax, 0x20
jne 0x140370e00
mov rax, rsi
imul rax, r14
mov r12, rdx
shl r12, 0x20
or r12, r15
cmp rax, r12
ja 0x140370e00
shl r11, 0x20
or r11, r15
mov rax, rsi
imul rax, r8
sub r11, rax
mov rax, r11
shr rax, 0x20
je 0x140370eb5
mov rax, r11
xor edx, edx
div rbx
jmp 0x140370ecf
mov eax, r11d
xor edx, edx
div ebx
jmp 0x140370e6f
dec rax
add rdx, rbx
mov r10, rdx
shr r10, 0x20
jne 0x140370e8e
mov r10, rax
shr r10, 0x20
jne 0x140370e60
mov r10, rax
imul r10, r14
mov r15, rdx
shl r15, 0x20
or r15, r9
cmp r10, r15
ja 0x140370e60
shl r11, 0x20
or r11, r9
imul r8, rax
sub r11, r8
shrx rcx, r11, rcx
xor r9d, r9d
shl rsi, 0x20
add rsi, rax
test rdi, rdi
jne 0x140370f11
jmp 0x140370c86
mov eax, r11d
xor edx, edx
div ebx
jmp 0x140370ecf
dec rax
add rdx, rbx
mov r15, rdx
shr r15, 0x20
jne 0x140370eee
mov r15, rax
shr r15, 0x20
jne 0x140370ec0
mov r15, rax
imul r15, r14
mov r12, rdx
shl r12, 0x20
or r12, r10
cmp r15, r12
ja 0x140370ec0
shl r11, 0x20
or r11, r10
imul r8, rax
sub r11, r8
shrx rcx, r11, rcx
shl rsi, 0x20
add rsi, rax
test rdi, rdi
je 0x140370c86
mov qword [rdi], rcx
mov qword [rdi + 8], 0
jmp 0x140370c86