Function at 0x140004d10
Capabilities:
Encode data using base64

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov r14, rdx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x24], edi
mov esi, 0xb6
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x24], 1
xor edx, edx
lea r8d, [rsi + 0xe]
lea rcx, [rsp + 0x50]
call fcn.1400e93f0
nop
lea rcx, [rsp + 0x50]
call fcn.1400057b0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], dil
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004da0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140004b80
nop
lea rdi, [rsp + 0x50]
xor eax, eax
mov ecx, 0x41
rep stosb byte [rdi], al
lea rdi, [rbp - 0x6e]
mov ecx, 0x82
rep stosb byte [rdi], al
xor r13d, r13d
xor ecx, ecx
movabs r9, 0x7fffffffffffffff
movabs r10, 0x8000000000000000
mov r15, qword [rsp + 0x30]
nop
dec esi
mov dword [rsp + 0x28], esi
movzx eax, byte [r14]
mov byte [rbp + rcx + 0x88], al
inc r13d
inc rcx
inc r14
mov qword [rbp + 0x78], r14
movzx r8d, byte [rbp + 0x8a]
movzx edx, byte [rbp + 0x89]
movzx edi, byte [rbp + 0x88]
cmp rcx, 3
jne 0x14000501b
movzx eax, dil
shr al, 2
mov byte [rsp + 0x20], al
movzx ecx, dil
and cl, 3
shl cl, 4
movzx eax, dl
shr al, 4
add cl, al
mov byte [rsp + 0x21], cl
movzx ecx, dl
and cl, 0xf
shl cl, 2
movzx eax, r8b
shr al, 6
add cl, al
mov byte [rsp + 0x22], cl
movzx eax, r8b
and al, 0x3f
mov byte [rsp + 0x23], al
xor r12d, r12d
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, r15
movzx eax, byte [rsp + r12 + 0x20]
movzx ecx, byte [rax + rcx]
mov byte [rbp + 0x80], cl
mov r14, qword [rbx + 0x10]
mov r15, qword [rbx + 0x18]
cmp r14, r15
jae 0x140004ecf
lea rax, [r14 + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp r15, 0x10
jb 0x140004ec0
mov rax, qword [rbx]
mov byte [rax + r14], cl
mov byte [rax + r14 + 1], 0
jmp 0x140004fe6
mov rax, r9
sub rax, r14
cmp rax, 1
jb 0x1400053e5
lea r13, [r14 + 1]
mov rdi, r13
or rdi, 0xf
cmp rdi, r9
jbe 0x140004eff
mov rdi, r9
mov rcx, r10
call fcn.1400048b0
mov rsi, rax
jmp 0x140004f53
mov rcx, r15
shr rcx, 1
mov rax, r9
sub rax, rcx
cmp r15, rax
jbe 0x140004f20
mov rdi, r9
mov rcx, r10
call fcn.1400048b0
mov rsi, rax
jmp 0x140004f53
lea rax, [r15 + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140004f42
call fcn.1400048b0
mov rsi, rax
jmp 0x140004f53
test rcx, rcx
je 0x140004f51
call fcn.1400e60a0
mov rsi, rax
jmp 0x140004f53
xor esi, esi
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
mov r8, r14
mov rcx, rsi
cmp r15, 0x10
jb 0x140004fb6
mov rdi, qword [rbx]
mov rdx, rdi
call fcn.1400e8d40
movzx eax, byte [rbp + 0x80]
mov byte [rsi + r14], al
mov byte [rsi + r14 + 1], 0
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x140004fac
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400053df
mov rdi, rcx
mov rcx, rdi
call fcn.1400e6098
jmp 0x140004fcf
mov rdx, rbx
call fcn.1400e8d40
movzx eax, byte [rbp + 0x80]
mov byte [rsi + r14], al
mov byte [rsi + r14 + 1], 0
movabs r10, 0x8000000000000000
movabs r9, 0x7fffffffffffffff
mov qword [rbx], rsi
inc r12
cmp r12, 4
mov r15, qword [rsp + 0x30]
jl 0x140004e80
xor r13d, r13d
xor ecx, ecx
movzx edx, byte [rbp + 0x89]
movzx edi, byte [rbp + 0x88]
mov esi, dword [rsp + 0x28]
mov r14, qword [rbp + 0x78]
movzx r8d, byte [rbp + 0x8a]
test esi, esi
jne 0x140004df0
test r13d, r13d
je 0x140005388
cmp r13d, 3
jge 0x140005067
mov eax, 3
sub eax, r13d
movsxd r8, eax
movsxd rax, r13d
lea rcx, [rbp + 0x88]
add rcx, rax
xor edx, edx
call fcn.1400e93f0
movzx r8d, byte [rbp + 0x8a]
movzx edx, byte [rbp + 0x89]
movzx edi, byte [rbp + 0x88]
movzx eax, dil
shr al, 2
mov byte [rsp + 0x20], al
and dil, 3
shl dil, 4
movzx eax, dl
shr al, 4
add dil, al
mov byte [rsp + 0x21], dil
and dl, 0xf
shl dl, 2
movzx eax, r8b
shr al, 6
add dl, al
mov byte [rsp + 0x22], dl
and r8b, 0x3f
mov byte [rsp + 0x23], r8b
lea eax, [r13 + 1]
test eax, eax
jle 0x14000523f
cdqe
mov qword [rbp + 0x88], rax
xor r12d, r12d
nop dword [rax]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, r15
movzx eax, byte [rsp + r12 + 0x20]
movzx ecx, byte [rax + rcx]
mov byte [rbp + 0x80], cl
mov rsi, qword [rbx + 0x10]
mov r15, qword [rbx + 0x18]
cmp rsi, r15
jae 0x14000510d
lea rax, [rsi + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp r15, 0x10
jb 0x140005100
mov rax, qword [rbx]
mov byte [rax + rsi], cl
mov byte [rax + rsi + 1], 0
jmp 0x14000522a
movabs rdx, 0x7fffffffffffffff
mov rax, rdx
sub rax, rsi
cmp rax, 1
jb 0x1400053e5
lea rdi, [rsi + 1]
or rdi, 0xf
cmp rdi, rdx
jbe 0x14000514b
mov rdi, rdx
movabs rcx, 0x8000000000000000
call fcn.1400048b0
mov r14, rax
jmp 0x1400051a7
mov rcx, r15
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r15, rax
jbe 0x140005173
mov rdi, rdx
movabs rcx, 0x8000000000000000
call fcn.1400048b0
mov r14, rax
jmp 0x1400051a7
lea rax, [r15 + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140005195
call fcn.1400048b0
mov r14, rax
jmp 0x1400051a7
test rcx, rcx
je 0x1400051a4
call fcn.1400e60a0
mov r14, rax
jmp 0x1400051a7
xor r14d, r14d
lea rax, [rsi + 1]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rdi
mov r8, rsi
mov rcx, r14
cmp r15, 0x10
jb 0x14000520e
mov rdi, qword [rbx]
mov rdx, rdi
call fcn.1400e8d40
movzx eax, byte [rbp + 0x80]
mov byte [r14 + rsi], al
mov byte [r14 + rsi + 1], 0
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x140005204
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400053df
mov rdi, rcx
mov rcx, rdi
call fcn.1400e6098
jmp 0x140005227
mov rdx, rbx
call fcn.1400e8d40
movzx eax, byte [rbp + 0x80]
mov byte [r14 + rsi], al
mov byte [r14 + rsi + 1], 0
mov qword [rbx], r14
inc r12
cmp r12, qword [rbp + 0x88]
mov r15, qword [rsp + 0x30]
jl 0x1400050c0
cmp r13d, 3
jge 0x140005388
inc r13d
mov rsi, qword [rbx + 0x10]
mov r15, qword [rbx + 0x18]
cmp rsi, r15
jae 0x140005275
lea rax, [rsi + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp r15, 0x10
jb 0x14000526d
mov rax, qword [rbx]
mov word [rax + rsi], 0x3d
jmp 0x14000523f
movabs rdx, 0x7fffffffffffffff
mov rax, rdx
sub rax, rsi
cmp rax, 1
jb 0x1400053e5
lea r12, [rsi + 1]
mov rdi, r12
or rdi, 0xf
cmp rdi, rdx
jbe 0x1400052b6
mov rdi, rdx
movabs rcx, 0x8000000000000000
call fcn.1400048b0
mov r14, rax
jmp 0x140005312
mov rcx, r15
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r15, rax
jbe 0x1400052de
mov rdi, rdx
movabs rcx, 0x8000000000000000
call fcn.1400048b0
mov r14, rax
jmp 0x140005312
lea rax, [r15 + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140005300
call fcn.1400048b0
mov r14, rax
jmp 0x140005312
test rcx, rcx
je 0x14000530f
call fcn.1400e60a0
mov r14, rax
jmp 0x140005312
xor r14d, r14d
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], rdi
mov r8, rsi
mov rcx, r14
cmp r15, 0x10
jb 0x140005371
mov rdi, qword [rbx]
mov rdx, rdi
call fcn.1400e8d40
mov word [r14 + rsi], 0x3d
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x140005361
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400053df
mov rdi, rcx
mov rcx, rdi
call fcn.1400e6098
mov qword [rbx], r14
jmp 0x14000523f
mov rdx, rbx
call fcn.1400e8d40
mov word [r14 + rsi], 0x3d
mov qword [rbx], r14
jmp 0x14000523f
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x1400053c2
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400053d9
call fcn.1400e6098
mov rax, rbx
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400f6730
nop
call fcn.1400f6730
int3
call fcn.140004600
int3