Function at 0x1000bd710
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r9
mov ebp, edx
mov r12, rcx
lea r10, [0x1004a9500]
cmp rcx, r14
jne 0x1000bd78c
mov ebx, 0x80070057
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000bd773
test byte [rcx + 0x3c], 2
je 0x1000bd773
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f510]
mov edx, 0x12
mov r9d, ebx
call fcn.10005c358
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov r13, qword [rsp + 0x70]
cmp r13, r14
je 0x1000bd73d
lea edi, [rdx + 2]
mov r9d, 0x80070216
cmp edi, edx
jb 0x1000bd7af
mov rcx, qword [0x1004a9500]
mov ebx, r14d
jmp 0x1000bd7eb
mov ebx, r9d
mov rcx, qword [0x1004a9500]
cmp rcx, r10
je 0x1000bd7e7
test byte [rcx + 0x3c], 2
je 0x1000bd7e7
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f9c0]
mov edx, 0xa
call fcn.10005c358
mov rcx, qword [0x1004a9500]
lea r10, [0x1004a9500]
mov edi, dword [rsp + 0x50]
cmp ebx, r14d
jl 0x1000bd749
mov eax, 0xaaaaaaab
mov ebx, r14d
mul edi
shr edx, 1
je 0x1000bd849
mov r8d, edx
shl r8d, 2
mov eax, r8d
shr eax, 2
cmp eax, edx
je 0x1000bd844
mov ebx, 0x80070216
cmp rcx, r10
je 0x1000bd84c
test byte [rcx + 0x3c], 2
je 0x1000bd84c
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f9c0]
mov edx, 0xc
mov r9d, ebx
call fcn.10005c358
mov rcx, qword [0x1004a9500]
jmp 0x1000bd84c
mov edi, r8d
jmp 0x1000bd84c
mov edi, r14d
cmp ebx, r14d
jl 0x1000bd749
cmp rsi, r14
jne 0x1000bd8b1
lea eax, [rdi + 1]
cmp eax, edi
jb 0x1000bd86a
mov dword [r13], eax
mov ebx, r14d
jmp 0x1000bd8a0
mov ebx, 0x80070216
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000bd8a0
test byte [rcx + 0x3c], 2
je 0x1000bd8a0
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f9c0]
mov edx, 0xa
mov r9d, ebx
call fcn.10005c358
mov rcx, qword [0x1004a9500]
cmp ebx, r14d
jl 0x1000bd749
mov ebx, r14d
jmp 0x1000bd773
lea edx, [rdi + 1]
cmp edx, edi
jb 0x1000bd8bd
mov ebx, r14d
jmp 0x1000bd8f7
mov ebx, 0x80070216
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000bd8f3
test byte [rcx + 0x3c], 2
je 0x1000bd8f3
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f9c0]
mov edx, 0xa
mov r9d, ebx
call fcn.10005c358
mov rcx, qword [0x1004a9500]
mov edx, dword [rsp + 0x50]
cmp ebx, r14d
jl 0x1000bd749
cmp dword [r13], edx
jae 0x1000bd910
mov ebx, 0x8007007a
jmp 0x1000bd749
cmp ebp, r14d
mov eax, edx
lea r10, [rsi + rax*2]
jle 0x1000bda05
lea r8, [rsi + 6]
lea r11, [0x100044260]
mov dil, byte [r12]
xor r9d, r9d
inc r12
mov word [rsp + 0x50], r9w
cmp ebp, 1
jbe 0x1000bd954
mov cl, byte [r12]
inc r12
cmp ebp, 2
jbe 0x1000bd958
mov r9b, byte [r12]
inc r12
jmp 0x1000bd958
mov cl, byte [rsp + 0x51]
cmp r8, r10
jae 0x1000bda14
movzx eax, dil
shr rax, 2
movzx eax, byte [rax + r11]
movzx r11d, cl
mov word [rsi], ax
movzx eax, dil
mov ecx, r11d
shl eax, 4
shr ecx, 4
or rcx, rax
lea rax, [0x100044260]
and ecx, 0x3f
movzx eax, byte [rcx + rax]
mov word [rsi + 2], ax
cmp ebp, 1
jbe 0x1000bd9be
mov eax, r11d
movzx ecx, r9b
lea r11, [0x100044260]
shl eax, 2
shr rcx, 6
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + r11]
jmp 0x1000bd9ca
mov eax, 0x3d
lea r11, [0x100044260]
mov word [rsi + 4], ax
cmp ebp, 2
jbe 0x1000bd9e1
movzx eax, r9b
and eax, 0x3f
movzx ecx, byte [rax + r11]
jmp 0x1000bd9e6
mov ecx, 0x3d
add ebp, 0xfffffffd
mov word [rsi + 6], cx
add rsi, 8
add r8, 8
cmp ebp, r14d
jg 0x1000bd92a
mov rcx, qword [0x1004a9500]
cmp rsi, r10
jb 0x1000bda1e
mov ebx, 0x8000ffff
jmp 0x1000bd749
mov ebx, 0x8000ffff
jmp 0x1000bd742
mov word [rsi], r14w
mov dword [r13], edx
jmp 0x1000bd773