Function at 0x140017140
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
mov eax, 0x3440
call fcn.1400406f0
sub rsp, rax
mov rax, qword [0x14005f180]
xor rax, rsp
mov qword [rsp + 0x3430], rax
mov rdi, rcx
call sub.LIBNSR.DLL_nsr_dirsep
cmp dword [0x1400666e0], 0
mov r14d, eax
je 0x1400171b7
cmp dword [0x1400666bc], 0
je 0x140017192
mov rcx, rdi
call fcn.140017030
mov rbx, rax
jmp 0x140017199
lea rbx, [0x140047339]
lea rsi, [0x1400696f0]
lea rdx, [0x140046ebc]
mov r8, rbx
mov rcx, rsi
call sub.liblocal.dll_lg_sprintf
jmp 0x14001728f
cmp dword [0x1400666bc], 0
mov qword [rsp + 0x3468], rbp
lea rbx, [0x140047339]
je 0x1400171dc
mov rcx, rdi
call fcn.140017460
mov rsi, rax
jmp 0x1400171df
mov rsi, rbx
cmp dword [0x1400666d0], 0
je 0x140017214
mov rcx, rdi
call fcn.140018a30
lea rbp, [0x140069f60]
lea rdx, str._4ld
lea r8d, [rax + 1]
mov rcx, rbp
shl r8d, 9
shr r8d, 0xa
call sub.liblocal.dll_lg_sprintf
jmp 0x140017217
mov rbp, rbx
cmp dword [0x1400666b8], 0
je 0x140017241
mov rcx, rdi
call fcn.140018a80
lea rbx, [0x140069b58]
lea rdx, str._6lu
mov r8d, eax
mov rcx, rbx
call sub.liblocal.dll_lg_sprintf
test byte [rdi + 8], 1
movzx eax, byte [0x14005f0e8]
mov ecx, 0x20
cmovne ecx, eax
lea rax, [0x1400666ec]
lea rdx, str._s_s_s_s
mov qword [rsp + 0x28], rax
mov byte [0x1400666ec], cl
mov qword [rsp + 0x20], rsi
lea rsi, [0x1400696f0]
mov r9, rbp
mov r8, rbx
mov rcx, rsi
call sub.liblocal.dll_lg_sprintf
mov rbp, qword [rsp + 0x3468]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140017293
add rbx, rsi
cmp dword [0x1400666e4], 0
je 0x1400172ba
mov rcx, rdi
call fcn.140018d30
test eax, eax
je 0x1400172ba
mov byte [rbx], 0x5b
inc rbx
mov rcx, rdi
call fcn.14001b1f0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [0x1400ad8f8]
cmp byte [rsp + 0x30], 0
mov edx, dword [0x14005f13c]
lea rcx, [rsp + 0x30]
je 0x140017306
test edx, edx
je 0x1400172f6
movzx eax, byte [rcx]
cmp al, 0x20
jb 0x1400172f1
cmp al, 0x7f
jne 0x1400172f6
mov byte [rbx], 0x3f
jmp 0x1400172fb
movzx eax, byte [rcx]
mov byte [rbx], al
inc rcx
inc rbx
cmp byte [rcx], 0
jne 0x1400172e2
cmp dword [0x1400666bc], 0
je 0x140017367
cmp byte [rdi + 0xc], 5
jne 0x140017367
cmp qword [rdi + 0x40], 0
je 0x140017367
mov eax, dword [str.___]
add rbx, 4
mov dword [rbx - 4], eax
movzx eax, byte [0x140049a90]
mov byte [rbx], al
mov rcx, qword [rdi + 0x40]
movzx eax, byte [rcx]
test al, al
je 0x140017416
test edx, edx
je 0x140017352
cmp al, 0x20
jb 0x14001734d
cmp al, 0x7f
jne 0x140017352
mov byte [rbx], 0x3f
jmp 0x140017354
mov byte [rbx], al
movzx eax, byte [rcx + 1]
inc rcx
inc rbx
test al, al
jne 0x140017341
jmp 0x140017416
cmp dword [0x1400666c4], 0
je 0x140017416
cmp dword [0x1400666e4], 0
jne 0x14001741f
cmp dword [0x1400666e0], 0
jne 0x140017431
mov rcx, rdi
call fcn.140018d30
test eax, eax
je 0x1400173ce
cmp rbx, rsi
jbe 0x1400173a8
movsx eax, byte [rbx - 1]
cmp eax, r14d
je 0x1400173ce
mov byte [rbx], r14b
inc rbx
test byte [rdi + 8], 8
je 0x140017416
lea rax, [0x1400696f1]
cmp rbx, rax
jbe 0x1400173c9
movsx eax, byte [rbx - 2]
cmp eax, r14d
je 0x140017416
mov byte [rbx], r14b
jmp 0x140017413
mov eax, dword [rdi + 0xc]
movzx eax, al
cmp eax, 5
jne 0x1400173de
mov byte [rbx], 0x40
jmp 0x140017413
cmp eax, 6
jne 0x1400173e8
mov byte [rbx], 0x3d
jmp 0x140017413
cmp eax, 8
jne 0x1400173f2
mov byte [rbx], 0x7c
jmp 0x140017413
mov ecx, dword [rdi + 0x10]
call fcn.140018c10
test eax, eax
je 0x140017416
cmp byte [rdi + 0xc], 1
jne 0x140017416
mov rcx, rdi
call fcn.140018b30
test al, 0x49
je 0x140017416
mov byte [rbx], 0x2a
inc rbx
cmp dword [0x1400666e4], 0
je 0x140017431
mov rcx, rdi
call fcn.140018d30
test eax, eax
je 0x140017431
mov byte [rbx], 0x5d
inc rbx
mov byte [rbx], 0
mov rax, rsi
mov rcx, qword [rsp + 0x3430]
xor rcx, rsp
call fcn.1400403f0
mov rbx, qword [rsp + 0x3470]
add rsp, 0x3440
pop r14
pop rdi
pop rsi
ret